diff options
author | handyande <handyande> | 2006-03-12 16:12:59 +0000 |
---|---|---|
committer | handyande <handyande@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33> | 2006-03-12 16:12:59 +0000 |
commit | 00330faaf91c7d60ff148a602e792b1e6e488aff (patch) | |
tree | 18180139c8aa97cd63e289ccc7259e207ef62dd7 /src/modules/pager/e_mod_main.c | |
parent | 1b6ecaa4087b2f3d330644200f0de4091fb97595 (diff) | |
download | enlightenment-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/pager/e_mod_main.c')
-rw-r--r-- | src/modules/pager/e_mod_main.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/modules/pager/e_mod_main.c b/src/modules/pager/e_mod_main.c index 4b79ac4825..3c30a8d5c5 100644 --- a/src/modules/pager/e_mod_main.c +++ b/src/modules/pager/e_mod_main.c @@ -85,8 +85,6 @@ static void _pager_menu_cb_aspect_keep_height(void *data, E_Menu *m, E_Me static void _pager_menu_cb_aspect_keep_width(void *data, E_Menu *m, E_Menu_Item *mi); static void _pager_menu_cb_configure(void *data, E_Menu *m, E_Menu_Item *mi); -static void _pager_cb_update_policy(void *data); - static int _pager_count; static E_Config_DD *_conf_edd; @@ -225,7 +223,6 @@ _pager_new(void) E_CONFIG_VAL(D, T, deskname_pos, UINT); E_CONFIG_VAL(D, T, popup_speed, DOUBLE); E_CONFIG_VAL(D, T, popup, UINT); - E_CONFIG_VAL(D, T, allow_overlap, INT); pager->conf = e_config_domain_load("module.pager", _conf_edd); @@ -235,12 +232,10 @@ _pager_new(void) pager->conf->deskname_pos = PAGER_DESKNAME_NONE; pager->conf->popup_speed = 1.0; pager->conf->popup = 1; - pager->conf->allow_overlap = 0; } E_CONFIG_LIMIT(pager->conf->deskname_pos, PAGER_DESKNAME_NONE, PAGER_DESKNAME_RIGHT); E_CONFIG_LIMIT(pager->conf->popup_speed, 0.1, 10.0); E_CONFIG_LIMIT(pager->conf->popup, 0, 1); - E_CONFIG_LIMIT(pager->conf->allow_overlap, 0, 1); _pager_config_menu_new(pager); @@ -486,11 +481,6 @@ _pager_face_new(Pager *pager, E_Zone *zone, Evas *evas, int use_gmc) // E_GADMAN_POLICY_FIXED_ZONE | E_GADMAN_POLICY_VSIZE; - if (pager->conf->allow_overlap == 0) - policy &= ~E_GADMAN_POLICY_ALLOW_OVERLAP; - else - policy |= E_GADMAN_POLICY_ALLOW_OVERLAP; - e_gadman_client_policy_set(face->gmc, policy); e_gadman_client_min_size_set(face->gmc, 8, 8); @@ -2156,7 +2146,6 @@ _pager_cb_config_updated(void *data) /* Handle Desktop Name Position Change */ pager = data; - _pager_cb_update_policy(pager); for (l = pager->faces; l; l = l->next) { Pager_Face *face; @@ -2165,24 +2154,4 @@ _pager_cb_config_updated(void *data) _pager_face_deskname_position_change(face); } } -static void _pager_cb_update_policy(void *data) -{ - Pager *pg; - Pager_Face *pf; - Evas_List *l; - E_Gadman_Policy policy; - - pg = data; - for (l = pg->faces; l; l = l->next) - { - pf = l->data; - policy = pf->gmc->policy; - - if (pg->conf->allow_overlap == 0) - policy &= ~E_GADMAN_POLICY_ALLOW_OVERLAP; - else - policy |= E_GADMAN_POLICY_ALLOW_OVERLAP; - e_gadman_client_policy_set(pf->gmc , policy); - } -} |