[toolbar] improved focus UI action
authorHosang Kim <hosang12.kim@samsung.com>
Thu, 20 Jun 2013 06:47:09 +0000 (15:47 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Thu, 27 Jun 2013 04:06:21 +0000 (13:06 +0900)
Change-Id: I5df29b28d5b4258cc8a1a1a189882cb73475ceef

src/lib/elm_toolbar.c

index 7ee2a16..8324707 100644 (file)
@@ -1126,6 +1126,7 @@ _elm_toolbar_smart_theme(Evas_Object *obj)
 {
    Elm_Toolbar_Item *it;
    double scale = 0;
+   const char *str;
 
    ELM_TOOLBAR_DATA_GET(obj, sd);
 
@@ -1139,6 +1140,12 @@ _elm_toolbar_smart_theme(Evas_Object *obj)
      (obj, ELM_WIDGET_DATA(sd)->resize_obj, "toolbar", "base",
      elm_widget_style_get(obj));
 
+   str = edje_object_data_get(ELM_WIDGET_DATA(sd)->resize_obj, "focus_highlight");
+   if ((str) && (!strcmp(str, "on")))
+     elm_widget_highlight_in_theme_set(obj, EINA_TRUE);
+   else
+     elm_widget_highlight_in_theme_set(obj, EINA_FALSE);
+
    elm_layout_theme_set
      (sd->more, "toolbar", "more", elm_widget_style_get(obj));