[elm_widget.c] Widget orientation signal emission logic is corrected in elm_widget_th...
authorsumanth <sumanth.m@samsung.com>
Mon, 25 Mar 2013 08:37:34 +0000 (14:07 +0530)
committerSungho Kwak <sungho1.kwak@samsung.com>
Thu, 28 Mar 2013 02:51:13 +0000 (11:51 +0900)
Change-Id: I8515226908180058a77924f8c35fd99a1c524daa

src/lib/elm_widget.c

index 8ecbc4e..be1feb6 100644 (file)
@@ -3531,7 +3531,6 @@ elm_widget_theme_object_set(Evas_Object *obj,
 {
    API_ENTRY return EINA_FALSE;
    char buf[128];
-   int ret;
 
    if (!_elm_theme_object_set(obj, edj, wname, welement, wstyle))
      return EINA_FALSE;
@@ -3539,7 +3538,7 @@ elm_widget_theme_object_set(Evas_Object *obj,
    if (sd->orient_mode != -1)
      {
 
-        snprintf(buf, sizeof(buf), "elm,state,orient,%d", ret);
+        snprintf(buf, sizeof(buf), "elm,state,orient,%d", sd->orient_mode);
         elm_widget_signal_emit(obj, buf, "elm");
 
      }