warning--
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 6 Oct 2010 07:58:28 +0000 (16:58 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 6 Oct 2010 07:58:28 +0000 (16:58 +0900)
14 files changed:
src/lib/elm_actionsheet.c
src/lib/elm_analogclock.c
src/lib/elm_cabinet.c
src/lib/elm_chronometer.c
src/lib/elm_conform.c
src/lib/elm_controlbar.c
src/lib/elm_datefield.c
src/lib/elm_datepicker2.c
src/lib/elm_editfield.c
src/lib/elm_entry.c
src/lib/elm_gallery.c
src/lib/elm_hor_scroller.c
src/lib/elm_stackedicon.c
src/lib/els_hor_scroller.c

index d2e6809..33e4fab 100644 (file)
@@ -238,7 +238,7 @@ _hide_layout(void *data)
 static void
 _show(void *data, Evas *e, Evas_Object *obj, void *event_info)
 {
-       int x, y, w, h;
+       //int x, y, w, h;
        Widget_Data *wd = elm_widget_data_get(obj);
 
        _resize(wd, wd->e, obj, obj);
@@ -299,10 +299,9 @@ _button_cb_wrapper(void *data, Evas_Object *obj, const char *emission, const cha
 EAPI Evas_Object *
 elm_actionsheet_add (Evas_Object *parent)
 {
-       Evas_Object *obj, *win, *win_bgimg;
+       Evas_Object *obj;
        Evas *e;
        Widget_Data *wd;
-       Evas_Coord x,y,w,h;
 
        /* widget data */
        wd = ELM_NEW(Widget_Data);      // allocate memory
@@ -319,7 +318,6 @@ elm_actionsheet_add (Evas_Object *parent)
        elm_widget_del_hook_set(obj, _del_hook);
        elm_widget_theme_hook_set(obj, _theme_hook);    
 
-
        /* actionsheet layout */
        wd->layout = elm_layout_add(parent);
        elm_layout_theme_set(wd->layout, "actionsheet", "base", "default");
index e7a37dd..e02ead6 100644 (file)
@@ -63,7 +63,7 @@ _ticker(void *data)
        return 0;
 }
 
-static int
+static Eina_Bool
 _idle_draw (void *data)
 {
        _ticker(data);
index 432f678..4618e85 100644 (file)
@@ -80,7 +80,7 @@ static void _ani_stop_all(Evas_Object *obj);
 static void _ani_bounce_cb(void *data, Elm_Animator *animator, double frame);
 static void _ani_bounce_done_cb(void *data);
 static void _bounce(Evas_Object *obj);
-static int _ani_scroll_cb(void *data);
+static Eina_Bool _ani_scroll_cb(void *data);
 static void _scroll(Evas_Object *obj);
 static void _ani_item_del_cb(void *data, Elm_Animator *animator, double frame);
 static void _ani_item_del_done_cb(void *data);
@@ -474,7 +474,7 @@ _bounce(Evas_Object *obj)
        elm_animator_animate(wd->ani);
 }
 
-static int
+static Eina_Bool
 _ani_scroll_cb(void *data)
 {
        Widget_Data *wd;
index 7944ef3..b8e882b 100644 (file)
@@ -26,7 +26,7 @@ struct _Widget_Data
 
 static void _del_hook(Evas_Object *obj);
 static void _theme_hook(Evas_Object *obj);
-static int _ticker(void *data);
+static Eina_Bool _ticker(void *data);
 static void _signal_chronometer_val_changed(void *data,Evas_Object *obj,const char *emission,const char *source);
 static void _time_update(Evas_Object *obj);
 
@@ -47,7 +47,7 @@ _theme_hook(Evas_Object *obj)
    _time_update(obj);
 }
 
-static int
+static Eina_Bool
 _ticker(void *data)
 {
    Widget_Data *wd = elm_widget_data_get(data);
index 02c7045..a215e10 100644 (file)
@@ -104,7 +104,6 @@ static Evas_Object *
 _focus_object_get(const Evas_Object *obj)
 {
    Evas_Object *parent = NULL, *foc = NULL;
-   const char * type = NULL;
    parent = elm_widget_top_get(obj);
    if (!parent) return NULL;
    foc = elm_widget_focused_object_get(parent);
@@ -205,7 +204,6 @@ _autoscroll_mode_enable(void *data)
 {
    Evas_Object * focused_object=NULL;
    bool ret = EINA_FALSE;
-   const char * type=NULL;
    
    Widget_Data *wd = elm_widget_data_get(data);
    if (!wd) return EINA_FALSE;
index 23310ed..cfc1cce 100644 (file)
@@ -1292,8 +1292,6 @@ pressed_box(Elm_Controlbar_Item * it)
 static Evas_Object *
 create_item_label(Evas_Object *obj, Elm_Controlbar_Item * it)
 {
-   Widget_Data * wd = elm_widget_data_get(it->obj);
-
    Evas_Object *label;
    label = elm_label_add(obj);
    elm_object_style_set(label, "controlbar");
index 8dd4f7f..4e1873a 100644 (file)
@@ -78,7 +78,7 @@ static void _signal_ampm_clicked(void *data, Evas_Object *obj, const char *emiss
 static void _entry_focused_cb(void *data, Evas_Object *obj, void *event_info);
 static void _entry_unfocused_cb(void *data, Evas_Object *obj, void *event_info);
 static void _entry_key_up_cb(void *data, Evas *e , Evas_Object *obj , void *event_info);
-static int _imf_event_commit_cb(void *data, int type, void *event);
+static Eina_Bool _imf_event_commit_cb(void *data, int type, void *event);
 static void _input_panel_event_callback(void *data, Ecore_IMF_Context *ctx, int value);
 
 static void _date_entry_add(Evas_Object *obj);
@@ -517,7 +517,7 @@ _entry_key_up_cb(void *data, Evas *e , Evas_Object *obj , void *event_info)
                elm_entry_entry_set(obj, "");
 }
 
-static int 
+static Eina_Bool 
 _imf_event_commit_cb(void *data, int type, void *event)
 {
        Widget_Data *wd = elm_widget_data_get(data);
index 5fe7aa2..bb3af08 100644 (file)
@@ -355,7 +355,6 @@ _year_changed_cb(void *data, Evas_Object *obj, void *event_info)
 static void
 _month_changed_cb(void *data, Evas_Object *obj, void *event_info)
 {
-       const char *month;
        Widget_Data *wd = elm_widget_data_get(data);
        Evas_Object *child;
        if (!wd) return;
index e701ea4..718d896 100644 (file)
@@ -204,7 +204,6 @@ static void
 _entry_cursor_changed_cb(void *data, Evas_Object *obj, void* event_info)
 {
    Evas_Object *ef_obj = (Evas_Object *)data;
-   Widget_Data *wd = elm_widget_data_get(ef_obj);
    evas_object_smart_callback_call(ef_obj, SIG_IMPREGION_CHANGED, NULL);
 }
 #endif
index 6c66dba..85510d0 100644 (file)
@@ -137,7 +137,7 @@ struct _Widget_Data
    Eina_Bool ellipsis : 1;
    Eina_Bool autoreturnkey : 1;
    Eina_Bool input_panel_enable : 1;
-   Eina_Bool autocapitalize : 1;
+   Eina_Bool autocapital : 1;
    Elm_Input_Panel_Layout input_panel_layout;
    Eina_Bool autoperiod : 1;
 };
@@ -291,7 +291,7 @@ _theme_hook(Evas_Object *obj)
    elm_entry_entry_set(obj, t);
    eina_stringshare_del(t);
    edje_object_scale_set(wd->ent, elm_widget_scale_get(obj) * _elm_config->scale);
-   edje_object_part_text_autocapitalization_set(wd->ent, "elm.text", wd->autocapitalize);
+   edje_object_part_text_autocapitalization_set(wd->ent, "elm.text", wd->autocapital);
    edje_object_part_text_autoperiod_set(wd->ent, "elm.text", wd->autoperiod);
    edje_object_part_text_input_panel_enabled_set(wd->ent, "elm.text", wd->input_panel_enable);
 
@@ -392,11 +392,11 @@ _check_enable_returnkey(Evas_Object *obj)
 
    if (_entry_length_get(obj) == 0) 
      {
-       ecore_imf_context_input_panel_key_disabled_set(ic, ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL, ECORE_IMF_INPUT_PANEL_KEY_ENTER, EINA_TRUE);
+        ecore_imf_context_input_panel_key_disabled_set(ic, ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL, ECORE_IMF_INPUT_PANEL_KEY_ENTER, EINA_TRUE);
      }
    else 
      {
-       ecore_imf_context_input_panel_key_disabled_set(ic, ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL, ECORE_IMF_INPUT_PANEL_KEY_ENTER, EINA_FALSE);
+        ecore_imf_context_input_panel_key_disabled_set(ic, ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL, ECORE_IMF_INPUT_PANEL_KEY_ENTER, EINA_FALSE);
      }
 }
 
@@ -542,7 +542,7 @@ _dismissed(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
    if (wd->selmode)
      {
         if (!wd->password)
-          edje_object_part_text_select_allow_set(wd->ent, "elm.text", 1);
+          edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_TRUE);
      }
    elm_widget_scroll_freeze_pop(data);
    if (wd->hovdeljob) ecore_job_del(wd->hovdeljob);
@@ -557,7 +557,7 @@ _select(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
    wd->selmode = EINA_TRUE;
    edje_object_part_text_select_none(wd->ent, "elm.text");
    if (!wd->password)
-     edje_object_part_text_select_allow_set(wd->ent, "elm.text", 1);
+     edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_TRUE);
    edje_object_signal_emit(wd->ent, "elm,state,select,on", "elm");
    elm_widget_scroll_hold_push(data);
 }
@@ -597,7 +597,7 @@ _cut(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
 
    /* Store it */
    wd->selmode = EINA_FALSE;
-   edje_object_part_text_select_allow_set(wd->ent, "elm.text", 0);
+   edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_FALSE);
    edje_object_signal_emit(wd->ent, "elm,state,select,off", "elm");
    elm_widget_scroll_hold_pop(data);
    _store_selection(ELM_SEL_CLIPBOARD, data);
@@ -611,7 +611,7 @@ _copy(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
    Widget_Data *wd = elm_widget_data_get(data);
    if (!wd) return;
    wd->selmode = EINA_FALSE;
-   edje_object_part_text_select_allow_set(wd->ent, "elm.text", 0);
+   edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_FALSE);
    edje_object_signal_emit(wd->ent, "elm,state,select,off", "elm");
    elm_widget_scroll_hold_pop(data);
    _store_selection(ELM_SEL_CLIPBOARD, data);
@@ -624,7 +624,7 @@ _cancel(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
    Widget_Data *wd = elm_widget_data_get(data);
    if (!wd) return;
    wd->selmode = EINA_FALSE;
-   edje_object_part_text_select_allow_set(wd->ent, "elm.text", 0);
+   edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_FALSE);
    edje_object_signal_emit(wd->ent, "elm,state,select,off", "elm");
    elm_widget_scroll_hold_pop(data);
    edje_object_part_text_select_none(wd->ent, "elm.text");
@@ -737,7 +737,7 @@ _long_press(void *data)
              evas_object_show(wd->hoversel);
              elm_hoversel_hover_begin(wd->hoversel);
           }
-        edje_object_part_text_select_allow_set(wd->ent, "elm.text", 0);
+        edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_FALSE);
         edje_object_part_text_select_abort(wd->ent, "elm.text");
      }
    wd->longpress_timer = NULL;
@@ -2103,7 +2103,7 @@ elm_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line)
    t = eina_stringshare_add(elm_entry_entry_get(obj));
    _elm_theme_object_set(obj, wd->ent, "entry", _getbase(obj), elm_widget_style_get(obj));
    elm_entry_entry_set(obj, t);
-   edje_object_part_text_autocapitalization_set(wd->ent, "elm.text", wd->autocapitalize);
+   edje_object_part_text_autocapitalization_set(wd->ent, "elm.text", wd->autocapital);
    edje_object_part_text_autoperiod_set(wd->ent, "elm.text", wd->autoperiod);
    ic = elm_entry_imf_context_get(obj);
    if (ic)
@@ -2150,7 +2150,7 @@ elm_entry_maximum_bytes_set(Evas_Object *obj, int max_no_of_bytes)
    wd->max_no_of_bytes = max_no_of_bytes;
    edje_object_signal_emit(wd->ent, "elm,state,remain,bytes,show", "elm");
    edje_object_part_textinput_callback_set(wd->ent, "elm.text", _textinput_control_function,obj);
- }
+}
 
 
 /**
@@ -2187,7 +2187,7 @@ elm_entry_password_set(Evas_Object *obj, Eina_Bool password)
              elm_entry_autoperiod_set(obj, EINA_FALSE);
           }
 
-        if (wd->autocapitalize)
+        if (wd->autocapital)
           {
              elm_entry_autocapitalization_set(obj, EINA_FALSE);
           }
@@ -2196,7 +2196,7 @@ elm_entry_password_set(Evas_Object *obj, Eina_Bool password)
    ic = elm_entry_imf_context_get(obj);
    if (ic)
      {
-       ecore_imf_context_input_panel_layout_set(ic, wd->input_panel_layout);
+        ecore_imf_context_input_panel_layout_set(ic, wd->input_panel_layout);
      }
 
    eina_stringshare_del(t);
@@ -2504,7 +2504,7 @@ elm_entry_select_none(Evas_Object *obj)
    if (wd->selmode)
      {
        wd->selmode = EINA_FALSE;
-       edje_object_part_text_select_allow_set(wd->ent, "elm.text", 0);
+       edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_FALSE);
        edje_object_signal_emit(wd->ent, "elm,state,select,off", "elm");
      }
    wd->have_selection = EINA_FALSE;
@@ -2527,7 +2527,7 @@ elm_entry_select_all(Evas_Object *obj)
    if (wd->selmode)
      {
        wd->selmode = EINA_FALSE;
-       edje_object_part_text_select_allow_set(wd->ent, "elm.text", 0);
+       edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_FALSE);
        edje_object_signal_emit(wd->ent, "elm,state,select,off", "elm");
      }
    wd->have_selection = EINA_TRUE;
@@ -3059,11 +3059,15 @@ elm_entry_autocapitalization_set(Evas_Object *obj, Eina_Bool autocap)
    if (!wd) return;
 
    if (wd->password)
-       wd->autocapitalize = EINA_FALSE;
+       wd->autocapital = EINA_FALSE;
    else
-       wd->autocapitalize = autocap;
+       wd->autocapital = autocap;
+
+   if (wd->input_panel_layout == ELM_INPUT_PANEL_LAYOUT_URL || 
+       wd->input_panel_layout == ELM_INPUT_PANEL_LAYOUT_EMAIL) 
+       wd->autocapital = EINA_FALSE;
 
-   edje_object_part_text_autocapitalization_set(wd->ent, "elm.text", wd->autocapitalize);
+   edje_object_part_text_autocapitalization_set(wd->ent, "elm.text", wd->autocapital);
 }
 
 /**
@@ -3086,6 +3090,10 @@ elm_entry_autoperiod_set(Evas_Object *obj, Eina_Bool autoperiod)
    else
        wd->autoperiod = autoperiod;
 
+   if (wd->input_panel_layout == ELM_INPUT_PANEL_LAYOUT_URL || 
+       wd->input_panel_layout == ELM_INPUT_PANEL_LAYOUT_EMAIL) 
+       wd->autoperiod = EINA_FALSE;
+
    edje_object_part_text_autoperiod_set(wd->ent, "elm.text", wd->autoperiod);
 }
 
index c7ca9e2..0e70f5a 100644 (file)
@@ -59,7 +59,7 @@ static void _gallery_clear_all_image(Evas_Object *obj);
 static void _gallery_add_image(Evas_Object *obj, int index, void *data);\r
 static void _gallery_del_image(void *data);\r
 static void _gallery_del_image_force(void *data);\r
-static int _gallery_idle_handler_cb(void* data);\r
+static Eina_Bool _gallery_idle_handler_cb(void* data);\r
 static void _gallery_auto_blight(Evas_Object *obj);\r
 static void _gallery_set_all_status(Evas_Object *obj,int status);\r
 \r
@@ -294,7 +294,7 @@ static void _gallery_scroller_cb(void *data, Evas_Object *obj, void *event_info)
        }\r
 }\r
 \r
-static int _gallery_idle_handler_cb(void* data)\r
+static Eina_Bool _gallery_idle_handler_cb(void* data)\r
 {\r
        Widget_Data *wd = (Widget_Data *)data;\r
        Elm_Gallery_Item *it = NULL;\r
index 61ffcd6..6b2a34e 100644 (file)
@@ -251,7 +251,7 @@ hor_elm_scroller_add(Evas_Object *parent)
    Evas_Object *obj;
    Evas *e;
    Widget_Data *wd;
-   Evas_Coord vw, vh, minw, minh;
+   Evas_Coord minw, minh;
 
    wd = ELM_NEW(Widget_Data);
    e = evas_object_evas_get(parent);
@@ -293,7 +293,6 @@ hor_elm_scroller_add(Evas_Object *parent)
    return obj;
 }
 
-
 /**
  * Set the content object
  *
index a5b11b4..9ff207b 100644 (file)
@@ -59,7 +59,7 @@ static void _del_all_image(void *data);
 static unsigned int _current_time_get(void);\r
 static void _icon_move_cb(void *data, Evas *e, Evas_Object *obj, void *event_info);\r
 static void _icon_move_to_zero(Evas_Object *obj);\r
-static int _icon_move_to_zero_cb(Evas_Object *obj);\r
+static Eina_Bool _icon_move_to_zero_cb(Evas_Object *obj);\r
 static void _icon_move_map(void *data, int interval_x, int interval_y);\r
 static void _icon_map_pos(Evas_Object *obj, int index, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h);\r
 static void _calc_item_size(int w, int h, int iw, int ih, int *res_w, int *res_h);\r
@@ -309,7 +309,7 @@ _icon_move_to_zero(Evas_Object *obj)
        }\r
 }\r
 \r
-static int \r
+static Eina_Bool \r
 _icon_move_to_zero_cb(Evas_Object *obj)\r
 {      \r
        _icon_move_to_zero(obj);\r
index 59aab73..4d0a78d 100644 (file)
@@ -132,10 +132,10 @@ static void _smart_pan_changed_hook(void *data, Evas_Object *obj, void *event_in
 static void _smart_pan_pan_changed_hook(void *data, Evas_Object *obj, void *event_info);
 static void _smart_event_wheel(void *data, Evas *e, Evas_Object *obj, void *event_info);
 static void _smart_event_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info);
-static int  _smart_hold_animator(void *data);
-static int  _smart_momentum_animator(void *data);
+static Eina_Bool  _smart_hold_animator(void *data);
+static Eina_Bool  _smart_momentum_animator(void *data);
 static void _smart_event_mouse_up(void *data, Evas *e, Evas_Object *obj, void *event_info);
-static int  _smart_onhold_animator(void *data);
+static Eina_Bool  _smart_onhold_animator(void *data);
 static void _smart_event_mouse_move(void *data, Evas *e, Evas_Object *obj, void *event_info);
 static void _smart_event_key_down(void *data, Evas *e, Evas_Object *obj, void *event_info);
 static void _smart_edje_drag_v_start(void *data, Evas_Object *obj, const char *emission, const char *source);
@@ -371,7 +371,7 @@ _smart_scrollto_x(Hor_Smart_Data *sd, double t_in, Evas_Coord pos_x)
    sd->bouncemex = 0;
 }
 
-static int
+static Eina_Bool
 _smart_scrollto_y_animator(void *data)
 {
    Hor_Smart_Data *sd = data;
@@ -542,11 +542,11 @@ _smart_page_adjust(Hor_Smart_Data *sd)
    hor_elm_smart_scroller_child_region_show(sd->smart_obj, x, y, w, h);
 }
 
-static int
+static Eina_Bool
 _smart_bounce_x_animator(void *data)
 {
    Hor_Smart_Data *sd;
-   Evas_Coord x, y, dx, dy/*, ox, oy*/;
+   Evas_Coord x, y, dx;
    double t, p, dt;
 
    sd = data;
