fix floating border icons when changing border themes
authorMike Blumenkrantz <m.blumenkran@samsung.com>
Fri, 10 May 2013 11:29:58 +0000 (12:29 +0100)
committerMike Blumenkrantz <m.blumenkran@samsung.com>
Fri, 10 May 2013 11:29:58 +0000 (12:29 +0100)
src/bin/e_border.c

index 49b09a2..ded5a4d 100644 (file)
@@ -8137,7 +8137,12 @@ _e_border_eval0(E_Border *bd)
                   evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_DOWN, _e_border_cb_mouse_down, bd);
                   evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_UP, _e_border_cb_mouse_up, bd);
                   evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_WHEEL, _e_border_cb_mouse_wheel, bd);
-                  if (!pbg) bd->changes.icon = 1;
+                  if (pbg)
+                    {
+                       if (bd->icon_object)
+                         edje_object_part_swallow(bd->bg_object, "e.swallow.icon", bd->icon_object);
+                    }
+                  else bd->changes.icon = 1;
                }
              else
                {