Enlightenment CVS committal

Author  : devilhorns
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/modules/ibox


Modified Files:
        e_mod_config.c 


Log Message:
Bah...Remove the unused Cfg_File struct. Some formatting. Refix the config
options changing values when switching between Basic/Advanced by not calling
_fill_data twice. It's called on _create_data, there is no need to call it
again.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/ibox/e_mod_config.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- e_mod_config.c      12 Mar 2006 16:12:58 -0000      1.18
+++ e_mod_config.c      18 Mar 2006 16:40:28 -0000      1.19
@@ -3,8 +3,6 @@
 #include "e_mod_config.h"
 #include "config.h"
 
-typedef struct _Cfg_File_Data Cfg_File_Data;
-
 struct _E_Config_Dialog_Data
 {
    int autofit;
@@ -14,12 +12,6 @@
    double autoscroll_speed;
 };
 
-struct _Cfg_File_Data
-{
-   E_Config_Dialog *cfd;
-   char *file;
-};
-
 /* Protos */
 static void *_create_data(E_Config_Dialog *cfd);
 static void _free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
@@ -85,10 +77,6 @@
 _basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data 
*cfdata)
 {
    Evas_Object *o, *ob;
-   IBox *ib;
-   
-   ib = cfd->data;
-   _fill_data(ib, cfdata);
 
    o = e_widget_list_add(evas, 0, 0);
    ob = e_widget_check_add(evas, _("Show Follower"), &(cfdata->follower));
@@ -106,22 +94,14 @@
    ib = cfd->data;
    e_border_button_bindings_ungrab_all();
    if ((cfdata->follower) && (!ib->conf->follower)) 
-     {
-       ib->conf->follower = 1;
-     }
+     ib->conf->follower = 1;
    else if (!(cfdata->follower) && (ib->conf->follower)) 
-     {
-       ib->conf->follower = 0;
-     }
+     ib->conf->follower = 0;
    
    if ((cfdata->autofit) && (ib->conf->width == IBOX_WIDTH_FIXED)) 
-     {
-       ib->conf->width = IBOX_WIDTH_AUTO;
-     }
+     ib->conf->width = IBOX_WIDTH_AUTO;
    else if (!(cfdata->autofit) && (ib->conf->width == IBOX_WIDTH_AUTO)) 
-     {
-       ib->conf->width = IBOX_WIDTH_FIXED;
-     }
+     ib->conf->width = IBOX_WIDTH_FIXED;
 
    e_border_button_bindings_grab_all();
    e_config_save_queue();
@@ -134,10 +114,6 @@
 _advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas, 
E_Config_Dialog_Data *cfdata)
 {
    Evas_Object *o, *of, *ob;
-   IBox *ib;
-   
-   ib = cfd->data;
-   _fill_data(ib, cfdata);
 
    o = e_widget_list_add(evas, 0, 0);
    
@@ -175,35 +151,21 @@
    ib = cfd->data;
    e_border_button_bindings_ungrab_all();
    if ((cfdata->follower) && (!ib->conf->follower)) 
-     {
-       ib->conf->follower = 1;
-     }
+     ib->conf->follower = 1;
    else if (!(cfdata->follower) && (ib->conf->follower)) 
-     {
-       ib->conf->follower = 0;
-     }
+     ib->conf->follower = 0;
    
    if ((cfdata->autofit) && (ib->conf->width == IBOX_WIDTH_FIXED)) 
-     {
-       ib->conf->width = IBOX_WIDTH_AUTO;
-     }
+     ib->conf->width = IBOX_WIDTH_AUTO;
    else if (!(cfdata->autofit) && (ib->conf->width == IBOX_WIDTH_AUTO)) 
-     {
-       ib->conf->width = IBOX_WIDTH_FIXED;
-     }
+     ib->conf->width = IBOX_WIDTH_FIXED;
 
    if (cfdata->iconsize != ib->conf->iconsize) 
-     {
-       ib->conf->iconsize = cfdata->iconsize;
-     }
+     ib->conf->iconsize = cfdata->iconsize;
    if (cfdata->follow_speed != ib->conf->follow_speed) 
-     { 
-       ib->conf->follow_speed = cfdata->follow_speed;
-     }
+     ib->conf->follow_speed = cfdata->follow_speed;
    if (cfdata->autoscroll_speed != ib->conf->autoscroll_speed) 
-     {
-       ib->conf->autoscroll_speed = cfdata->autoscroll_speed;
-     }
+     ib->conf->autoscroll_speed = cfdata->autoscroll_speed;
 
    e_border_button_bindings_grab_all();
    e_config_save_queue();




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to