Merge branch 'master' of 165.213.180.234:/git/slp/pkgs/elementary
authorJaehwan Kim <jae.hwan.kim@samsung.com>
Fri, 22 Oct 2010 07:06:16 +0000 (16:06 +0900)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Fri, 22 Oct 2010 07:06:16 +0000 (16:06 +0900)
17 files changed:
debian/changelog
debian/control
src/lib/Elementary.h.in
src/lib/elm_bubble.c [changed mode: 0755->0644]
src/lib/elm_button.c
src/lib/elm_cnp_helper.c
src/lib/elm_datefield.c
src/lib/elm_entry.c
src/lib/elm_genlist.c
src/lib/elm_map.c
src/lib/elm_navigationbar_ex.c
src/lib/elm_panes.c
src/lib/elm_segment_control.c
src/lib/elm_slidingdrawer.c
src/lib/elm_tabbar.c
src/lib/elm_transit.c
src/lib/els_icon.c

index 98b7147..9a84080 100644 (file)
@@ -1,3 +1,51 @@
+elementary (1.0.0+svn.51480slp2+build41) unstable; urgency=low
+
+  * sync with beat-theme
+  * Git: 165.213.180.234:/git/slp/pkgs/elementary
+  * Tag: elementary_1.0.0+svn.51480slp2+build41
+
+ -- Hyoyoung Chang <hyoyoung.chang@samsung.com>  Fri, 22 Oct 2010 15:45:19 +0900
+
+elementary (1.0.0+svn.51480slp2+build40) unstable; urgency=low
+
+  * elm_fx changes
+  * Git: 165.213.180.234:/git/slp/pkgs/elementary
+  * Tag: elementary_1.0.0+svn.51480slp2+build40
+
+ -- Hyoyoung Chang <hyoyoung.chang@samsung.com>  Fri, 22 Oct 2010 14:05:18 +0900
+
+elementary (1.0.0+svn.51480slp2+build39) unstable; urgency=low
+
+  * [entry] add checking current widget at cnp
+  * Git: 165.213.180.234:/git/slp/pkgs/elementary
+  * Tag: elementary_1.0.0+svn.51480slp2+build39
+
+ -- Hyoyoung Chang <hyoyoung.chang@samsung.com>  Fri, 22 Oct 2010 11:20:30 +0900
+
+elementary (1.0.0+svn.51480slp2+build38) unstable; urgency=low
+
+  * [entry] added copy paste feature - 2 handler selection
+  * Git: 165.213.180.234:/git/slp/pkgs/elementary
+  * Tag: elementary_1.0.0+svn.51480slp2+build38
+
+ -- Myungjae Lee <mjae.lee@samsung.com>  Thu, 20 Oct 2010 22:56:00 +0900
+
+elementary (1.0.0+svn.51480slp2+build37) unstable; urgency=low
+
+  * [els_icon] rotate bug fixed
+  * Git: 165.213.180.234:/git/slp/pkgs/elementary
+  * Tag: elementary_1.0.0+svn.51480slp2+build37
+
+ -- Jeonghyun Yun <jh0506.yun@samsung.com>  Wed, 20 Oct 2010 21:06:16 +0900
+
+elementary (1.0.0+svn.51480slp2+build36) unstable; urgency=low
+
+  * [cnp_helper] merge upstream changes
+  * Git: 165.213.180.234:/git/slp/pkgs/elementary
+  * Tag: elementary_1.0.0+svn.51480slp2+build36
+
+ -- Hyoyoung Chang <hyoyoung.chang@samsung.com>  Wed, 20 Oct 2010 17:48:25 +0900
+
 elementary (1.0.0+svn.51480slp2+build35) unstable; urgency=low
 
   * [elm_entry] password tag bug fix 
index b0dc94c..3a82b1d 100644 (file)
@@ -1,7 +1,7 @@
 Source: elementary
 Section: x11
 Priority: optional
-Maintainer: Jaehwan Kim <jae.hwan.kim@samsung.com>, Chuneon Park <chuneon.park@samsung.com>, Juyung Seo <juyung.seo@samsung.com>, Myungjae Lee <mjae.lee@samsung.com>, Woohyun Jung <wh0705.jung@samsung.com>, Jihoon Kim <jihoon48.kim@samsung.com>
+Maintainer: Jaehwan Kim <jae.hwan.kim@samsung.com>, Chuneon Park <chuneon.park@samsung.com>, Juyung Seo <juyung.seo@samsung.com>, Myungjae Lee <mjae.lee@samsung.com>, Woohyun Jung <wh0705.jung@samsung.com>, Jihoon Kim <jihoon48.kim@samsung.com>, Jeonghyun Yun <jh0506.yun@samsung.com>
 Uploaders: Doyoun Kang <doyoun.kang@samsung.com>, Hyoyoung Chang <hyoyoung.chang@samsung.com>
 Build-Depends: debhelper (>= 6), cdbs, libecore-dev, libevas-dev, libeet-dev, libeet-bin, libedje-dev, pkg-config, libtool, libeina-dev, libefreet-dev, libethumb-dev, libxml2-dev
 Standards-Version: 3.8.1