@@ -574,11 +574,11 @@ _smart_bounce_x_animator(void *data)
    return 1;
 }
 
-static int
+static Eina_Bool
 _smart_bounce_y_animator(void *data)
 {
    Hor_Smart_Data *sd;
-   Evas_Coord x, y, dx, dy;
+   Evas_Coord x, y, dy;
    double t, p, dt;
 
    sd = data;
@@ -606,7 +606,7 @@ _smart_bounce_y_animator(void *data)
    return 1;
 }
 
-static int
+static Eina_Bool
 _smart_momentum_animator(void *data)
 {
    Hor_Smart_Data *sd;
@@ -1388,7 +1388,7 @@ _smart_event_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info)
      }
 }
 
-static int
+static Eina_Bool
 _smart_hold_animator(void *data)
 {
    Hor_Smart_Data *sd = data;
@@ -1540,7 +1540,7 @@ _smart_event_mouse_up(void *data, Evas *e, Evas_Object *obj, void *event_info)
      }
 }
 
-static int
+static Eina_Bool
 _smart_onhold_animator(void *data)
 {
    Hor_Smart_Data *sd;
@@ -1605,7 +1605,7 @@ get_average(void *d)
 }
 
 
-static int special_timer_cb(void *d)
+static Eina_Bool special_timer_cb(void *d)
 {
        Hor_Smart_Data *sd = d;