-#include "e.h"
+#include <e.h>
#include "e_mod_main.h"
#include "e_mod_config.h"
#include "config.h"
-typedef struct _Cfg_File_Data Cfg_File_Data;
-
struct _E_Config_Dialog_Data
{
int autofit;
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);
_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata)
{
Evas_Object *o, *ob;
- IBar *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));
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 == IBAR_WIDTH_FIXED))
- {
- ib->conf->width = IBAR_WIDTH_AUTO;
- }
+ ib->conf->width = IBAR_WIDTH_AUTO;
else if (!(cfdata->autofit) && (ib->conf->width == IBAR_WIDTH_AUTO))
- {
- ib->conf->width = IBAR_WIDTH_FIXED;
- }
+ ib->conf->width = IBAR_WIDTH_FIXED;
e_border_button_bindings_grab_all();
e_config_save_queue();
_advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata)
{
Evas_Object *o, *of, *ob;
- IBar *ib;
-
- ib = cfd->data;
- _fill_data(ib, cfdata);
o = e_widget_list_add(evas, 0, 0);
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 == IBAR_WIDTH_FIXED))
- {
- ib->conf->width = IBAR_WIDTH_AUTO;
- }
+ ib->conf->width = IBAR_WIDTH_AUTO;
else if (!(cfdata->autofit) && (ib->conf->width == IBAR_WIDTH_AUTO))
- {
- ib->conf->width = IBAR_WIDTH_FIXED;
- }
+ ib->conf->width = IBAR_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();