index 6706b56..13d329d 100755 (executable)
@@ -1258,6 +1258,7 @@ extern "C" {
    EAPI double            elm_genlist_longpress_timeout_get(const Evas_Object *obj);
    EAPI void              elm_genlist_effect_set(const Evas_Object *obj, Eina_Bool emode);
    EAPI void              elm_genlist_pinch_zoom_set(Evas_Object *obj, Eina_Bool emode);
+   EAPI void              elm_genlist_pinch_zoom_mode_set(Evas_Object *obj, Eina_Bool emode);
    EINA_DEPRECATED EAPI void              elm_genlist_queue_exception_set(const Evas_Object *obj, Eina_Bool emode);
 
 
@@ -2194,6 +2195,9 @@ extern "C" {
    /* Rotation Fx */
    EAPI Elm_Effect  *elm_fx_rotation_add(Evas_Object *obj, float from_degree, float to_degree, Eina_Bool cw);
 
+   /* Rotation3D Fx */
+   EAPI Elm_Effect  *elm_fx_rotation3d_add(Evas_Object *obj, float from_degree, float to_degree, float* axis_dir, float* axis_pos);
+   
    /* Color Fx */
    EAPI Elm_Effect  *elm_fx_color_add(Evas_Object *obj, unsigned int from_r, unsigned int from_g, unsigned int from_b, unsigned int from_a, unsigned int to_r, unsigned int to_g, unsigned int to_b, unsigned int to_a);
 
old mode 100755 (executable)
new mode 100644 (file)
index 4e9d4bb..d6a6fbd 100644 (file)
@@ -166,7 +166,7 @@ _sizing_eval(Evas_Object *obj)
    if (h > minh) minh = h;
 
    evas_object_size_hint_min_set(obj, minw, minh);
-   evas_object_size_hint_max_set(obj, maxw, maxh);
+   //evas_object_size_hint_max_set(obj, maxw, maxh);
 }
 
 static void
index d80fdd8..7050775 100644 (file)
@@ -883,7 +883,7 @@ text_converter(char *target __UNUSED__, void *data, int size __UNUSED__,
 
    if (sel->format == ELM_SEL_FORMAT_MARKUP){
        *data_ret = remove_tags(sel->selbuf, size_ret);
-   } else if (sel->format == ELM_SEL_FORMAT_TEXT){
+   } else if (sel->format == ELM_SEL_FORMAT_TEXT || sel->format == ELM_SEL_FORMAT_HTML){
         *data_ret = strdup(sel->selbuf);
         *size_ret = strlen(sel->selbuf);
    } else if (sel->format == ELM_SEL_FORMAT_IMAGE){
index fc1a5e9..42ff9e4 100644 (file)
@@ -103,10 +103,31 @@ static void
 _on_focus_hook(void *data, Evas_Object *obj)
 {
        Widget_Data *wd = elm_widget_data_get(obj);
-       if (!wd || !wd->base) return ;  
-
-       if (!elm_widget_focus_get(obj))
-               edje_object_signal_emit(wd->base, "elm,state,focus,out", "elm");
+       if (!wd || !wd->base) return ;
+       
+       if (elm_widget_focus_get(obj))
+       {
+               if (wd->layout == ELM_DATEFIELD_LAYOUT_TIME)
+                       elm_object_focus(wd->time[TIME_HOUR]);
+               
+               else if (wd->layout == ELM_DATEFIELD_LAYOUT_DATEANDTIME || wd->layout == ELM_DATEFIELD_LAYOUT_DATE)
+               {
+                       switch (wd->date_format)
+                       {
+                               case DATE_FORMAT_YYDDMM:
+                               case DATE_FORMAT_YYMMDD:
+                                       elm_object_focus(wd->date[DATE_YEAR]);
+                                       break;
+                               case DATE_FORMAT_MMDDYY:
+                               case DATE_FORMAT_MMYYDD:
+                                       elm_object_focus(wd->date[DATE_MON]);
+                                       break;
+                               case DATE_FORMAT_DDMMYY:
+                               case DATE_FORMAT_DDYYMM:
+                                       elm_object_focus(wd->date[DATE_DAY]);
+                       }
+               }
+       }
 }
 
 static void
@@ -188,7 +209,6 @@ _signal_ampm_mouse_down(void *data, Evas_Object *obj, const char *emission, cons
 
        focus_obj = elm_widget_focused_object_get(data);
        if (focus_obj) elm_object_unfocus(focus_obj);
-       edje_object_signal_emit(wd->base, "elm,state,focus,out", "elm");
 }
 
 static void
@@ -269,9 +289,6 @@ _entry_focused_cb(void *data, Evas_Object *obj, void *event_info)
        Widget_Data *wd = elm_widget_data_get(data);
        if (!wd || !wd->base) return;
  
-       if (elm_widget_focus_get(data))
-               edje_object_signal_emit(wd->base, "elm,state,focus,in", "elm");
-
        if (obj == wd->date[DATE_YEAR])
                edje_object_signal_emit(wd->base, "elm,state,year,focus,in", "elm");
        else if (obj == wd->date[DATE_MON])
@@ -365,7 +382,7 @@ _entry_unfocused_cb(void *data, Evas_Object *obj, void *event_info)
                        if (wd->pm) edje_object_part_text_set(wd->base, "elm.text.ampm", "PM");
                        else edje_object_part_text_set(wd->base, "elm.text.ampm", "AM");
                }
-               sprintf(str, "%d", num);                
+               sprintf(str, "%02d", num);              
                elm_entry_entry_set(wd->time[TIME_HOUR], str);
                edje_object_signal_emit(wd->base, "elm,state,hour,focus,out", "elm");                   
        }
@@ -377,11 +394,11 @@ _entry_unfocused_cb(void *data, Evas_Object *obj, void *event_info)
                if (num > MIN_MAXIMUM) num = MIN_MAXIMUM;
                wd->min = num;
 
-               sprintf(str, "%d", num);
+               sprintf(str, "%02d", num);
                elm_entry_entry_set(wd->time[TIME_MIN], str);
                edje_object_signal_emit(wd->base, "elm,state,min,focus,out", "elm");
        }
-       edje_object_signal_emit(wd->base, "elm,state,focus,out", "elm");
+       
        evas_object_smart_callback_call(data, "changed", NULL); 
 }
 
@@ -598,16 +615,15 @@ _date_update(Evas_Object *obj)
                }
 
                if (wd->hour > HOUR_12H_MAXIMUM)
-                       sprintf(str, "%d", wd->hour - HOUR_12H_MAXIMUM);
+                       sprintf(str, "%02d", wd->hour - HOUR_12H_MAXIMUM);
                else if (wd->hour == 0)
-                       sprintf(str, "%d", HOUR_12H_MAXIMUM);
+                       sprintf(str, "%02d", HOUR_12H_MAXIMUM);
                else
-                       sprintf(str, "%d", wd->hour);
+                       sprintf(str, "%02d", wd->hour);
        }
        elm_entry_entry_set(wd->time[TIME_HOUR], str);
 
-       sprintf(str, "%d", wd->min);
-       if (wd->min == 0) str[1] = '0';
+       sprintf(str, "%02d", wd->min);
        elm_entry_entry_set(wd->time[TIME_MIN], str);
 }
 
