summaryrefslogtreecommitdiff
path: root/src/modules/itray
diff options
context:
space:
mode:
authorhandyande <handyande>2006-03-12 16:12:59 +0000
committerhandyande <handyande@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2006-03-12 16:12:59 +0000
commit00330faaf91c7d60ff148a602e792b1e6e488aff (patch)
tree18180139c8aa97cd63e289ccc7259e207ef62dd7 /src/modules/itray
parent1b6ecaa4087b2f3d330644200f0de4091fb97595 (diff)
downloadenlightenment-00330faaf91c7d60ff148a602e792b1e6e488aff.tar.gz
Move the manipulation of user specified policy flags (ALLOW_OVERLAP and ALWAYS_ON_TOP (not used yet)) to the gadman edit menu, saves a LOT of code inside modules
SVN revision: 21226
Diffstat (limited to 'src/modules/itray')
-rw-r--r--src/modules/itray/e_mod_config.c20
-rw-r--r--src/modules/itray/e_mod_main.h1
2 files changed, 0 insertions, 21 deletions
diff --git a/src/modules/itray/e_mod_config.c b/src/modules/itray/e_mod_config.c
index 6e08226ee6..1c41ddf2fc 100644
--- a/src/modules/itray/e_mod_config.c
+++ b/src/modules/itray/e_mod_config.c
@@ -9,7 +9,6 @@ typedef struct _Cfg_File_Data Cfg_File_Data;
struct _cfdata
{
int rowsize;
- int allow_overlap;
};
struct _Cfg_File_Data
@@ -51,7 +50,6 @@ static void
_fill_data(ITray *ib, CFData *cfdata)
{
cfdata->rowsize = ib->conf->rowsize;
- cfdata->allow_overlap = ib->conf->allow_overlap;
}
static void *
@@ -83,11 +81,6 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, CFData *cfdata)
o = e_widget_list_add(evas, 0, 0);
- of = e_widget_framelist_add(evas, _("Extras"), 0);
- ob = e_widget_check_add(evas, _("Allow windows to overlap this gadget"), &(cfdata->allow_overlap));
- e_widget_framelist_object_append(of, ob);
- e_widget_list_object_append(o, of, 1, 1, 0.5);
-
return o;
}
@@ -97,10 +90,6 @@ _basic_apply_data(E_Config_Dialog *cfd, CFData *cfdata)
ITray *ib;
ib = cfd->data;
- if (cfdata->allow_overlap && !ib->conf->allow_overlap)
- ib->conf->allow_overlap = 1;
- else if (!cfdata->allow_overlap && ib->conf->allow_overlap)
- ib->conf->allow_overlap = 0;
e_config_save_queue();
_itray_box_cb_config_updated(ib);
@@ -119,11 +108,6 @@ _advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas, CFData *cfdata)
e_widget_framelist_object_append(of, ob);
e_widget_list_object_append(o, of, 1, 1, 0.5);
- of = e_widget_framelist_add(evas, _("Extras"), 0);
- ob = e_widget_check_add(evas, _("Allow windows to overlap this gadget"), &(cfdata->allow_overlap));
- e_widget_framelist_object_append(of, ob);
- e_widget_list_object_append(o, of, 1, 1, 0.5);
-
return o;
}
@@ -136,10 +120,6 @@ _advanced_apply_data(E_Config_Dialog *cfd, CFData *cfdata)
e_border_button_bindings_ungrab_all();
if (cfdata->rowsize != ib->conf->rowsize)
ib->conf->rowsize = cfdata->rowsize;
- if (cfdata->allow_overlap && !ib->conf->allow_overlap)
- ib->conf->allow_overlap = 1;
- else if (!cfdata->allow_overlap && ib->conf->allow_overlap)
- ib->conf->allow_overlap = 0;
e_border_button_bindings_grab_all();
e_config_save_queue();
diff --git a/src/modules/itray/e_mod_main.h b/src/modules/itray/e_mod_main.h
index f1d6d00deb..6c50441ce1 100644
--- a/src/modules/itray/e_mod_main.h
+++ b/src/modules/itray/e_mod_main.h
@@ -18,7 +18,6 @@ struct _Config
int rowsize;
int width;
Evas_List *boxes;
- int allow_overlap;
};
struct _Config_Box