projects
/
platform
/
core
/
uifw
/
inputdelegator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix build warning
[platform/core/uifw/inputdelegator.git]
/
src
/
w-input-keyboard.cpp
diff --git
a/src/w-input-keyboard.cpp
b/src/w-input-keyboard.cpp
index
ba9a217
..
6c359c9
100755
(executable)
--- a/
src/w-input-keyboard.cpp
+++ b/
src/w-input-keyboard.cpp
@@
-34,9
+34,9
@@
bool input_keyboard_init(app_control_h app_control)
int ret = -1;
char *default_text = NULL;
char *guide_text = NULL;
int ret = -1;
char *default_text = NULL;
char *guide_text = NULL;
- char *return_key_type = "SEND";
+ char *return_key_type =
(char *)
"SEND";
char *max_text_length = NULL;
char *max_text_length = NULL;
- char *cursor_position_set = "0";
+ char *cursor_position_set =
(char *)
"0";
input_keyboard_deinit();
input_keyboard_deinit();
@@
-77,7
+77,7
@@
void input_keyboard_deinit(void)
g_input_keyboard_data.default_text = NULL;
g_input_keyboard_data.guide_text = NULL;
g_input_keyboard_data.default_text = NULL;
g_input_keyboard_data.guide_text = NULL;
- g_input_keyboard_data.return_key_type = "SEND";
+ g_input_keyboard_data.return_key_type =
(char *)
"SEND";
g_input_keyboard_data.max_text_length = KEYBOARD_EDITOR_CHAR_COUNT_MAX;
g_input_keyboard_data.cursor_position_set = 0;
g_input_keyboard_data.max_text_length = KEYBOARD_EDITOR_CHAR_COUNT_MAX;
g_input_keyboard_data.cursor_position_set = 0;
@@
-125,7
+125,8
@@
static void maxlength_cb(void *data, Evas_Object *obj, void *event_info)
{
LOGD("maxlength_cb : size = %d", KEYBOARD_EDITOR_CHAR_COUNT_MAX);
char text[512];
{
LOGD("maxlength_cb : size = %d", KEYBOARD_EDITOR_CHAR_COUNT_MAX);
char text[512];
- snprintf(text, sizeof(text), _(MAX_TEXT_LENGTH_REACH), g_input_keyboard_data.max_text_length);
+ const char *guide = _(MAX_TEXT_LENGTH_REACH);
+ snprintf(text, sizeof(text), guide, g_input_keyboard_data.max_text_length);
show_popup_toast((const char *)text, false);
}
show_popup_toast((const char *)text, false);
}