only size/swallow menu icons once
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 14 Nov 2012 10:35:38 +0000 (10:35 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 14 Nov 2012 10:35:38 +0000 (10:35 +0000)
SVN revision: 79278

src/bin/e_menu.c

index 2554c92..26640d3 100644 (file)
@@ -1530,19 +1530,13 @@ no_submenu_item:
 
              if (mi->icon_bg_object)
                {
-                  edje_extern_object_min_size_set(mi->icon_object,
-                                                  icon_w, icon_h);
+                  edje_extern_object_min_size_set(mi->icon_object, 0, 0);
                   edje_object_part_swallow(mi->icon_bg_object,
                                            "e.swallow.content",
                                            mi->icon_object);
                   edje_object_size_min_calc(mi->icon_bg_object, &ww, &hh);
                   mi->icon_w = ww;
                   mi->icon_h = hh;
-
-                  edje_extern_object_min_size_set(mi->icon_object, 0, 0);
-                  edje_object_part_swallow(mi->icon_bg_object,
-                                           "e.swallow.content",
-                                           mi->icon_object);
                   e_box_pack_end(mi->container_object, mi->icon_bg_object);
                }
              else