@@ -622,6 +638,7 @@ _date_entry_add(Evas_Object *obj)
        for (i = 0; i < DATE_MAX; i++)
        {
                wd->date[i] = elm_entry_add(obj);
+               elm_entry_single_line_set(wd->date[i], EINA_TRUE);
                elm_entry_context_menu_disabled_set(wd->date[i], EINA_TRUE);
                if (i == DATE_MON) elm_entry_input_panel_layout_set(wd->date[i], ELM_INPUT_PANEL_LAYOUT_MONTH);
                else elm_entry_input_panel_layout_set(wd->date[i], ELM_INPUT_PANEL_LAYOUT_NUMBERONLY);
@@ -648,6 +665,7 @@ _time_entry_add(Evas_Object *obj)
        for (i = 0; i < TIME_MAX; i++)
        {
                wd->time[i] = elm_entry_add(obj);
+               elm_entry_single_line_set(wd->time[i], EINA_TRUE);
                elm_entry_context_menu_disabled_set(wd->time[i], EINA_TRUE);
                elm_entry_input_panel_layout_set(wd->time[i], ELM_INPUT_PANEL_LAYOUT_NUMBERONLY);               
                elm_entry_maximum_bytes_set(wd->time[i], TIME_MAX_LENGTH);
index 9262a74..af66cf5 100644 (file)
@@ -72,7 +72,7 @@
  * 
  * Signals that you can add callbacks for are:
  * - "changed" - The text within the entry was changed
- * - "activated" - The entry has received focus and the cursor
+ * - "activated" - The entry has had editing finished and changes are to be committed (generally when enter key is pressed)
  * - "press" - The entry has been clicked
  * - "longpressed" - The entry has been clicked for a couple seconds
  * - "clicked" - The entry has been clicked
@@ -165,6 +165,8 @@ static void _signal_entry_changed(void *data, Evas_Object *obj, const char *emis
 static void _signal_selection_start(void *data, Evas_Object *obj, const char *emission, const char *source);
 static void _signal_selection_changed(void *data, Evas_Object *obj, const char *emission, const char *source);
 static void _signal_selection_cleared(void *data, Evas_Object *obj, const char *emission, const char *source);
+static void _signal_handler_move_start(void *data, Evas_Object *obj, const char *emission, const char *source);
+static void _signal_handler_move_end(void *data, Evas_Object *obj, const char *emission, const char *source);
 static void _signal_entry_paste_request(void *data, Evas_Object *obj, const char *emission, const char *source);
 static void _signal_entry_copy_notify(void *data, Evas_Object *obj, const char *emission, const char *source);
 static void _signal_entry_cut_notify(void *data, Evas_Object *obj, const char *emission, const char *source);
@@ -429,7 +431,7 @@ _on_focus_hook(void *data __UNUSED__, Evas_Object *obj)
    if (!wd->editable) return;
    if (elm_widget_focus_get(obj))
      {
-       evas_object_focus_set(wd->ent, 1);
+       evas_object_focus_set(wd->ent, EINA_TRUE);
        edje_object_signal_emit(wd->ent, "elm,action,focus", "elm");
 
        if (top) elm_win_keyboard_mode_set(top, ELM_WIN_KEYBOARD_ON);
@@ -439,8 +441,8 @@ _on_focus_hook(void *data __UNUSED__, Evas_Object *obj)
    else
      {
        edje_object_signal_emit(wd->ent, "elm,action,unfocus", "elm");
-       edje_object_part_text_set(wd->ent, "elm_entry_remain_byte_count", "");
-       evas_object_focus_set(wd->ent, 0);
+       //edje_object_part_text_set(wd->ent, "elm_entry_remain_byte_count", "");
+       evas_object_focus_set(wd->ent, EINA_FALSE);
        if (top) elm_win_keyboard_mode_set(top, ELM_WIN_KEYBOARD_OFF);
        evas_object_smart_callback_call(obj, SIG_UNFOCUSED, NULL);
      }
@@ -556,7 +558,7 @@ _select(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
    if (!wd->password)
      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);
+   //elm_widget_scroll_hold_push(data);
 }
 
 static void
@@ -612,7 +614,7 @@ _copy(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
    edje_object_signal_emit(wd->ent, "elm,state,select,off", "elm");
    elm_widget_scroll_hold_pop(data);
    _store_selection(ELM_SEL_CLIPBOARD, data);
-//   edje_object_part_text_select_none(wd->ent, "elm.text");
+   edje_object_part_text_select_none(wd->ent, "elm.text");
 }
 
 static void
@@ -691,7 +693,7 @@ _long_press(void *data)
           (wd->ent, "context_menu_orientation");
         if ((context_menu_orientation) &&
             (!strcmp(context_menu_orientation, "horizontal")))
-          elm_hoversel_horizontal_set(wd->hoversel, 1);
+          elm_hoversel_horizontal_set(wd->hoversel, EINA_TRUE);
         elm_object_style_set(wd->hoversel, "entry");
         elm_widget_sub_object_add(data, wd->hoversel);
         elm_hoversel_label_set(wd->hoversel, "Text");
@@ -788,7 +790,7 @@ _mouse_up(void *data, Evas *evas __UNUSED__, Evas_Object *obj __UNUSED__, void *
      {
        ecore_timer_del(wd->longpress_timer);
        wd->longpress_timer = NULL;
-     } 
+     }
 }
 
 static void
@@ -1128,6 +1130,20 @@ _signal_entry_changed(void *data, Evas_Object *obj __UNUSED__, const char *emiss
 }
 
 static void
+_signal_handler_move_start(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
+{
+   Widget_Data *wd = elm_widget_data_get(data);
+   elm_object_scroll_freeze_push(data);
+}
+
+static void
+_signal_handler_move_end(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
+{
+   Widget_Data *wd = elm_widget_data_get(data);
+   elm_object_scroll_freeze_pop(data);
+}
+
+static void
 _signal_selection_start(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
 {
    Widget_Data *wd = elm_widget_data_get(data);
@@ -1157,6 +1173,7 @@ _signal_selection_start(void *data, Evas_Object *obj __UNUSED__, const char *emi
 static void
 _signal_selection_changed(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
 {
+   Evas_Coord cx, cy, cw, ch;
    Widget_Data *wd = elm_widget_data_get(data);
    if (!wd) return;
    wd->have_selection = EINA_TRUE;
@@ -1164,6 +1181,18 @@ _signal_selection_changed(void *data, Evas_Object *obj __UNUSED__, const char *e
    evas_object_smart_callback_call(data, SIG_SELECTION_CHANGED, NULL);
    elm_selection_set(ELM_SEL_PRIMARY, obj, ELM_SEL_FORMAT_MARKUP,
                   elm_entry_selection_get(data));
+   
+   edje_object_part_text_cursor_geometry_get(wd->ent, "elm.text", &cx, &cy, &cw, &ch);
+   if (!wd->deferred_recalc_job)
+     elm_widget_show_region_set(data, cx, cy, cw, ch + elm_finger_size_get());
+   else
+     {
+       wd->deferred_cur = EINA_TRUE;
+       wd->cx = cx;
+       wd->cy = cy;
+       wd->cw = cw;
+       wd->ch = ch + elm_finger_size_get();
+     }
 }
 
 static void
@@ -1452,8 +1481,8 @@ _event_selection_clear(void *data, int type __UNUSED__, void *event)
 /*
    Widget_Data *wd = elm_widget_data_get(data);
    Ecore_X_Event_Selection_Clear *ev = event;
-   if (!wd) return 1;
-   if (!wd->have_selection) return 1;
+   if (!wd) return ECORE_CALLBACK_PASS_ON;
+   if (!wd->have_selection) return ECORE_CALLBACK_PASS_ON;
    if ((ev->selection == ECORE_X_SELECTION_CLIPBOARD) ||
        (ev->selection == ECORE_X_SELECTION_PRIMARY))
      {
@@ -1473,7 +1502,10 @@ _event_selection_clear(void *data, int type __UNUSED__, void *event)
                return ECORE_CALLBACK_PASS_ON;
        }
 
-       elm_selection_get(ELM_SEL_SECONDARY,ELM_SEL_FORMAT_MARKUP,data,NULL,NULL);
+       if (cnpwidgetdata == data)
+       {
+      elm_selection_get(ELM_SEL_SECONDARY,ELM_SEL_FORMAT_MARKUP,data,NULL,NULL);
+       }
 
        // end for cbhm
    return ECORE_CALLBACK_PASS_ON;
@@ -1928,7 +1960,7 @@ static int _textinput_control_function(void *data,void *input_data)
        byte_len = strlen(text);/*no of bytes*/
        remain_bytes = wd->max_no_of_bytes-byte_len;
        sprintf(buf,"%d",remain_bytes);
-       edje_object_part_text_set(wd->ent, "elm_entry_remain_byte_count", buf);
+       //edje_object_part_text_set(wd->ent, "elm_entry_remain_byte_count", buf);
        if(input_data)
          {
            insert_text =  (char *)input_data;
@@ -2008,6 +2040,10 @@ elm_entry_add(Evas_Object *parent)
    _elm_theme_object_set(obj, wd->ent, "entry", "base", "default");
    edje_object_signal_callback_add(wd->ent, "entry,changed", "elm.text",
                                    _signal_entry_changed, obj);
+   edje_object_signal_callback_add(wd->ent, "handler,move,start", "elm.text",
+                                   _signal_handler_move_start, obj);
+   edje_object_signal_callback_add(wd->ent, "handler,move,end", "elm.text",
+                                   _signal_handler_move_end, obj);
    edje_object_signal_callback_add(wd->ent, "selection,start", "elm.text",
                                    _signal_selection_start, obj);
    edje_object_signal_callback_add(wd->ent, "selection,changed", "elm.text",
index 2e44268..74b9c9a 100644 (file)
@@ -467,7 +467,6 @@ static void _edit_controls_eval( Elm_Genlist_Item *it );
 static void _move_edit_controls( Elm_Genlist_Item *it, int itx, int ity );
 static Eina_Bool _item_moving_effect_timer_cb(void *data);
 static int _item_flip_effect_show(void *data);
-static void elm_genlist_pinch_zoom_mode_set(Evas_Object *obj, int emode);
 
 static Evas_Smart_Class _pan_sc = EVAS_SMART_CLASS_INIT_VERSION;
 
@@ -3700,6 +3699,15 @@ elm_genlist_clear(Evas_Object *obj)
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
 
+   wd->move_effect_mode = ELM_GENLIST_ITEM_MOVE_EFFECT_NONE;
+   wd->pinchzoom_effect_mode = ELM_GENLIST_ITEM_PINCHZOOM_EFFECT_NONE;
+   elm_smart_scroller_hold_set(wd->scr, 0);
+   elm_smart_scroller_freeze_set(wd->scr, 0);
+   elm_smart_scroller_freeze_momentum_animator_set(wd->scr, 0);
+   elm_smart_scroller_freeze_bounce_animator_set(wd->scr, 0);   
+   elm_smart_scroller_bounce_allow_set(wd->scr, EINA_FALSE, EINA_TRUE);
+   wd->max_git_num  = 0;
+
    if(wd->item_moving_effect_timer)
    {
        //  ecore_timer_del(wd->item_moving_effect_timer);
@@ -5445,6 +5453,9 @@ _group_item_contract_moving_effect_timer_cb(void *data)
        if(!wd)
          return ECORE_CALLBACK_CANCEL;
 
+        if(wd->pinchzoom_effect_mode == ELM_GENLIST_ITEM_PINCHZOOM_EFFECT_NONE)
+            return ECORE_CALLBACK_CANCEL;
+
        elm_smart_scroller_bounce_allow_set(wd->scr, EINA_FALSE, EINA_FALSE);
        added_gy += 0.1; 
 
@@ -5630,6 +5641,9 @@ _group_item_expand_moving_effect_timer_cb(void *data)
        if (!wd)
          return ECORE_CALLBACK_CANCEL;
 
+        if(wd->pinchzoom_effect_mode == ELM_GENLIST_ITEM_PINCHZOOM_EFFECT_NONE)
+            return ECORE_CALLBACK_CANCEL;
+
        t = ecore_loop_time_get();
 
        top_git = wd->pinch_it;
@@ -5929,10 +5943,9 @@ create_tray_alpha_bg(const Evas_Object *obj)
        return bg ;
 }
 
-static void
-elm_genlist_pinch_zoom_mode_set(Evas_Object *obj, int emode)
+EAPI void
+elm_genlist_pinch_zoom_mode_set(Evas_Object *obj, Eina_Bool emode)
 {
-   Item_Block *itb;
    ELM_CHECK_WIDTYPE(obj, widtype);
    Widget_Data *wd = elm_widget_data_get(obj);
 
index 5fe04e4..e95cdad 100644 (file)
@@ -263,8 +263,8 @@ struct _Pan
 
 struct _Mod_Api
 {
-   void (*obj_hook) (Evas_Object *obj);
-   void (*obj_unhook) (Evas_Object *obj);
+   Eina_Bool (*obj_hook) (Evas_Object *obj);
+   Eina_Bool (*obj_unhook) (Evas_Object *obj);
    char * (*obj_url_request) (Evas_Object *obj, int x, int y, int zoom);
    Eina_Bool (*obj_convert_coord_into_geo) (const Evas_Object *obj, int zoom, int x, int y, int size, double *lon, double *lat);
    Eina_Bool (*obj_convert_geo_into_coord) (const Evas_Object *obj, int zoom, double lon, double lat, int size, int *x, int *y);
@@ -402,7 +402,7 @@ create_event_object(Evas_Object *object, int device)
    struct event_t *ev;
 
    ev = calloc(1, sizeof(struct event_t));
-   if(ev == NULL) printf("Cannot allocate event_t\n");
+   if(ev == NULL) DBG("Cannot allocate event_t");
    
    ev->object = object;
    ev->device = device;
@@ -1237,7 +1237,7 @@ _mouse_up(void *data, Evas *evas __UNUSED__, Evas_Object *obj __UNUSED__, void *
       }
       destroy_event_object(ev0);
    }else{
-      printf("[%d] Cannot get event0\n", __LINE__);
+      DBG("Cannot get event0");
    }
    if (!wd) return;
    if (ev->button != 1) return;
@@ -1264,7 +1264,7 @@ _mouse_multi_down(void *data, Evas *evas, Evas_Object *obj, void *event_info)
 
    ev = create_event_object(obj, down->device);
    if(!ev){
-      printf("Failed : create_event_object\n");
+      DBG("Failed : create_event_object");
       return;
    }
 
@@ -1291,7 +1291,7 @@ _mouse_multi_move(void *data, Evas *evas, Evas_Object *obj, void *event_info)
 
    ev = get_event_object(move->device);
    if(ev == NULL) {
-      printf("[%d] : Cannot get multi device\n", __LINE__);
+      DBG("Cannot get multi device");
       return;
    }
 
@@ -1300,7 +1300,7 @@ _mouse_multi_move(void *data, Evas *evas, Evas_Object *obj, void *event_info)
 
    ev0 = get_event_object(0);
    if(ev0 == NULL) {
-      printf("[%d] : Cannot get device0\n", __LINE__);
+      DBG("Cannot get device0");
       return;
    }
 
@@ -1341,7 +1341,7 @@ _mouse_multi_up(void *data, Evas *evas, Evas_Object *obj, void *event_info)
 
    ev = get_event_object(up->device);
    if(ev == NULL){
-      printf("[%d] : Cannot get multi device\n", __LINE__);
+      DBG("Cannot get multi device");
       return;
    }
 
@@ -1946,9 +1946,10 @@ elm_map_add(Evas_Object *parent)
    Widget_Data *wd;
    Evas_Coord minw, minh;
    Evas_Object *obj;
+   Eina_Bool ret = EINA_FALSE;
+   int idx;
    static Evas_Smart *smart = NULL;
 
-   setenv("ELM_MODULES", "decarta>map/api", 1);
    if (!ecore_file_download_protocol_available("http://"))
      {
        ERR("Ecore must be built with the support of HTTP for the widget map !");
@@ -1987,6 +1988,15 @@ elm_map_add(Evas_Object *parent)
    wd->markers_max_num = 30;
    wd->source = ELM_MAP_SOURCE_MAPNIK;
 
+   for(idx=ELM_MAP_SOURCE_MAPNIK; idx<=ELM_MAP_SOURCE_CUSTOM_6; idx++)
+   if(map_sources_tab[idx].use_module == EINA_TRUE){
+      if(!wd->api){
+         wd->api = module(obj);
+         if ((wd->api) && (wd->api->obj_hook)) ret = wd->api->obj_hook(obj);
+        if (!ret) DBG("Failed : loading module [%s]", elm_map_source_name_get(idx));
+      }
+   }
+
    evas_object_smart_callback_add(obj, "scroll-hold-on", _hold_on, obj);
    evas_object_smart_callback_add(obj, "scroll-hold-off", _hold_off, obj);
    evas_object_smart_callback_add(obj, "scroll-freeze-on", _freeze_on, obj);
@@ -2543,10 +2553,11 @@ EAPI void
 elm_map_utils_convert_coord_into_geo(const Evas_Object *obj, int x, int y, int size, double *lon, double *lat)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
+   int zoom = floor(log2(size/256));
 
    if(map_sources_tab[elm_map_source_get(obj)].use_module == EINA_TRUE)
    if(wd->api) if ((wd->api) && (wd->api->obj_convert_coord_into_geo)){
-      if(wd->api->obj_convert_coord_into_geo(obj, wd->zoom, x, y, size, lon, lat)==EINA_TRUE)
+      if(wd->api->obj_convert_coord_into_geo(obj, zoom, x, y, size, lon, lat)==EINA_TRUE)
          return;
    }
 
@@ -2577,10 +2588,11 @@ EAPI void
 elm_map_utils_convert_geo_into_coord(const Evas_Object *obj, double lon, double lat, int size, int *x, int *y)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
+   int zoom = floor(log2(size/256));
 
    if(map_sources_tab[elm_map_source_get(obj)].use_module == EINA_TRUE)
    if(wd->api) if ((wd->api) && (wd->api->obj_convert_geo_into_coord)){
-      if(wd->api->obj_convert_geo_into_coord(obj, wd->zoom, lon, lat, size, x, y)==EINA_TRUE)
+      if(wd->api->obj_convert_geo_into_coord(obj, zoom, lon, lat, size, x, y)==EINA_TRUE)
          return;
    }
 
@@ -3264,13 +3276,6 @@ elm_map_source_set(Evas_Object *obj, Elm_Map_Sources source)
    zoom = wd->zoom;
    wd->zoom = -1;
 
-   if(map_sources_tab[source].use_module == EINA_TRUE){
-      if(!wd->api){
-         wd->api = module(obj);
-         if ((wd->api) && (wd->api->obj_hook)) wd->api->obj_hook(obj);
-      }
-   }
-
    if (map_sources_tab[wd->source].zoom_max < zoom)
      zoom = map_sources_tab[wd->source].zoom_max;
    if (map_sources_tab[wd->source].zoom_min > zoom)
index 9f6562b..7490476 100644 (file)
@@ -724,7 +724,7 @@ elm_navigationbar_ex_item_style_set(Elm_Navigationbar_ex_Item* item, const char*
        strncpy(buf, "item/", sizeof(buf));\r
        strncat(buf, item_style, sizeof(buf) - strlen(buf));\r
        if (!eina_stringshare_replace(&item->item_style, item_style)) return;\r
-       _elm_theme_object_set(item->obj, item->base,  "navigationbar2", buf, elm_widget_style_get(item->obj));\r
+       _elm_theme_object_set(item->obj, item->base,  "navigationbar_ex", buf, elm_widget_style_get(item->obj));\r
        if(item->title)\r
                edje_object_part_text_set(item->base, "elm.text", item->title);\r
        if(item->subtitle)\r
index 74733cc..f50d1a2 100644 (file)
@@ -207,10 +207,14 @@ EAPI void elm_panes_content_left_set(Evas_Object *obj, Evas_Object *content)
 
    if (content)
      {
-       wd->contents.left = content;
        elm_widget_sub_object_add(obj, content);
+       wd->contents.left = content;
        edje_object_part_swallow(wd->panes, "elm.swallow.left", content);
+       if (wd->contents.right)
+          edje_object_signal_emit(wd->panes, "panes_pair", "elm");
      }
+   else
+      edje_object_signal_emit(wd->panes, "panes_unpair", "elm");
 }
 
 /**
@@ -233,11 +237,14 @@ EAPI void elm_panes_content_right_set(Evas_Object *obj, Evas_Object *content)
 
    if (content)
      {
-       wd->contents.right = content;
        elm_widget_sub_object_add(obj, content);
+       wd->contents.right = content;
        edje_object_part_swallow(wd->panes, "elm.swallow.right", content);
-       edje_object_signal_emit(wd->panes, "panes_pair", "elm");
+       if (wd->contents.left)
+         edje_object_signal_emit(wd->panes, "panes_pair", "elm");
      }
+   else
+      edje_object_signal_emit(wd->panes, "panes_unpair", "elm");
 }
 
 /**
@@ -288,7 +295,8 @@ elm_panes_content_left_unset(Evas_Object *obj)
    wd = elm_widget_data_get(obj);
 
    content = edje_object_part_swallow_get(wd->panes, "elm.swallow.left");
-   if(!content) return NULL;
+   if (!content)
+     return NULL;
    edje_object_part_unswallow(wd->panes, content);
    elm_widget_sub_object_del(obj, content);
    evas_object_hide(content);
@@ -315,7 +323,8 @@ elm_panes_content_right_unset(Evas_Object *obj)
    wd = elm_widget_data_get(obj);
 
    content = edje_object_part_swallow_get(wd->panes, "elm.swallow.right");
-   if(!content) return NULL;
+   if (!content)
+     return NULL;
    edje_object_part_unswallow(wd->panes, content);
    elm_widget_sub_object_del(obj, content);
    evas_object_hide(content);
@@ -412,10 +421,10 @@ elm_panes_fixed_set(Evas_Object *obj, Eina_Bool fixed)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    wd->fixed = fixed;
-   if(wd->fixed == EINA_TRUE)
-      edje_object_signal_emit(wd->panes, "elm.fixed", "movement.decider");
+   if (wd->fixed == EINA_TRUE)
+     edje_object_signal_emit(wd->panes, "elm.fixed", "movement.decider");
    else
-      edje_object_signal_emit(wd->panes, "elm.unfixed", "movement.decider");
+     edje_object_signal_emit(wd->panes, "elm.unfixed", "movement.decider");
 }
 
 /**
index a3ce66f..704270b 100644 (file)
@@ -123,6 +123,7 @@ _signal_segment_on(void *data)
             break;
          }
      }
+
    wd->cur_seg_id = item->segment_id;
    evas_object_smart_callback_call(item->obj, "changed", (void*)wd->cur_seg_id);
 
@@ -259,8 +260,8 @@ _segment_item_resizing(void *data)
 
    if(!wd) return;
    Evas_Coord w = 0, h = 0;
-   
    _update_list(it->obj);
+
    evas_object_geometry_get(it->base, NULL, NULL, &w, &h);
 
    if(wd->max_height == 1) wd->max_height = h;
@@ -349,6 +350,7 @@ static void
 _update_list(Evas_Object *obj)
 {
    Elm_Segment_Item *it;
+   Elm_Segment_Item *next_sel_it;
    Eina_List *l;
    int i = 0;
  
@@ -370,13 +372,13 @@ _update_list(Evas_Object *obj)
           edje_object_signal_emit(it->base, "elm,state,text,hidden", "elm");
         if (it->icon && edje_object_part_swallow_get(it->base, "elm.swallow.content") == NULL)
           {
-           if(it->icon)
-             {
-                edje_object_part_swallow(it->base, "elm.swallow.content", it->icon);
-                edje_object_signal_emit(it->base, "elm,state,icon,visible", "elm");
-             }
-           else
-              edje_object_signal_emit(it->base, "elm,state,icon,hidden", "elm");
+              if(it->icon)
+                {
+                   edje_object_part_swallow(it->base, "elm.swallow.content", it->icon);
+                   edje_object_signal_emit(it->base, "elm,state,icon,visible", "elm");
+                }
+              else
+                 edje_object_signal_emit(it->base, "elm,state,icon,hidden", "elm");
           }
        edje_object_message_signal_process(it->base);
 
@@ -421,11 +423,21 @@ _update_list(Evas_Object *obj)
 
        i++;
      }
+
    if(wd->data && wd->selected)
      {
         _signal_segment_on(wd->data);
         wd->selected = EINA_FALSE;
      }
+   if(wd->cur_seg_id != wd->del_index || wd->cur_seg_id == 0)
+     {
+        next_sel_it = _item_find(obj, wd->cur_seg_id);
+        if(next_sel_it)
+          {
+             _signal_segment_on((void*)next_sel_it);
+             wd->selected = EINA_FALSE;
+          }
+     }
 }
 
 
@@ -438,16 +450,16 @@ _refresh_segment_ids(Evas_Object *obj)
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
  
-   if (wd->insert_index && wd->cur_seg_id >= wd->insert_index)
+   if ((wd->insert_index > 0) && wd->cur_seg_id >= wd->insert_index)
      {
         ++wd->cur_seg_id;
        wd->insert_index = 0;
      }
-   if (wd->del_index)
+   if (wd->del_index > 0)
      {
         if (wd->cur_seg_id >= wd->del_index)
           --wd->cur_seg_id;
-        wd->del_index =0;
+        wd->del_index = -1;
      }
 
    EINA_LIST_FOREACH(wd->seg_ctrl, l, it)
@@ -585,26 +597,6 @@ _item_find(Evas_Object *obj, unsigned int index)
      return NULL;
 }
 
-
-static Elm_Segment_Item *
-_item_search(Evas_Object *obj, Elm_Segment_Item *item)
-{
-   Elm_Segment_Item *it;
-   Eina_List *l;
-   Widget_Data *wd = elm_widget_data_get(obj);
-   if (!wd)
-   return NULL;
-
-   EINA_LIST_FOREACH(wd->seg_ctrl, l, it)
-     {
-        if (it == item) {
-          return it;
-       }
-     }
-   return NULL;
-}
-
-
 /**
  * Add a new segmentcontrol to the parent
  * @param parent The parent object
@@ -643,10 +635,11 @@ elm_segment_control_add(Evas_Object *parent)
 
    evas_object_event_callback_add(obj, EVAS_CALLBACK_RESIZE, _object_resize, obj);
    wd->id = 0;
-   wd->del_index = 0;
-   wd->insert_index = 0;
+   wd->del_index = -1;
+   wd->insert_index = -1;
    wd->cur_seg_id = -1;
    wd->selected = EINA_FALSE;
+   wd->data = NULL;
 
    deffont = edje_object_data_get(wd->base, "default_font_size");
    if (deffont) wd->cur_fontsize = atoi(deffont);
@@ -683,8 +676,8 @@ elm_segment_control_item_add(Evas_Object *obj, Evas_Object *icon, const char *la
    evas_object_event_callback_add(it->base, EVAS_CALLBACK_MOUSE_DOWN, _mouse_down, it);
    evas_object_event_callback_add(it->base, EVAS_CALLBACK_MOUSE_UP, _mouse_up, it);
    evas_object_event_callback_add(it->base, EVAS_CALLBACK_RESIZE, _object_item_resize, it);
-   wd->insert_index = 0;
-   wd->del_index = 0;
+   wd->insert_index = -1;
+   wd->del_index = -1;
    _refresh_segment_ids(obj);
 
    if(animate && it->segment_id && wd->ani_it == NULL)
@@ -800,7 +793,6 @@ elm_segment_control_item_del(Evas_Object *obj, Elm_Segment_Item *item, Eina_Bool
    if(!wd) return;
 
 
-//   it = _item_search(obj, item);
    it = item;
    if(!it) return;
 
@@ -1047,11 +1039,11 @@ elm_segment_control_item_selected_set( Elm_Segment_Item *item, Eina_Bool select)
       if(item->segment_id == wd->cur_seg_id) return;
       wd->selected = EINA_TRUE;
       if(wd->data)
-        {      
+        {
            evas_object_del((Evas_Object *)wd->data);
            wd->data = NULL;
        }
-      wd->data = item;
+      wd->data = (void*)item;
 
       }
    else if(item->segment_id == wd->cur_seg_id)
index f961022..5db35bc 100644 (file)
@@ -227,7 +227,6 @@ elm_slidingdrawer_max_drag_value_set(Evas_Object *obj, double dw,  double dh)
 {
        ELM_CHECK_WIDTYPE(obj, widtype);
        Widget_Data *wd;
-       Evas_Coord w, h;
 
        wd = elm_widget_data_get(obj);
        wd->max_drag_w = dw;
index e54f890..5b99c41 100644 (file)
@@ -828,7 +828,7 @@ static Eina_Bool edit_item_up_cb(void *data, int type, void *event_info)
                x = ev->x - w/2;\r
                y = ev->y - h;\r
 \r
-               evas_object_data_set(wd->moving_obj, "returning", 1);\r
+               evas_object_data_set(wd->moving_obj, "returning", (void *)1);\r
                wd->animating++;\r
                move_object_with_animation(wd->moving_obj, x, y, w, h, x_, y_, w_, h_, 0.25, edit_item_return_cb, wd);\r
        }\r
@@ -977,7 +977,7 @@ static Eina_Bool bar_item_move_cb(void *data, int type, void *event_info)
                        elm_table_pack(wd->box, wd->moving_obj, wd->empty_num-1, 0, 1, 1);\r
 \r
                        wd->animating++;\r
-                       evas_object_data_set(item->base, "animating", 1);\r
+                       evas_object_data_set(item->base, "animating", (void *)1);\r
                        move_object_with_animation(item->base, x, y, w, h, x_, y_, w_, h_, 0.25, bar_item_move_end_cb, wd);\r
                }\r
        }\r
index f37fae7..a5866ee 100644 (file)
@@ -1,4 +1,5 @@
 #include <Elementary.h>
+#include "elm_priv.h"
 
 /**
  *
@@ -1040,7 +1041,7 @@ _set_image_uv_by_axis_y(Evas_Map *map, Elm_Fx_ResizableFlip *flip,
        evas_map_point_image_uv_set(map, 1, flip->from_size.x, 0);
        evas_map_point_image_uv_set(map, 2, flip->from_size.x,
                                    flip->from_size.y);
-       evas_map_point_image_uv_set(map, 3, 0, flip->to_size.y);
+       evas_map_point_image_uv_set(map, 3, 0, flip->from_size.y);
      }
 }
 
@@ -1259,7 +1260,7 @@ _elm_fx_wipe_hide(Evas_Map * map, Elm_Fx_Wipe_Dir dir, float x, float y,
      {
    case ELM_FX_WIPE_DIR_UP:
        w2 = (x + w);
-       h2 = h - (h * frame);
+       h2 = y + h - (h * frame);
        evas_map_point_image_uv_set(map, 0, 0, 0);
        evas_map_point_image_uv_set(map, 1, w, 0);
        evas_map_point_image_uv_set(map, 2, w, h2);
@@ -1304,6 +1305,7 @@ _elm_fx_wipe_hide(Evas_Map * map, Elm_Fx_Wipe_Dir dir, float x, float y,
        evas_map_point_coord_set(map, 1, w2, y + h2, 0);
        evas_map_point_coord_set(map, 2, w2, y + h, 0);
        evas_map_point_coord_set(map, 3, x, y + h, 0);
+       fprintf(stderr, "%f %f %f %f\n", x, y, w, h);
        break;
      default:
        break;
@@ -1903,6 +1905,139 @@ elm_fx_rotation_add(Evas_Object *obj, float from_degree, float to_degree,
    return effect;
 }
 
+
+
+
+/////////////////////////////////////////////////////////////////////////////////////
+//Rotation3d FX
+/////////////////////////////////////////////////////////////////////////////////////
+typedef struct _rotation3d Elm_Fx_Rotation3d;
+static void _elm_fx_rotation3d_begin(void *data, Eina_Bool auto_reverse,
+                               unsigned int repeat_cnt);
+static void _elm_fx_rotation3d_end(void *data, Eina_Bool auto_reverse,
+                               unsigned int repeat_cnt);
+static void _elm_fx_rotation3d_op(void *data, Elm_Animator *animator,
+                               double frame);
+
+struct _rotation3d
+{
+   Evas_Object *obj;
+   float from[3];
+   float to[3];
+   float axis_pos[3];
+};
+
+static void
+_elm_fx_rotation3d_begin(void *data, Eina_Bool auto_reverse,
+                      unsigned int repeat_cnt)
+{
+   Elm_Fx_Rotation3d *rotation = data;
+   evas_object_show(rotation->obj);
+}
+
+static void
+_elm_fx_rotation3d_end(void *data, Eina_Bool auto_reverse,
+                    unsigned int repeat_cnt)
+{
+   Elm_Fx_Rotation3d *rotation = data;
+   evas_object_map_enable_set(rotation->obj, EINA_FALSE);
+}
+
+static void
+_elm_fx_rotation3d_op(void *data, Elm_Animator *animator, double frame)
+{
+   Elm_Fx_Rotation3d *rotation;
+
+   Evas_Map *map;
+
+   Evas_Coord x, y, w, h;
+
+   float degree[3];
+
+   float half_w, half_h;
+
+   map = evas_map_new(4);
+   if (!map)
+      return;
+
+   rotation = data;
+
+   evas_map_smooth_set(map, EINA_TRUE);
+   evas_map_util_points_populate_from_object_full(map, rotation->obj, 0);
+   degree[0] = rotation->from[0] + (float)(frame * rotation->to[0]);
+   degree[1] = rotation->from[1] + (float)(frame * rotation->to[1]);
+   degree[2] = rotation->from[2] + (float)(frame * rotation->to[2]);
+
+   evas_object_geometry_get(rotation->obj, &x, &y, &w, &h);
+
+   half_w = (float)w *0.5;
+
+   half_h = (float)h *0.5;
+
+   evas_map_util_3d_rotate(map, degree[0], degree[1], degree[2], rotation->axis_pos[0], rotation->axis_pos[1], rotation->axis_pos[2]);
+   evas_map_util_3d_perspective(map, x + half_w, y + half_h, 0, 1000);
+   evas_object_map_enable_set(rotation->obj, EINA_TRUE);
+   evas_object_map_set(rotation->obj, map);
+   evas_map_free(map);
+}
+
+/**
+ * Add Rotation3d effect
+ *
+ * @param[in] obj Evas_Object that effect is applying to
+ * @param[in] from degree Degree when effect begins
+ * @param[in] to_degree Degree when effect is ends
+ * @param[in] axis_dir[3] rotation axis vector. it should be normalized.
+ * @param[in] axis_pos[3] rotation axis origin position.
+ * @param[in] cw Rotation direction. EINA_TRUE is clock wise
+ * @return Rotation effect
+ *
+ * @ingroup Transit
+ */
+EAPI Elm_Effect *
+elm_fx_rotation3d_add(Evas_Object *obj, float from_degree, float to_degree,
+               float* axis_dir, float* axis_pos)
+{
+   Elm_Effect *effect;
+
+   Elm_Fx_Rotation3d *rotation;
+
+   if (!obj)
+      return NULL;
+
+   effect = calloc(1, sizeof(Elm_Effect));
+   if (!effect)
+      return NULL;
+
+   rotation = calloc(1, sizeof(Elm_Fx_Rotation3d));
+
+   if (!rotation)
+     {
+       free(effect);
+       return NULL;
+     }
+
+   rotation->obj = obj;
+   rotation->from[0] = from_degree * axis_dir[0];
+   rotation->from[1] = from_degree * axis_dir[1];
+   rotation->from[2] = from_degree * axis_dir[2];
+   rotation->to[0] = (to_degree * axis_dir[0]) - rotation->from[0];
+   rotation->to[1] = (to_degree * axis_dir[1]) - rotation->from[1];
+   rotation->to[2] = (to_degree * axis_dir[2]) - rotation->from[2];
+   rotation->axis_pos[0] = axis_pos[0];
+   rotation->axis_pos[1] = axis_pos[1];
+   rotation->axis_pos[2] = axis_pos[2];
+
+   effect->begin_op = _elm_fx_rotation3d_begin;
+   effect->end_op = _elm_fx_rotation3d_end;
+   effect->animation_op = _elm_fx_rotation3d_op;
+   effect->user_data = rotation;
+
+   return effect;
+}
+
+
+
 /////////////////////////////////////////////////////////////////////////////////////
 // ImageAnimation FX
 /////////////////////////////////////////////////////////////////////////////////////
index d77e386..43a22bd 100644 (file)
@@ -216,8 +216,8 @@ _els_smart_icon_orient_set(Evas_Object *obj, Elm_Image_Orient orient)
       case ELM_IMAGE_ROTATE_180_CW:
          _els_smart_icon_rotate_180(sd);
          return;
-     default:
-        return;
+     //default:
+        //return;
      }
 
    evas_object_image_size_get(sd->obj, &iw, &ih);