change shelf style during config while gadcon is unpopulated for a small speedup...
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 19 Dec 2012 09:18:11 +0000 (09:18 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 19 Dec 2012 09:18:11 +0000 (09:18 +0000)
ticket #2048

SVN revision: 81332

src/bin/e_int_shelf_config.c

index 7a7519a..ff0477b 100644 (file)
@@ -277,18 +277,6 @@ _basic_apply(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
    E_Config_Shelf_Desk *sd;
    int recreate = 0;
 
-   if (!cfdata->escfg->style)
-     {
-        cfdata->escfg->style = eina_stringshare_ref(cfdata->style);
-        e_shelf_style_set(cfdata->es, cfdata->style);
-     }
-   else if ((cfdata->escfg->style) &&
-            (cfdata->escfg->style != cfdata->style))
-     {
-        eina_stringshare_replace(&cfdata->escfg->style, cfdata->style);
-        e_shelf_style_set(cfdata->es, cfdata->style);
-     }
-
    if (cfdata->escfg->orient != cfdata->orient)
      {
         cfdata->escfg->orient = cfdata->orient;
@@ -370,6 +358,17 @@ _basic_apply(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
      }
 
    e_gadcon_unpopulate(cfdata->es->gadcon);
+   if (!cfdata->escfg->style)
+     {
+        cfdata->escfg->style = eina_stringshare_ref(cfdata->style);
+        e_shelf_style_set(cfdata->es, cfdata->style);
+     }
+   else if ((cfdata->escfg->style) &&
+            (cfdata->escfg->style != cfdata->style))
+     {
+        eina_stringshare_replace(&cfdata->escfg->style, cfdata->style);
+        e_shelf_style_set(cfdata->es, cfdata->style);
+     }
    if (recreate)
      {
         E_Zone *zone;