forked from enlightenment/enlightenment
More Formatting...man this was a mess
SVN revision: 19163
This commit is contained in:
parent
d20ad6001b
commit
4d260a8c32
|
@ -32,8 +32,7 @@ struct _CFData
|
|||
{
|
||||
Evas_Object *configure, *enable, *disable;
|
||||
Evas_Object *load, *unload, *loaded, *unloaded;
|
||||
}
|
||||
gui;
|
||||
} gui;
|
||||
};
|
||||
|
||||
struct _E_Cfg_Mod_Data
|
||||
|
@ -115,18 +114,18 @@ _e_config_mod_cb_standard(void *data)
|
|||
cfd->data=m;
|
||||
if(m->enabled)
|
||||
{
|
||||
e_widget_disabled_set(cfdata->gui.enable, 1);
|
||||
e_widget_disabled_set(cfdata->gui.disable, 0);
|
||||
e_widget_disabled_set( cfdata->gui.enable, 1);
|
||||
e_widget_disabled_set( cfdata->gui.disable, 0);
|
||||
if(m->func.config)
|
||||
e_widget_disabled_set(cfdata->gui.configure, 0);
|
||||
e_widget_disabled_set( cfdata->gui.configure, 0);
|
||||
else
|
||||
e_widget_disabled_set(cfdata->gui.configure, 1);
|
||||
e_widget_disabled_set( cfdata->gui.configure, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
e_widget_disabled_set(cfdata->gui.configure, 1);
|
||||
e_widget_disabled_set(cfdata->gui.enable, 0);
|
||||
e_widget_disabled_set(cfdata->gui.disable, 1);
|
||||
e_widget_disabled_set( cfdata->gui.configure, 1);
|
||||
e_widget_disabled_set( cfdata->gui.enable, 0);
|
||||
e_widget_disabled_set( cfdata->gui.disable, 1);
|
||||
}
|
||||
}
|
||||
else /* Load / Unload menu */
|
||||
|
@ -134,15 +133,15 @@ _e_config_mod_cb_standard(void *data)
|
|||
if(!d->loaded)/* unloaded module was clicked */
|
||||
{
|
||||
cfd->data=d->mod_name;
|
||||
e_widget_disabled_set(cfdata->gui.load,0);
|
||||
e_widget_disabled_set(cfdata->gui.unload,1);
|
||||
e_widget_disabled_set(cfdata->gui.loaded,1);
|
||||
e_widget_disabled_set(cfdata->gui.load, 0);
|
||||
e_widget_disabled_set(cfdata->gui.unload, 1);
|
||||
e_widget_disabled_set(cfdata->gui.loaded, 1);
|
||||
}
|
||||
else /* this is a loaded module */
|
||||
{
|
||||
cfd->data=d->mod;
|
||||
e_widget_disabled_set(cfdata->gui.load,1);
|
||||
e_widget_disabled_set(cfdata->gui.unload,0);
|
||||
e_widget_disabled_set(cfdata->gui.load, 1);
|
||||
e_widget_disabled_set(cfdata->gui.unload, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -195,18 +194,18 @@ _module_enable(void *data, void *data2)/* this enables and disables :) */
|
|||
e_module_save(m);
|
||||
e_module_disable(m);
|
||||
|
||||
e_widget_disabled_set(cfdata->gui.configure, 1);
|
||||
e_widget_disabled_set(cfdata->gui.enable, 0);
|
||||
e_widget_disabled_set(cfdata->gui.disable, 1);
|
||||
e_widget_disabled_set( cfdata->gui.configure, 1);
|
||||
e_widget_disabled_set( cfdata->gui.enable, 0);
|
||||
e_widget_disabled_set( cfdata->gui.disable, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
e_module_enable(m);
|
||||
|
||||
if(m->func.config)
|
||||
e_widget_disabled_set(cfdata->gui.configure, 0);
|
||||
e_widget_disabled_set(cfdata->gui.enable, 1);
|
||||
e_widget_disabled_set(cfdata->gui.disable, 0);
|
||||
e_widget_disabled_set( cfdata->gui.configure, 0);
|
||||
e_widget_disabled_set( cfdata->gui.enable, 1);
|
||||
e_widget_disabled_set( cfdata->gui.disable, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -228,6 +227,8 @@ _module_configure(void *data, void *data2)
|
|||
printf("Can't run config no module!!!\n");// Debug!!
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**--CREATE--**/
|
||||
static void
|
||||
_fill_data(CFData *cfdata)
|
||||
|
@ -289,7 +290,6 @@ _basic_apply_data(E_Config_Dialog *cfd, CFData *cfdata)
|
|||
static int
|
||||
_advanced_apply_data(E_Config_Dialog *cfd, CFData *cfdata)
|
||||
{
|
||||
|
||||
return 1; /* Apply was OK */
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue