discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=2617f2a35271a11371a2c2b85a085488004d0e82

commit 2617f2a35271a11371a2c2b85a085488004d0e82
Author: Mike Blumenkrantz <[email protected]>
Date:   Wed Mar 18 17:45:39 2015 -0400

    remove E_Conf usage in conf theme
---
 src/modules/conf_theme/e_int_config_borders.c   | 10 +++-------
 src/modules/conf_theme/e_int_config_wallpaper.c |  4 +---
 2 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/src/modules/conf_theme/e_int_config_borders.c 
b/src/modules/conf_theme/e_int_config_borders.c
index d823964..cac3c76 100644
--- a/src/modules/conf_theme/e_int_config_borders.c
+++ b/src/modules/conf_theme/e_int_config_borders.c
@@ -13,7 +13,6 @@ static void                  
_basic_apply_border(E_Config_Dialog_Data *cfdata);
 struct _E_Config_Dialog_Data
 {
    E_Client *client;
-   E_Comp *comp;
    const char  *bordername;
    int          remember_border;
 };
@@ -76,11 +75,8 @@ _create_data(E_Config_Dialog *cfd)
    E_Config_Dialog_Data *cfdata;
 
    cfdata = E_NEW(E_Config_Dialog_Data, 1);
-   cfdata->comp = NULL;
    cfdata->client = NULL;
-   if (!cfd->data)
-     cfdata->comp = e_comp;
-   else
+   if (cfd->data)
      cfdata->client = cfd->data;
 
    _fill_data(cfdata);
@@ -133,12 +129,12 @@ _basic_apply(E_Config_Dialog *cfd __UNUSED__, 
E_Config_Dialog_Data *cfdata)
 {
    if (cfdata->client)
      _basic_apply_border(cfdata);
-   else if (cfdata->comp)
+   else
      {
         Eina_List *l;
         E_Client *ec;
         eina_stringshare_replace(&e_config->theme_default_border_style, 
cfdata->bordername);
-        EINA_LIST_FOREACH(cfdata->comp->clients, l, ec)
+        EINA_LIST_FOREACH(e_comp->clients, l, ec)
           {
              if (e_client_util_ignored_get(ec)) continue;
              EC_CHANGED(ec);
diff --git a/src/modules/conf_theme/e_int_config_wallpaper.c 
b/src/modules/conf_theme/e_int_config_wallpaper.c
index ccfc880..f736d7a 100644
--- a/src/modules/conf_theme/e_int_config_wallpaper.c
+++ b/src/modules/conf_theme/e_int_config_wallpaper.c
@@ -338,15 +338,13 @@ _fill_data(E_Config_Dialog_Data *cfdata)
    else
      {
         /* get current desk. advanced mode allows selecting all, screen or 
desk */
-        E_Comp *comp;
         E_Zone *zone;
         E_Desk *desk;
 
-        comp = e_manager_current_get()->comp;
         zone = e_zone_current_get();
         desk = e_desk_current_get(zone);
 
-        cfbg = e_bg_config_get(comp->num, zone->num, desk->x, desk->y);
+        cfbg = e_bg_config_get(e_comp->num, zone->num, desk->x, desk->y);
         /* if we have a config for this bg, use it. */
         if (cfbg)
           {

-- 


Reply via email to