remember how many desks we like

this is _not_ on a per zone basis
this does _not_ remember your desktop names
like e16 really ;)


SVN revision: 12838
This commit is contained in:
handyande 2005-01-08 22:09:16 +00:00 committed by handyande
parent 059bfb1862
commit 100f37b6a2
3 changed files with 11 additions and 2 deletions

View File

@ -52,6 +52,8 @@ e_config_init(void)
E_CONFIG_VAL(D, T, framerate, DOUBLE);
E_CONFIG_VAL(D, T, image_cache, INT);
E_CONFIG_VAL(D, T, font_cache, INT);
E_CONFIG_VAL(D, T, zone_desks_x_count, INT);
E_CONFIG_VAL(D, T, zone_desks_y_count, INT);
E_CONFIG_LIST(D, T, modules, _e_config_module_edd);
e_config = e_config_domain_load("e", _e_config_edd);
@ -69,6 +71,8 @@ e_config_init(void)
e_config->framerate = 30.0;
e_config->image_cache = 2048;
e_config->font_cache = 512;
e_config->zone_desks_x_count = 1;
e_config->zone_desks_y_count = 1;
{
E_Config_Module *em;

View File

@ -18,6 +18,8 @@ struct _E_Config
double framerate;
int image_cache;
int font_cache;
int zone_desks_x_count;
int zone_desks_y_count;
Evas_List *modules;
};

View File

@ -77,12 +77,12 @@ e_zone_new(E_Container *con, int x, int y, int w, int h)
evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_MOVE, _e_zone_cb_bg_mouse_move, zone);
}
/* Start off with 4 desktops (2x2) */
zone->desk_x_count = 0;
zone->desk_y_count = 0;
zone->desk_x_current = 0;
zone->desk_y_current = 0;
e_zone_desk_count_set(zone, 2, 2);
e_zone_desk_count_set(zone, e_config->zone_desks_x_count,
e_config->zone_desks_y_count);
return zone;
}
@ -345,5 +345,8 @@ e_zone_desk_count_set(E_Zone *zone, int x_count, int y_count)
desk->visible = 0;
e_desk_show(desk);
}
e_config->zone_desks_x_count = xx;
e_config->zone_desks_y_count = yy;
e_config_save_queue();
}