2004-11-24 19:37:45 -08:00
|
|
|
#include "e.h"
|
|
|
|
|
2014-09-09 09:30:50 -07:00
|
|
|
#if ((E_PROFILE >= LOWRES_PDA) && (E_PROFILE <= HIRES_PDA))
|
2012-06-28 05:19:36 -07:00
|
|
|
#define DEF_MENUCLICK 1.25
|
2004-11-24 19:37:45 -08:00
|
|
|
#else
|
2012-06-28 05:19:36 -07:00
|
|
|
#define DEF_MENUCLICK 0.25
|
2004-11-24 19:37:45 -08:00
|
|
|
#endif
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API E_Config *e_config = NULL;
|
|
|
|
E_API E_Config_Bindings *e_bindings = NULL;
|
2004-11-24 19:37:45 -08:00
|
|
|
|
2011-01-02 20:33:31 -08:00
|
|
|
static int _e_config_revisions = 9;
|
2009-07-06 02:43:58 -07:00
|
|
|
|
2004-11-24 19:37:45 -08:00
|
|
|
/* local subsystem functions */
|
2012-06-28 05:19:36 -07:00
|
|
|
static void _e_config_save_cb(void *data);
|
|
|
|
static void _e_config_free(E_Config *cfg);
|
2010-06-24 09:19:12 -07:00
|
|
|
static Eina_Bool _e_config_cb_timer(void *data);
|
2012-06-28 05:19:36 -07:00
|
|
|
static int _e_config_eet_close_handle(Eet_File *ef, char *file);
|
2004-11-24 19:37:45 -08:00
|
|
|
|
|
|
|
/* local subsystem globals */
|
2005-08-05 00:19:26 -07:00
|
|
|
static int _e_config_save_block = 0;
|
2008-01-10 23:33:57 -08:00
|
|
|
static E_Powersave_Deferred_Action *_e_config_save_defer = NULL;
|
2012-06-28 06:22:13 -07:00
|
|
|
static const char *_e_config_profile = NULL;
|
2004-12-05 01:34:59 -08:00
|
|
|
|
2004-12-04 23:43:51 -08:00
|
|
|
static E_Config_DD *_e_config_edd = NULL;
|
2013-02-01 02:21:54 -08:00
|
|
|
static E_Config_DD *_e_config_binding_edd = NULL;
|
2004-12-05 01:34:59 -08:00
|
|
|
static E_Config_DD *_e_config_module_edd = NULL;
|
2005-04-02 08:40:37 -08:00
|
|
|
static E_Config_DD *_e_config_font_fallback_edd = NULL;
|
|
|
|
static E_Config_DD *_e_config_font_default_edd = NULL;
|
2005-05-01 09:21:57 -07:00
|
|
|
static E_Config_DD *_e_config_theme_edd = NULL;
|
2005-05-03 08:25:02 -07:00
|
|
|
static E_Config_DD *_e_config_bindings_mouse_edd = NULL;
|
|
|
|
static E_Config_DD *_e_config_bindings_key_edd = NULL;
|
2009-02-25 14:21:46 -08:00
|
|
|
static E_Config_DD *_e_config_bindings_edge_edd = NULL;
|
2005-09-22 13:20:34 -07:00
|
|
|
static E_Config_DD *_e_config_bindings_signal_edd = NULL;
|
|
|
|
static E_Config_DD *_e_config_bindings_wheel_edd = NULL;
|
2010-05-29 12:57:13 -07:00
|
|
|
static E_Config_DD *_e_config_bindings_acpi_edd = NULL;
|
2005-05-19 20:09:44 -07:00
|
|
|
static E_Config_DD *_e_config_path_append_edd = NULL;
|
2005-06-30 03:43:21 -07:00
|
|
|
static E_Config_DD *_e_config_desktop_bg_edd = NULL;
|
2012-07-05 05:33:33 -07:00
|
|
|
static E_Config_DD *_e_config_desklock_bg_edd = NULL;
|
2005-08-05 21:00:03 -07:00
|
|
|
static E_Config_DD *_e_config_desktop_name_edd = NULL;
|
2013-02-15 00:16:06 -08:00
|
|
|
static E_Config_DD *_e_config_menu_applications_edd = NULL;
|
2006-01-11 18:12:21 -08:00
|
|
|
static E_Config_DD *_e_config_color_class_edd = NULL;
|
2006-02-10 00:14:57 -08:00
|
|
|
static E_Config_DD *_e_config_gadcon_edd = NULL;
|
|
|
|
static E_Config_DD *_e_config_gadcon_client_edd = NULL;
|
2006-02-15 22:32:54 -08:00
|
|
|
static E_Config_DD *_e_config_shelf_edd = NULL;
|
2007-09-04 16:59:01 -07:00
|
|
|
static E_Config_DD *_e_config_shelf_desk_edd = NULL;
|
2006-09-16 04:35:54 -07:00
|
|
|
static E_Config_DD *_e_config_mime_icon_edd = NULL;
|
2008-11-25 00:05:58 -08:00
|
|
|
static E_Config_DD *_e_config_syscon_action_edd = NULL;
|
2011-05-13 04:39:04 -07:00
|
|
|
static E_Config_DD *_e_config_env_var_edd = NULL;
|
2012-04-30 02:52:05 -07:00
|
|
|
static E_Config_DD *_e_config_xkb_layout_edd = NULL;
|
|
|
|
static E_Config_DD *_e_config_xkb_option_edd = NULL;
|
2010-08-14 03:21:03 -07:00
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API int E_EVENT_CONFIG_ICON_THEME = 0;
|
|
|
|
E_API int E_EVENT_CONFIG_MODE_CHANGED = 0;
|
|
|
|
E_API int E_EVENT_CONFIG_LOADED = 0;
|
2007-04-05 10:20:09 -07:00
|
|
|
|
2011-01-02 20:52:48 -08:00
|
|
|
static E_Dialog *_e_config_error_dialog = NULL;
|
2015-12-08 23:21:31 -08:00
|
|
|
static Eina_List *handlers = NULL;
|
2011-01-02 20:52:48 -08:00
|
|
|
|
2015-04-06 11:38:43 -07:00
|
|
|
typedef struct _E_Color_Class
|
|
|
|
{
|
|
|
|
const char *name; /* stringshared name */
|
|
|
|
int r, g, b, a;
|
|
|
|
int r2, g2, b2, a2;
|
|
|
|
int r3, g3, b3, a3;
|
|
|
|
} E_Color_Class;
|
|
|
|
|
2015-12-08 23:21:31 -08:00
|
|
|
static Eina_Bool
|
|
|
|
_e_config_cb_efreet_cache_update(void *data EINA_UNUSED, int type EINA_UNUSED, void *ev EINA_UNUSED)
|
|
|
|
{
|
|
|
|
if (e_config)
|
|
|
|
{
|
|
|
|
if (e_config->icon_theme)
|
|
|
|
{
|
|
|
|
if (!efreet_icon_theme_find(e_config->icon_theme))
|
|
|
|
{
|
2015-12-09 15:06:21 -08:00
|
|
|
eina_stringshare_replace(&e_config->icon_theme, "hicolor");
|
2015-12-08 23:21:31 -08:00
|
|
|
e_config_save_queue();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return ECORE_CALLBACK_RENEW;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-01-02 20:52:48 -08:00
|
|
|
static void
|
|
|
|
_e_config_error_dialog_cb_delete(void *dia)
|
|
|
|
{
|
|
|
|
if (dia == _e_config_error_dialog)
|
|
|
|
_e_config_error_dialog = NULL;
|
|
|
|
}
|
|
|
|
|
2012-06-28 06:27:31 -07:00
|
|
|
static const char *
|
2010-01-10 08:25:26 -08:00
|
|
|
_e_config_profile_name_get(Eet_File *ef)
|
|
|
|
{
|
|
|
|
/* profile config exists */
|
2012-06-28 06:27:31 -07:00
|
|
|
char *data;
|
|
|
|
const char *s = NULL;
|
2010-01-10 08:25:26 -08:00
|
|
|
int data_len = 0;
|
2010-08-14 03:21:03 -07:00
|
|
|
|
2010-01-10 08:25:26 -08:00
|
|
|
data = eet_read(ef, "config", &data_len);
|
|
|
|
if ((data) && (data_len > 0))
|
|
|
|
{
|
|
|
|
int ok = 1;
|
2010-08-14 03:21:03 -07:00
|
|
|
|
2010-01-10 08:25:26 -08:00
|
|
|
for (s = data; s < (data + data_len); s++)
|
|
|
|
{
|
|
|
|
// if profile is not all ascii (valid printable ascii - no
|
|
|
|
// control codes etc.) or it contains a '/' (invalid as its a
|
|
|
|
// directory delimiter) - then it's invalid
|
|
|
|
if ((*s < ' ') || (*s > '~') || (*s == '/'))
|
|
|
|
{
|
|
|
|
ok = 0;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2010-01-10 16:50:14 -08:00
|
|
|
s = NULL;
|
2010-01-10 08:25:26 -08:00
|
|
|
if (ok)
|
2012-06-28 06:27:31 -07:00
|
|
|
s = eina_stringshare_add_length(data, data_len);
|
2010-01-10 08:25:26 -08:00
|
|
|
free(data);
|
|
|
|
}
|
|
|
|
return s;
|
|
|
|
}
|
|
|
|
|
2013-02-04 02:14:57 -08:00
|
|
|
static void
|
|
|
|
_e_config_edd_shutdown(void)
|
2004-11-24 19:37:45 -08:00
|
|
|
{
|
2013-02-04 02:14:57 -08:00
|
|
|
E_CONFIG_DD_FREE(_e_config_edd);
|
|
|
|
E_CONFIG_DD_FREE(_e_config_module_edd);
|
|
|
|
E_CONFIG_DD_FREE(_e_config_font_default_edd);
|
|
|
|
E_CONFIG_DD_FREE(_e_config_font_fallback_edd);
|
|
|
|
E_CONFIG_DD_FREE(_e_config_theme_edd);
|
|
|
|
E_CONFIG_DD_FREE(_e_config_path_append_edd);
|
|
|
|
E_CONFIG_DD_FREE(_e_config_desktop_bg_edd);
|
|
|
|
E_CONFIG_DD_FREE(_e_config_desklock_bg_edd);
|
|
|
|
E_CONFIG_DD_FREE(_e_config_desktop_name_edd);
|
2014-01-01 12:47:35 -08:00
|
|
|
E_CONFIG_DD_FREE(e_remember_edd);
|
2013-02-15 00:16:06 -08:00
|
|
|
E_CONFIG_DD_FREE(_e_config_menu_applications_edd);
|
2013-02-04 02:14:57 -08:00
|
|
|
E_CONFIG_DD_FREE(_e_config_gadcon_edd);
|
|
|
|
E_CONFIG_DD_FREE(_e_config_gadcon_client_edd);
|
|
|
|
E_CONFIG_DD_FREE(_e_config_shelf_edd);
|
|
|
|
E_CONFIG_DD_FREE(_e_config_shelf_desk_edd);
|
|
|
|
E_CONFIG_DD_FREE(_e_config_mime_icon_edd);
|
|
|
|
E_CONFIG_DD_FREE(_e_config_syscon_action_edd);
|
|
|
|
E_CONFIG_DD_FREE(_e_config_env_var_edd);
|
|
|
|
E_CONFIG_DD_FREE(_e_config_xkb_layout_edd);
|
|
|
|
E_CONFIG_DD_FREE(_e_config_xkb_option_edd);
|
|
|
|
}
|
2012-06-28 05:19:36 -07:00
|
|
|
|
2013-02-04 02:14:57 -08:00
|
|
|
static void
|
|
|
|
_e_config_edd_init(Eina_Bool old)
|
|
|
|
{
|
2006-02-10 00:14:57 -08:00
|
|
|
|
|
|
|
_e_config_gadcon_client_edd = E_CONFIG_DD_NEW("E_Config_Gadcon_Client", E_Config_Gadcon_Client);
|
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Config_Gadcon_Client
|
|
|
|
#define D _e_config_gadcon_client_edd
|
|
|
|
E_CONFIG_VAL(D, T, name, STR);
|
|
|
|
E_CONFIG_VAL(D, T, id, STR);
|
|
|
|
E_CONFIG_VAL(D, T, geom.pos, INT);
|
|
|
|
E_CONFIG_VAL(D, T, geom.size, INT);
|
|
|
|
E_CONFIG_VAL(D, T, geom.res, INT);
|
2008-05-18 21:37:34 -07:00
|
|
|
E_CONFIG_VAL(D, T, geom.pos_x, DOUBLE);
|
|
|
|
E_CONFIG_VAL(D, T, geom.pos_y, DOUBLE);
|
|
|
|
E_CONFIG_VAL(D, T, geom.size_w, DOUBLE);
|
|
|
|
E_CONFIG_VAL(D, T, geom.size_h, DOUBLE);
|
2006-08-30 21:16:43 -07:00
|
|
|
E_CONFIG_VAL(D, T, state_info.seq, INT);
|
|
|
|
E_CONFIG_VAL(D, T, state_info.flags, INT);
|
2006-04-04 08:42:25 -07:00
|
|
|
E_CONFIG_VAL(D, T, style, STR);
|
2008-11-13 13:09:15 -08:00
|
|
|
E_CONFIG_VAL(D, T, orient, INT);
|
2006-04-04 08:42:25 -07:00
|
|
|
E_CONFIG_VAL(D, T, autoscroll, UCHAR);
|
2006-04-20 04:30:25 -07:00
|
|
|
E_CONFIG_VAL(D, T, resizable, UCHAR);
|
2010-08-14 03:21:03 -07:00
|
|
|
|
2006-02-10 00:14:57 -08:00
|
|
|
_e_config_gadcon_edd = E_CONFIG_DD_NEW("E_Config_Gadcon", E_Config_Gadcon);
|
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Config_Gadcon
|
|
|
|
#define D _e_config_gadcon_edd
|
|
|
|
E_CONFIG_VAL(D, T, name, STR);
|
2007-10-04 23:05:16 -07:00
|
|
|
E_CONFIG_VAL(D, T, id, INT);
|
2012-05-04 02:38:52 -07:00
|
|
|
E_CONFIG_VAL(D, T, zone, UINT);
|
2006-02-10 00:14:57 -08:00
|
|
|
E_CONFIG_LIST(D, T, clients, _e_config_gadcon_client_edd);
|
2007-09-04 16:59:01 -07:00
|
|
|
|
|
|
|
_e_config_shelf_desk_edd = E_CONFIG_DD_NEW("E_Config_Shelf_Desk", E_Config_Shelf_Desk);
|
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Config_Shelf_Desk
|
|
|
|
#define D _e_config_shelf_desk_edd
|
|
|
|
E_CONFIG_VAL(D, T, x, INT);
|
|
|
|
E_CONFIG_VAL(D, T, y, INT);
|
2010-08-14 03:21:03 -07:00
|
|
|
|
2006-02-15 22:32:54 -08:00
|
|
|
_e_config_shelf_edd = E_CONFIG_DD_NEW("E_Config_Shelf", E_Config_Shelf);
|
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Config_Shelf
|
|
|
|
#define D _e_config_shelf_edd
|
|
|
|
E_CONFIG_VAL(D, T, name, STR);
|
2007-10-04 23:05:16 -07:00
|
|
|
E_CONFIG_VAL(D, T, id, INT);
|
2006-02-15 22:32:54 -08:00
|
|
|
E_CONFIG_VAL(D, T, zone, INT);
|
|
|
|
E_CONFIG_VAL(D, T, layer, INT);
|
|
|
|
E_CONFIG_VAL(D, T, popup, UCHAR);
|
2006-04-04 08:42:25 -07:00
|
|
|
E_CONFIG_VAL(D, T, orient, INT);
|
|
|
|
E_CONFIG_VAL(D, T, fit_along, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, fit_size, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, style, STR);
|
|
|
|
E_CONFIG_VAL(D, T, size, INT);
|
2006-10-01 13:10:37 -07:00
|
|
|
E_CONFIG_VAL(D, T, overlap, INT);
|
2007-03-02 09:00:20 -08:00
|
|
|
E_CONFIG_VAL(D, T, autohide, INT);
|
2007-06-10 04:01:41 -07:00
|
|
|
E_CONFIG_VAL(D, T, autohide_show_action, INT);
|
2007-04-11 08:37:04 -07:00
|
|
|
E_CONFIG_VAL(D, T, hide_timeout, FLOAT);
|
|
|
|
E_CONFIG_VAL(D, T, hide_duration, FLOAT);
|
2007-09-04 16:59:01 -07:00
|
|
|
E_CONFIG_VAL(D, T, desk_show_mode, INT);
|
|
|
|
E_CONFIG_LIST(D, T, desk_list, _e_config_shelf_desk_edd);
|
|
|
|
|
2012-07-05 05:33:33 -07:00
|
|
|
_e_config_desklock_bg_edd = E_CONFIG_DD_NEW("E_Config_Desklock_Background", E_Config_Desklock_Background);
|
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Config_Desklock_Background
|
|
|
|
#define D _e_config_desklock_bg_edd
|
|
|
|
E_CONFIG_VAL(D, T, file, STR);
|
2014-02-20 11:54:29 -08:00
|
|
|
E_CONFIG_VAL(D, T, hide_logo, UCHAR);
|
2012-07-05 05:33:33 -07:00
|
|
|
|
2005-06-30 03:43:21 -07:00
|
|
|
_e_config_desktop_bg_edd = E_CONFIG_DD_NEW("E_Config_Desktop_Background", E_Config_Desktop_Background);
|
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Config_Desktop_Background
|
|
|
|
#define D _e_config_desktop_bg_edd
|
|
|
|
E_CONFIG_VAL(D, T, zone, INT);
|
2005-06-30 07:35:19 -07:00
|
|
|
E_CONFIG_VAL(D, T, desk_x, INT);
|
|
|
|
E_CONFIG_VAL(D, T, desk_y, INT);
|
2005-06-30 03:43:21 -07:00
|
|
|
E_CONFIG_VAL(D, T, file, STR);
|
2010-08-14 03:21:03 -07:00
|
|
|
|
2005-08-05 21:00:03 -07:00
|
|
|
_e_config_desktop_name_edd = E_CONFIG_DD_NEW("E_Config_Desktop_Name", E_Config_Desktop_Name);
|
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Config_Desktop_Name
|
|
|
|
#define D _e_config_desktop_name_edd
|
|
|
|
E_CONFIG_VAL(D, T, zone, INT);
|
|
|
|
E_CONFIG_VAL(D, T, desk_x, INT);
|
|
|
|
E_CONFIG_VAL(D, T, desk_y, INT);
|
|
|
|
E_CONFIG_VAL(D, T, name, STR);
|
|
|
|
|
2005-05-19 20:09:44 -07:00
|
|
|
_e_config_path_append_edd = E_CONFIG_DD_NEW("E_Path_Dir", E_Path_Dir);
|
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Path_Dir
|
|
|
|
#define D _e_config_path_append_edd
|
|
|
|
E_CONFIG_VAL(D, T, dir, STR);
|
|
|
|
|
2004-12-05 22:03:01 -08:00
|
|
|
_e_config_module_edd = E_CONFIG_DD_NEW("E_Config_Module", E_Config_Module);
|
2004-12-05 01:34:59 -08:00
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Config_Module
|
|
|
|
#define D _e_config_module_edd
|
|
|
|
E_CONFIG_VAL(D, T, name, STR);
|
|
|
|
E_CONFIG_VAL(D, T, enabled, UCHAR);
|
2007-07-29 03:24:56 -07:00
|
|
|
E_CONFIG_VAL(D, T, delayed, UCHAR);
|
2008-05-18 21:37:34 -07:00
|
|
|
E_CONFIG_VAL(D, T, priority, INT);
|
2005-02-07 05:51:09 -08:00
|
|
|
|
2010-08-14 03:21:03 -07:00
|
|
|
_e_config_font_default_edd = E_CONFIG_DD_NEW("E_Font_Default",
|
2012-06-28 05:19:36 -07:00
|
|
|
E_Font_Default);
|
2005-04-02 08:40:37 -08:00
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Font_Default
|
|
|
|
#define D _e_config_font_default_edd
|
|
|
|
E_CONFIG_VAL(D, T, text_class, STR);
|
|
|
|
E_CONFIG_VAL(D, T, font, STR);
|
|
|
|
E_CONFIG_VAL(D, T, size, INT);
|
|
|
|
|
2010-08-14 03:21:03 -07:00
|
|
|
_e_config_font_fallback_edd = E_CONFIG_DD_NEW("E_Font_Fallback",
|
2012-06-28 05:19:36 -07:00
|
|
|
E_Font_Fallback);
|
2005-04-02 08:40:37 -08:00
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Font_Fallback
|
|
|
|
#define D _e_config_font_fallback_edd
|
|
|
|
E_CONFIG_VAL(D, T, name, STR);
|
|
|
|
|
2013-02-15 00:16:06 -08:00
|
|
|
_e_config_menu_applications_edd = E_CONFIG_DD_NEW("E_Int_Menu_Applications",
|
|
|
|
E_Int_Menu_Applications);
|
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Int_Menu_Applications
|
|
|
|
#define D _e_config_menu_applications_edd
|
|
|
|
E_CONFIG_VAL(D, T, orig_path, STR);
|
|
|
|
E_CONFIG_VAL(D, T, try_exec, STR);
|
|
|
|
E_CONFIG_VAL(D, T, exec, STR);
|
|
|
|
E_CONFIG_VAL(D, T, load_time, LL);
|
|
|
|
E_CONFIG_VAL(D, T, exec_valid, INT);
|
|
|
|
|
2014-01-01 12:47:35 -08:00
|
|
|
e_remember_edd = E_CONFIG_DD_NEW("E_Remember", E_Remember);
|
2005-07-07 02:27:04 -07:00
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Remember
|
2014-01-01 12:47:35 -08:00
|
|
|
#define D e_remember_edd
|
2014-01-01 13:50:03 -08:00
|
|
|
E_CONFIG_VAL(D, T, version, UINT);
|
2005-07-07 02:27:04 -07:00
|
|
|
E_CONFIG_VAL(D, T, match, INT);
|
2012-10-04 01:11:51 -07:00
|
|
|
E_CONFIG_VAL(D, T, no_reopen, INT);
|
2005-07-07 02:27:04 -07:00
|
|
|
E_CONFIG_VAL(D, T, apply_first_only, UCHAR);
|
2009-09-11 20:43:51 -07:00
|
|
|
E_CONFIG_VAL(D, T, keep_settings, UCHAR);
|
2005-07-07 02:27:04 -07:00
|
|
|
E_CONFIG_VAL(D, T, name, STR);
|
|
|
|
E_CONFIG_VAL(D, T, class, STR);
|
|
|
|
E_CONFIG_VAL(D, T, title, STR);
|
|
|
|
E_CONFIG_VAL(D, T, role, STR);
|
2005-07-07 21:42:50 -07:00
|
|
|
E_CONFIG_VAL(D, T, type, INT);
|
|
|
|
E_CONFIG_VAL(D, T, transient, UCHAR);
|
2005-07-07 02:27:04 -07:00
|
|
|
E_CONFIG_VAL(D, T, apply, INT);
|
2006-10-27 18:32:43 -07:00
|
|
|
E_CONFIG_VAL(D, T, max_score, INT);
|
2005-07-07 02:27:04 -07:00
|
|
|
E_CONFIG_VAL(D, T, prop.pos_x, INT);
|
|
|
|
E_CONFIG_VAL(D, T, prop.pos_y, INT);
|
|
|
|
E_CONFIG_VAL(D, T, prop.res_x, INT);
|
|
|
|
E_CONFIG_VAL(D, T, prop.res_y, INT);
|
|
|
|
E_CONFIG_VAL(D, T, prop.pos_w, INT);
|
|
|
|
E_CONFIG_VAL(D, T, prop.pos_h, INT);
|
|
|
|
E_CONFIG_VAL(D, T, prop.w, INT);
|
|
|
|
E_CONFIG_VAL(D, T, prop.h, INT);
|
|
|
|
E_CONFIG_VAL(D, T, prop.layer, INT);
|
|
|
|
E_CONFIG_VAL(D, T, prop.lock_user_location, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, prop.lock_client_location, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, prop.lock_user_size, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, prop.lock_client_size, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, prop.lock_user_stacking, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, prop.lock_client_stacking, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, prop.lock_user_iconify, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, prop.lock_client_iconify, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, prop.lock_user_desk, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, prop.lock_client_desk, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, prop.lock_user_sticky, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, prop.lock_client_sticky, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, prop.lock_user_shade, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, prop.lock_client_shade, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, prop.lock_user_maximize, UCHAR);
|
2005-07-19 01:04:20 -07:00
|
|
|
E_CONFIG_VAL(D, T, prop.lock_client_maximize, UCHAR);
|
2005-07-07 02:27:04 -07:00
|
|
|
E_CONFIG_VAL(D, T, prop.lock_user_fullscreen, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, prop.lock_client_fullscreen, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, prop.lock_border, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, prop.lock_close, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, prop.lock_focus_in, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, prop.lock_focus_out, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, prop.lock_life, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, prop.border, STR);
|
|
|
|
E_CONFIG_VAL(D, T, prop.sticky, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, prop.shaded, UCHAR);
|
2005-07-09 07:55:40 -07:00
|
|
|
E_CONFIG_VAL(D, T, prop.skip_winlist, UCHAR);
|
2008-09-24 18:01:07 -07:00
|
|
|
E_CONFIG_VAL(D, T, prop.skip_pager, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, prop.skip_taskbar, UCHAR);
|
2009-03-08 03:35:05 -07:00
|
|
|
E_CONFIG_VAL(D, T, prop.fullscreen, UCHAR);
|
2005-07-07 02:27:04 -07:00
|
|
|
E_CONFIG_VAL(D, T, prop.desk_x, INT);
|
|
|
|
E_CONFIG_VAL(D, T, prop.desk_y, INT);
|
|
|
|
E_CONFIG_VAL(D, T, prop.zone, INT);
|
|
|
|
E_CONFIG_VAL(D, T, prop.command, STR);
|
2007-07-15 01:28:11 -07:00
|
|
|
E_CONFIG_VAL(D, T, prop.icon_preference, UCHAR);
|
2009-09-11 20:43:51 -07:00
|
|
|
E_CONFIG_VAL(D, T, prop.desktop_file, STR);
|
2011-02-05 18:04:37 -08:00
|
|
|
E_CONFIG_VAL(D, T, prop.offer_resistance, UCHAR);
|
2014-01-01 12:39:35 -08:00
|
|
|
E_CONFIG_VAL(D, T, prop.opacity, UCHAR);
|
2009-09-11 20:43:51 -07:00
|
|
|
|
2006-01-11 18:12:21 -08:00
|
|
|
_e_config_color_class_edd = E_CONFIG_DD_NEW("E_Color_Class", E_Color_Class);
|
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Color_Class
|
|
|
|
#define D _e_config_color_class_edd
|
|
|
|
E_CONFIG_VAL(D, T, name, STR);
|
|
|
|
E_CONFIG_VAL(D, T, r, INT);
|
|
|
|
E_CONFIG_VAL(D, T, g, INT);
|
|
|
|
E_CONFIG_VAL(D, T, b, INT);
|
|
|
|
E_CONFIG_VAL(D, T, a, INT);
|
|
|
|
E_CONFIG_VAL(D, T, r2, INT);
|
|
|
|
E_CONFIG_VAL(D, T, g2, INT);
|
|
|
|
E_CONFIG_VAL(D, T, b2, INT);
|
|
|
|
E_CONFIG_VAL(D, T, a2, INT);
|
|
|
|
E_CONFIG_VAL(D, T, r3, INT);
|
|
|
|
E_CONFIG_VAL(D, T, g3, INT);
|
|
|
|
E_CONFIG_VAL(D, T, b3, INT);
|
|
|
|
E_CONFIG_VAL(D, T, a3, INT);
|
|
|
|
|
2010-08-14 03:21:03 -07:00
|
|
|
_e_config_mime_icon_edd = E_CONFIG_DD_NEW("E_Config_Mime_Icon",
|
2012-06-28 05:19:36 -07:00
|
|
|
E_Config_Mime_Icon);
|
2006-09-16 04:35:54 -07:00
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Config_Mime_Icon
|
|
|
|
#define D _e_config_mime_icon_edd
|
|
|
|
E_CONFIG_VAL(D, T, mime, STR);
|
|
|
|
E_CONFIG_VAL(D, T, icon, STR);
|
|
|
|
|
2008-11-25 00:05:58 -08:00
|
|
|
_e_config_syscon_action_edd = E_CONFIG_DD_NEW("E_Config_Syscon_Action",
|
|
|
|
E_Config_Syscon_Action);
|
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Config_Syscon_Action
|
|
|
|
#define D _e_config_syscon_action_edd
|
|
|
|
E_CONFIG_VAL(D, T, action, STR);
|
|
|
|
E_CONFIG_VAL(D, T, params, STR);
|
|
|
|
E_CONFIG_VAL(D, T, button, STR);
|
|
|
|
E_CONFIG_VAL(D, T, icon, STR);
|
|
|
|
E_CONFIG_VAL(D, T, is_main, INT);
|
|
|
|
|
2011-05-13 04:39:04 -07:00
|
|
|
_e_config_env_var_edd = E_CONFIG_DD_NEW("E_Config_Env_Var",
|
|
|
|
E_Config_Env_Var);
|
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Config_Env_Var
|
|
|
|
#define D _e_config_env_var_edd
|
|
|
|
E_CONFIG_VAL(D, T, var, STR);
|
|
|
|
E_CONFIG_VAL(D, T, val, STR);
|
|
|
|
E_CONFIG_VAL(D, T, unset, UCHAR);
|
|
|
|
|
2012-04-30 02:52:05 -07:00
|
|
|
_e_config_xkb_layout_edd = E_CONFIG_DD_NEW("E_Config_XKB_Layout",
|
|
|
|
E_Config_XKB_Layout);
|
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Config_XKB_Layout
|
|
|
|
#define D _e_config_xkb_layout_edd
|
|
|
|
E_CONFIG_VAL(D, T, name, STR);
|
|
|
|
E_CONFIG_VAL(D, T, model, STR);
|
|
|
|
E_CONFIG_VAL(D, T, variant, STR);
|
|
|
|
|
|
|
|
_e_config_xkb_option_edd = E_CONFIG_DD_NEW("E_Config_XKB_Option",
|
|
|
|
E_Config_XKB_Option);
|
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Config_XKB_Option
|
|
|
|
#define D _e_config_xkb_option_edd
|
|
|
|
E_CONFIG_VAL(D, T, name, STR);
|
2012-06-20 23:19:43 -07:00
|
|
|
|
2005-02-07 05:51:09 -08:00
|
|
|
_e_config_edd = E_CONFIG_DD_NEW("E_Config", E_Config);
|
2004-12-04 23:43:51 -08:00
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Config
|
|
|
|
#define D _e_config_edd
|
2005-05-12 02:28:58 -07:00
|
|
|
/**/ /* == already configurable via ipc */
|
|
|
|
E_CONFIG_VAL(D, T, config_version, INT); /**/
|
2013-02-04 02:45:51 -08:00
|
|
|
E_CONFIG_VAL(D, T, config_type, UINT); /**/
|
2005-05-27 03:04:53 -07:00
|
|
|
E_CONFIG_VAL(D, T, show_splash, INT); /**/
|
2005-05-12 02:28:58 -07:00
|
|
|
E_CONFIG_VAL(D, T, desktop_default_background, STR); /**/
|
2005-08-05 21:00:03 -07:00
|
|
|
E_CONFIG_VAL(D, T, desktop_default_name, STR); /**/
|
2005-06-30 19:17:43 -07:00
|
|
|
E_CONFIG_LIST(D, T, desktop_backgrounds, _e_config_desktop_bg_edd); /**/
|
2005-08-05 21:00:03 -07:00
|
|
|
E_CONFIG_LIST(D, T, desktop_names, _e_config_desktop_name_edd); /**/
|
2005-05-13 10:21:04 -07:00
|
|
|
E_CONFIG_VAL(D, T, menus_scroll_speed, DOUBLE); /**/
|
|
|
|
E_CONFIG_VAL(D, T, menus_fast_mouse_move_threshhold, DOUBLE); /**/
|
|
|
|
E_CONFIG_VAL(D, T, menus_click_drag_timeout, DOUBLE); /**/
|
|
|
|
E_CONFIG_VAL(D, T, border_shade_animate, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, border_shade_transition, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, border_shade_speed, DOUBLE); /**/
|
|
|
|
E_CONFIG_VAL(D, T, framerate, DOUBLE); /**/
|
2009-02-05 05:32:24 -08:00
|
|
|
E_CONFIG_VAL(D, T, priority, INT); /**/
|
2005-05-13 10:21:04 -07:00
|
|
|
E_CONFIG_VAL(D, T, zone_desks_x_count, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, zone_desks_y_count, INT); /**/
|
2007-07-23 09:32:10 -07:00
|
|
|
E_CONFIG_VAL(D, T, show_desktop_icons, INT); /**/
|
2006-08-09 22:01:07 -07:00
|
|
|
E_CONFIG_VAL(D, T, edge_flip_dragging, INT); /**/
|
2005-05-12 02:28:58 -07:00
|
|
|
E_CONFIG_VAL(D, T, language, STR); /**/
|
2012-10-07 03:01:14 -07:00
|
|
|
E_CONFIG_VAL(D, T, no_module_delay, INT); /**/
|
2012-10-02 06:00:25 -07:00
|
|
|
E_CONFIG_VAL(D, T, desklock_language, STR); /**/
|
2005-05-12 02:28:58 -07:00
|
|
|
E_CONFIG_LIST(D, T, modules, _e_config_module_edd); /**/
|
2012-10-17 23:26:57 -07:00
|
|
|
EET_DATA_DESCRIPTOR_ADD_LIST_STRING(D, T, "bad_modules", bad_modules);
|
2005-05-12 02:28:58 -07:00
|
|
|
E_CONFIG_LIST(D, T, font_fallbacks, _e_config_font_fallback_edd); /**/
|
|
|
|
E_CONFIG_LIST(D, T, font_defaults, _e_config_font_default_edd); /**/
|
|
|
|
E_CONFIG_LIST(D, T, mouse_bindings, _e_config_bindings_mouse_edd); /**/
|
|
|
|
E_CONFIG_LIST(D, T, key_bindings, _e_config_bindings_key_edd); /**/
|
2009-02-25 14:21:46 -08:00
|
|
|
E_CONFIG_LIST(D, T, edge_bindings, _e_config_bindings_edge_edd); /**/
|
2005-09-22 13:20:34 -07:00
|
|
|
E_CONFIG_LIST(D, T, signal_bindings, _e_config_bindings_signal_edd); /**/
|
|
|
|
E_CONFIG_LIST(D, T, wheel_bindings, _e_config_bindings_wheel_edd); /**/
|
2010-05-29 12:57:13 -07:00
|
|
|
E_CONFIG_LIST(D, T, acpi_bindings, _e_config_bindings_acpi_edd); /**/
|
2005-05-19 20:09:44 -07:00
|
|
|
E_CONFIG_LIST(D, T, path_append_data, _e_config_path_append_edd); /**/
|
|
|
|
E_CONFIG_LIST(D, T, path_append_images, _e_config_path_append_edd); /**/
|
|
|
|
E_CONFIG_LIST(D, T, path_append_fonts, _e_config_path_append_edd); /**/
|
|
|
|
E_CONFIG_LIST(D, T, path_append_init, _e_config_path_append_edd); /**/
|
|
|
|
E_CONFIG_LIST(D, T, path_append_icons, _e_config_path_append_edd); /**/
|
|
|
|
E_CONFIG_LIST(D, T, path_append_modules, _e_config_path_append_edd); /**/
|
|
|
|
E_CONFIG_LIST(D, T, path_append_backgrounds, _e_config_path_append_edd); /**/
|
2006-07-26 08:04:42 -07:00
|
|
|
E_CONFIG_VAL(D, T, window_placement_policy, INT); /**/
|
2012-07-14 11:00:57 -07:00
|
|
|
E_CONFIG_VAL(D, T, window_grouping, INT); /**/
|
2005-05-20 02:27:06 -07:00
|
|
|
E_CONFIG_VAL(D, T, focus_policy, INT); /**/
|
2005-06-27 05:05:26 -07:00
|
|
|
E_CONFIG_VAL(D, T, focus_setting, INT); /**/
|
2005-06-29 20:25:20 -07:00
|
|
|
E_CONFIG_VAL(D, T, pass_click_on, INT); /**/
|
2012-10-30 04:57:35 -07:00
|
|
|
E_CONFIG_VAL(D, T, window_activehint_policy, INT); /**/
|
2005-06-29 20:25:20 -07:00
|
|
|
E_CONFIG_VAL(D, T, always_click_to_raise, INT); /**/
|
2005-09-27 09:36:14 -07:00
|
|
|
E_CONFIG_VAL(D, T, always_click_to_focus, INT); /**/
|
2005-06-29 20:25:20 -07:00
|
|
|
E_CONFIG_VAL(D, T, use_auto_raise, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, auto_raise_delay, DOUBLE); /**/
|
|
|
|
E_CONFIG_VAL(D, T, use_resist, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, drag_resist, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, desk_resist, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, window_resist, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, gadget_resist, INT); /**/
|
2010-07-06 12:49:48 -07:00
|
|
|
E_CONFIG_VAL(D, T, geometry_auto_resize_limit, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, geometry_auto_move, INT); /**/
|
2005-06-30 19:17:43 -07:00
|
|
|
E_CONFIG_VAL(D, T, winlist_warp_while_selecting, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, winlist_warp_at_end, INT); /**/
|
2013-01-08 03:51:56 -08:00
|
|
|
E_CONFIG_VAL(D, T, winlist_no_warp_on_direction, INT); /**/
|
2005-06-30 19:17:43 -07:00
|
|
|
E_CONFIG_VAL(D, T, winlist_warp_speed, DOUBLE); /**/
|
|
|
|
E_CONFIG_VAL(D, T, winlist_scroll_animate, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, winlist_scroll_speed, DOUBLE); /**/
|
2005-07-02 06:14:24 -07:00
|
|
|
E_CONFIG_VAL(D, T, winlist_list_show_iconified, INT); /**/
|
2006-12-14 21:03:09 -08:00
|
|
|
E_CONFIG_VAL(D, T, winlist_list_show_other_desk_iconified, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, winlist_list_show_other_screen_iconified, INT); /**/
|
2005-07-02 06:14:24 -07:00
|
|
|
E_CONFIG_VAL(D, T, winlist_list_show_other_desk_windows, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, winlist_list_show_other_screen_windows, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, winlist_list_uncover_while_selecting, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, winlist_list_jump_desk_while_selecting, INT); /**/
|
2005-09-27 15:50:56 -07:00
|
|
|
E_CONFIG_VAL(D, T, winlist_list_focus_while_selecting, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, winlist_list_raise_while_selecting, INT); /**/
|
2013-05-30 06:23:13 -07:00
|
|
|
E_CONFIG_VAL(D, T, winlist_list_move_after_select, INT); /**/
|
2005-07-02 06:14:24 -07:00
|
|
|
E_CONFIG_VAL(D, T, winlist_pos_align_x, DOUBLE); /**/
|
|
|
|
E_CONFIG_VAL(D, T, winlist_pos_align_y, DOUBLE); /**/
|
|
|
|
E_CONFIG_VAL(D, T, winlist_pos_size_w, DOUBLE); /**/
|
|
|
|
E_CONFIG_VAL(D, T, winlist_pos_size_h, DOUBLE); /**/
|
|
|
|
E_CONFIG_VAL(D, T, winlist_pos_min_w, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, winlist_pos_min_h, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, winlist_pos_max_w, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, winlist_pos_max_h, INT); /**/
|
2005-06-29 20:25:20 -07:00
|
|
|
E_CONFIG_VAL(D, T, maximize_policy, INT); /**/
|
2006-05-16 00:32:37 -07:00
|
|
|
E_CONFIG_VAL(D, T, allow_manip, INT); /**/
|
2007-04-11 08:37:04 -07:00
|
|
|
E_CONFIG_VAL(D, T, border_fix_on_shelf_toggle, INT); /**/
|
2007-05-29 04:25:54 -07:00
|
|
|
E_CONFIG_VAL(D, T, allow_above_fullscreen, INT); /**/
|
2005-07-02 06:14:24 -07:00
|
|
|
E_CONFIG_VAL(D, T, kill_if_close_not_possible, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, kill_process, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, kill_timer_wait, DOUBLE); /**/
|
|
|
|
E_CONFIG_VAL(D, T, ping_clients, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, transition_start, STR); /**/
|
|
|
|
E_CONFIG_VAL(D, T, transition_desk, STR); /**/
|
|
|
|
E_CONFIG_VAL(D, T, transition_change, STR); /**/
|
2014-01-01 12:47:35 -08:00
|
|
|
E_CONFIG_LIST(D, T, remembers, e_remember_edd);
|
2013-02-15 00:16:06 -08:00
|
|
|
E_CONFIG_LIST(D, T, menu_applications, _e_config_menu_applications_edd);
|
2006-12-16 13:28:46 -08:00
|
|
|
E_CONFIG_VAL(D, T, remember_internal_windows, INT);
|
2013-01-03 06:47:21 -08:00
|
|
|
E_CONFIG_VAL(D, T, remember_internal_fm_windows, UCHAR);
|
2013-02-07 00:20:42 -08:00
|
|
|
E_CONFIG_VAL(D, T, remember_internal_fm_windows_globally, UCHAR);
|
2005-07-12 08:22:43 -07:00
|
|
|
E_CONFIG_VAL(D, T, move_info_follows, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, resize_info_follows, INT); /**/
|
2005-09-27 04:22:46 -07:00
|
|
|
E_CONFIG_VAL(D, T, move_info_visible, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, resize_info_visible, INT); /**/
|
2005-07-12 08:22:43 -07:00
|
|
|
E_CONFIG_VAL(D, T, focus_last_focused_per_desktop, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, focus_revert_on_hide_or_close, INT); /**/
|
2015-11-30 13:27:04 -08:00
|
|
|
E_CONFIG_VAL(D, T, focus_revert_allow_sticky, INT); /**/
|
2007-12-21 17:46:22 -08:00
|
|
|
E_CONFIG_VAL(D, T, pointer_slide, INT); /**/
|
2013-02-05 05:33:49 -08:00
|
|
|
E_CONFIG_VAL(D, T, disable_all_pointer_warps, INT); /**/
|
2013-02-05 06:22:54 -08:00
|
|
|
E_CONFIG_VAL(D, T, pointer_warp_speed, DOUBLE); /**/
|
2005-09-26 09:14:31 -07:00
|
|
|
E_CONFIG_VAL(D, T, use_e_cursor, INT); /**/
|
2005-08-21 16:37:28 -07:00
|
|
|
E_CONFIG_VAL(D, T, cursor_size, INT); /**/
|
2005-08-21 22:50:49 -07:00
|
|
|
E_CONFIG_VAL(D, T, menu_autoscroll_margin, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, menu_autoscroll_cursor_margin, INT); /**/
|
2005-09-02 00:38:40 -07:00
|
|
|
E_CONFIG_VAL(D, T, transient.move, INT); /* FIXME: implement */
|
|
|
|
E_CONFIG_VAL(D, T, transient.resize, INT); /* FIXME: implement */
|
|
|
|
E_CONFIG_VAL(D, T, transient.raise, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, transient.lower, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, transient.layer, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, transient.desktop, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, transient.iconify, INT); /**/
|
2005-10-15 03:02:29 -07:00
|
|
|
E_CONFIG_VAL(D, T, menu_eap_name_show, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, menu_eap_generic_show, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, menu_eap_comment_show, INT); /**/
|
2005-11-04 15:30:18 -08:00
|
|
|
E_CONFIG_VAL(D, T, fullscreen_policy, INT); /**/
|
2005-10-15 03:49:54 -07:00
|
|
|
E_CONFIG_VAL(D, T, input_method, STR); /**/
|
2005-11-22 05:28:10 -08:00
|
|
|
E_CONFIG_LIST(D, T, path_append_messages, _e_config_path_append_edd); /**/
|
2006-09-19 06:58:04 -07:00
|
|
|
E_CONFIG_VAL(D, T, exebuf_term_cmd, STR);
|
2006-01-11 18:12:21 -08:00
|
|
|
E_CONFIG_LIST(D, T, color_classes, _e_config_color_class_edd);
|
2006-01-31 00:02:18 -08:00
|
|
|
E_CONFIG_VAL(D, T, use_app_icon, INT);
|
2007-05-10 06:15:09 -07:00
|
|
|
E_CONFIG_VAL(D, T, cnfmdlg_disabled, INT); /**/
|
2006-02-15 21:08:17 -08:00
|
|
|
E_CONFIG_VAL(D, T, cfgdlg_auto_apply, INT); /**/
|
|
|
|
E_CONFIG_VAL(D, T, cfgdlg_default_mode, INT); /**/
|
2006-02-10 00:14:57 -08:00
|
|
|
E_CONFIG_LIST(D, T, gadcons, _e_config_gadcon_edd);
|
2006-02-15 22:32:54 -08:00
|
|
|
E_CONFIG_LIST(D, T, shelves, _e_config_shelf_edd);
|
2006-06-05 03:50:33 -07:00
|
|
|
E_CONFIG_VAL(D, T, font_hinting, INT); /**/
|
2013-10-26 01:59:32 -07:00
|
|
|
E_CONFIG_VAL(D, T, desklock_passwd, INT);
|
2013-10-26 10:02:20 -07:00
|
|
|
E_CONFIG_VAL(D, T, desklock_pin, INT);
|
2012-07-05 05:33:33 -07:00
|
|
|
E_CONFIG_LIST(D, T, desklock_backgrounds, _e_config_desklock_bg_edd); /**/
|
2006-03-31 09:26:38 -08:00
|
|
|
E_CONFIG_VAL(D, T, desklock_auth_method, INT);
|
2006-03-02 16:02:32 -08:00
|
|
|
E_CONFIG_VAL(D, T, desklock_login_box_zone, INT);
|
2008-11-13 12:39:13 -08:00
|
|
|
E_CONFIG_VAL(D, T, desklock_start_locked, INT);
|
2010-05-31 08:17:02 -07:00
|
|
|
E_CONFIG_VAL(D, T, desklock_on_suspend, INT);
|
2007-02-13 08:33:35 -08:00
|
|
|
E_CONFIG_VAL(D, T, desklock_autolock_screensaver, INT);
|
2009-04-26 19:49:50 -07:00
|
|
|
E_CONFIG_VAL(D, T, desklock_post_screensaver_time, DOUBLE);
|
2007-02-13 08:33:35 -08:00
|
|
|
E_CONFIG_VAL(D, T, desklock_autolock_idle, INT);
|
|
|
|
E_CONFIG_VAL(D, T, desklock_autolock_idle_timeout, DOUBLE);
|
|
|
|
E_CONFIG_VAL(D, T, desklock_use_custom_desklock, INT);
|
|
|
|
E_CONFIG_VAL(D, T, desklock_custom_desklock_cmd, STR);
|
2009-04-26 19:54:43 -07:00
|
|
|
E_CONFIG_VAL(D, T, desklock_ask_presentation, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, desklock_ask_presentation_timeout, DOUBLE);
|
|
|
|
|
2007-02-13 08:33:35 -08:00
|
|
|
E_CONFIG_VAL(D, T, screensaver_enable, INT);
|
|
|
|
E_CONFIG_VAL(D, T, screensaver_timeout, INT);
|
|
|
|
E_CONFIG_VAL(D, T, screensaver_interval, INT);
|
|
|
|
E_CONFIG_VAL(D, T, screensaver_blanking, INT);
|
|
|
|
E_CONFIG_VAL(D, T, screensaver_expose, INT);
|
2009-04-26 19:54:43 -07:00
|
|
|
E_CONFIG_VAL(D, T, screensaver_ask_presentation, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, screensaver_ask_presentation_timeout, DOUBLE);
|
|
|
|
|
2014-01-20 13:08:14 -08:00
|
|
|
E_CONFIG_VAL(D, T, screensaver_wake_on_notify, INT);
|
|
|
|
E_CONFIG_VAL(D, T, screensaver_wake_on_urgent, INT);
|
|
|
|
|
2011-08-21 03:44:23 -07:00
|
|
|
E_CONFIG_VAL(D, T, screensaver_suspend, UCHAR);
|
2011-08-21 04:02:33 -07:00
|
|
|
E_CONFIG_VAL(D, T, screensaver_suspend_on_ac, UCHAR);
|
2011-08-21 03:44:23 -07:00
|
|
|
E_CONFIG_VAL(D, T, screensaver_suspend_delay, DOUBLE);
|
2012-06-20 23:19:43 -07:00
|
|
|
|
2007-02-13 08:33:35 -08:00
|
|
|
E_CONFIG_VAL(D, T, dpms_enable, INT);
|
|
|
|
E_CONFIG_VAL(D, T, dpms_standby_enable, INT);
|
|
|
|
E_CONFIG_VAL(D, T, dpms_suspend_enable, INT);
|
|
|
|
E_CONFIG_VAL(D, T, dpms_off_enable, INT);
|
|
|
|
E_CONFIG_VAL(D, T, dpms_standby_timeout, INT);
|
|
|
|
E_CONFIG_VAL(D, T, dpms_suspend_timeout, INT);
|
|
|
|
E_CONFIG_VAL(D, T, dpms_off_timeout, INT);
|
2014-02-28 15:04:09 -08:00
|
|
|
E_CONFIG_VAL(D, T, no_dpms_on_fullscreen, UCHAR);
|
2010-08-14 03:21:03 -07:00
|
|
|
|
2007-02-20 16:05:27 -08:00
|
|
|
E_CONFIG_VAL(D, T, clientlist_group_by, INT);
|
2007-03-13 11:03:19 -07:00
|
|
|
E_CONFIG_VAL(D, T, clientlist_include_all_zones, INT);
|
2007-02-20 16:05:27 -08:00
|
|
|
E_CONFIG_VAL(D, T, clientlist_separate_with, INT);
|
|
|
|
E_CONFIG_VAL(D, T, clientlist_sort_by, INT);
|
|
|
|
E_CONFIG_VAL(D, T, clientlist_separate_iconified_apps, INT);
|
|
|
|
E_CONFIG_VAL(D, T, clientlist_warp_to_iconified_desktop, INT);
|
2007-04-11 14:40:53 -07:00
|
|
|
E_CONFIG_VAL(D, T, clientlist_limit_caption_len, INT);
|
2007-04-04 06:25:55 -07:00
|
|
|
E_CONFIG_VAL(D, T, clientlist_max_caption_len, INT);
|
2010-08-14 03:21:03 -07:00
|
|
|
|
2008-09-19 19:23:51 -07:00
|
|
|
E_CONFIG_VAL(D, T, mouse_hand, INT);
|
2007-03-19 18:08:38 -07:00
|
|
|
E_CONFIG_VAL(D, T, mouse_accel_numerator, INT);
|
|
|
|
E_CONFIG_VAL(D, T, mouse_accel_denominator, INT);
|
|
|
|
E_CONFIG_VAL(D, T, mouse_accel_threshold, INT);
|
|
|
|
|
2006-06-07 16:30:15 -07:00
|
|
|
E_CONFIG_VAL(D, T, border_raise_on_mouse_action, INT);
|
2013-12-01 07:19:59 -08:00
|
|
|
E_CONFIG_VAL(D, T, border_raise_on_focus, INT);
|
2013-12-29 14:04:26 -08:00
|
|
|
E_CONFIG_VAL(D, T, raise_on_revert_focus, INT);
|
2006-06-07 16:30:15 -07:00
|
|
|
E_CONFIG_VAL(D, T, desk_flip_wrap, INT);
|
2009-02-27 10:36:08 -08:00
|
|
|
E_CONFIG_VAL(D, T, fullscreen_flip, INT);
|
2012-07-04 02:32:05 -07:00
|
|
|
E_CONFIG_VAL(D, T, multiscreen_flip, INT);
|
2006-08-14 04:08:40 -07:00
|
|
|
|
2006-09-01 08:37:23 -07:00
|
|
|
E_CONFIG_VAL(D, T, icon_theme, STR);
|
2009-03-03 18:56:27 -08:00
|
|
|
E_CONFIG_VAL(D, T, icon_theme_overrides, UCHAR);
|
2014-09-18 01:49:47 -07:00
|
|
|
E_CONFIG_VAL(D, T, desktop_environment, STR);
|
2010-08-14 03:21:03 -07:00
|
|
|
|
2006-09-01 08:37:23 -07:00
|
|
|
E_CONFIG_VAL(D, T, desk_flip_animate_mode, INT);
|
giant comp rejiggering commit #6:
* border->fx REMOVED, related border api REMOVED
* comp edc has new class of groups: e/comp/effects[/auto]
** these are effects which can be applied to any compositor object through the e_comp_win_effect* api and are written in embryo
*** two types - base and auto - base = manual, for use with animators; auto are "trigger and forget", for use as actual effects
* desk flip transition animations moved to comp effects and FIXED(ish)
* "zoom" effect renamed to "diagonal" for slightly less misleading name since it never did any zooming
* actual "zoom" effect added
* border hierarchy now as follows: cw->effect_obj swallows cw->shobj, cw->shobj swallows cw->bd->bg_object ?: cw->obj, if (cw->bd->bg_object) cw->bd->bg_object swallows cw->obj
** cw->effect_obj now used for all positioning and comp logic
** cw->effect_obj ONLY used for object transformation effects (moving, zooming, fading, etc)
** cw->shobj ONLY for comp visual/non-movement effects (focus effect, unfocus opacity, legacy shadows); this is a candidate for removal/rewrite in E19
* even more comp shape rewrites
* desk flip animation time now controlled by theme since edje doesn't support setting transition time in C; related config value removed
* desk flip transitions (in e_desk.c) rewritten
* various modules (evry/illume2) updated to use comp effects instead of fx offset
* desk flip configuration BROKEN(ish)
2013-02-28 07:20:32 -08:00
|
|
|
E_CONFIG_VAL(D, T, desk_flip_animate_type, STR);
|
2006-09-01 08:37:23 -07:00
|
|
|
E_CONFIG_VAL(D, T, desk_flip_animate_interpolation, INT);
|
2010-08-14 03:21:03 -07:00
|
|
|
|
2006-08-14 04:08:40 -07:00
|
|
|
E_CONFIG_VAL(D, T, wallpaper_import_last_dev, STR);
|
|
|
|
E_CONFIG_VAL(D, T, wallpaper_import_last_path, STR);
|
2006-08-20 15:30:44 -07:00
|
|
|
|
2006-10-13 20:45:55 -07:00
|
|
|
E_CONFIG_VAL(D, T, theme_default_border_style, STR);
|
2010-08-14 03:21:03 -07:00
|
|
|
|
2006-09-16 04:35:54 -07:00
|
|
|
E_CONFIG_LIST(D, T, mime_icons, _e_config_mime_icon_edd); /**/
|
2007-01-07 15:45:35 -08:00
|
|
|
|
|
|
|
E_CONFIG_VAL(D, T, desk_auto_switch, INT);
|
2007-04-05 10:20:09 -07:00
|
|
|
|
2013-01-11 02:34:29 -08:00
|
|
|
E_CONFIG_VAL(D, T, screen_limits, INT);
|
2012-10-11 05:53:15 -07:00
|
|
|
|
2007-04-05 10:20:09 -07:00
|
|
|
E_CONFIG_VAL(D, T, thumb_nice, INT);
|
2007-05-12 15:40:03 -07:00
|
|
|
|
2013-01-07 01:46:48 -08:00
|
|
|
E_CONFIG_VAL(D, T, menu_icons_hide, UCHAR);
|
2007-05-12 15:40:03 -07:00
|
|
|
E_CONFIG_VAL(D, T, menu_favorites_show, INT);
|
|
|
|
E_CONFIG_VAL(D, T, menu_apps_show, INT);
|
2011-03-17 10:08:36 -07:00
|
|
|
E_CONFIG_VAL(D, T, menu_gadcon_client_toplevel, INT);
|
2012-06-20 23:19:43 -07:00
|
|
|
|
2008-01-10 23:33:57 -08:00
|
|
|
E_CONFIG_VAL(D, T, ping_clients_interval, INT);
|
2008-01-23 01:04:56 -08:00
|
|
|
|
|
|
|
E_CONFIG_VAL(D, T, thumbscroll_enable, INT);
|
|
|
|
E_CONFIG_VAL(D, T, thumbscroll_threshhold, INT);
|
|
|
|
E_CONFIG_VAL(D, T, thumbscroll_momentum_threshhold, DOUBLE);
|
|
|
|
E_CONFIG_VAL(D, T, thumbscroll_friction, DOUBLE);
|
2010-08-14 03:21:03 -07:00
|
|
|
|
2012-07-20 03:25:02 -07:00
|
|
|
E_CONFIG_VAL(D, T, filemanager_single_click, UCHAR);
|
2010-10-12 19:53:25 -07:00
|
|
|
E_CONFIG_VAL(D, T, device_desktop, INT);
|
|
|
|
E_CONFIG_VAL(D, T, device_auto_mount, INT);
|
|
|
|
E_CONFIG_VAL(D, T, device_auto_open, INT);
|
2012-09-14 08:13:51 -07:00
|
|
|
E_CONFIG_VAL(D, T, filemanager_copy, UCHAR);
|
2012-10-04 05:58:18 -07:00
|
|
|
E_CONFIG_VAL(D, T, filemanager_secure_rm, UCHAR);
|
2008-08-10 19:13:22 -07:00
|
|
|
|
2008-09-20 08:53:28 -07:00
|
|
|
E_CONFIG_VAL(D, T, border_keyboard.timeout, DOUBLE);
|
|
|
|
E_CONFIG_VAL(D, T, border_keyboard.move.dx, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, border_keyboard.move.dy, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, border_keyboard.resize.dx, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, border_keyboard.resize.dy, UCHAR);
|
|
|
|
|
2008-09-24 06:29:16 -07:00
|
|
|
E_CONFIG_VAL(D, T, scale.min, DOUBLE);
|
|
|
|
E_CONFIG_VAL(D, T, scale.max, DOUBLE);
|
|
|
|
E_CONFIG_VAL(D, T, scale.factor, DOUBLE);
|
|
|
|
E_CONFIG_VAL(D, T, scale.base_dpi, INT);
|
|
|
|
E_CONFIG_VAL(D, T, scale.use_dpi, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, scale.use_custom, UCHAR);
|
2008-09-29 07:01:30 -07:00
|
|
|
|
2008-11-25 00:05:58 -08:00
|
|
|
E_CONFIG_VAL(D, T, show_cursor, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, idle_cursor, UCHAR);
|
2008-10-25 08:18:48 -07:00
|
|
|
|
|
|
|
E_CONFIG_VAL(D, T, default_system_menu, STR);
|
2008-10-26 02:04:05 -07:00
|
|
|
|
2008-11-25 00:05:58 -08:00
|
|
|
E_CONFIG_VAL(D, T, cfgdlg_normal_wins, UCHAR);
|
|
|
|
|
|
|
|
E_CONFIG_VAL(D, T, syscon.main.icon_size, INT);
|
|
|
|
E_CONFIG_VAL(D, T, syscon.secondary.icon_size, INT);
|
|
|
|
E_CONFIG_VAL(D, T, syscon.extra.icon_size, INT);
|
|
|
|
E_CONFIG_VAL(D, T, syscon.timeout, DOUBLE);
|
|
|
|
E_CONFIG_VAL(D, T, syscon.do_input, UCHAR);
|
|
|
|
E_CONFIG_LIST(D, T, syscon.actions, _e_config_syscon_action_edd);
|
add "modes" configuration, now "presentation" and "offline".
They are presented as a submenu with check items. Need to implement
support in modules, so they'll check for these variables.
DESIGNERS: could you please provide the following icons:
* preferences-modes: contain the other icons
* preferences-modes-presentation: system is in presentation mode,
no screensaver, locks and dpms will be available.
* preferences-modes-offline: system is offline, modules that keep
polling internet services (weather, forecasts, ...) should stop
and show "I'm offline" emblem. When network systems (network
manager, connman, exhalt...) are integrated, they will change
this state as well.
SVN revision: 40375
2009-04-25 09:07:45 -07:00
|
|
|
|
|
|
|
E_CONFIG_VAL(D, T, mode.presentation, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, mode.offline, UCHAR);
|
|
|
|
|
2010-01-24 23:38:48 -08:00
|
|
|
E_CONFIG_VAL(D, T, exec.expire_timeout, DOUBLE);
|
|
|
|
E_CONFIG_VAL(D, T, exec.show_run_dialog, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, exec.show_exit_dialog, UCHAR);
|
2010-08-14 03:21:03 -07:00
|
|
|
|
2011-03-26 19:24:19 -07:00
|
|
|
E_CONFIG_VAL(D, T, null_container_win, UCHAR);
|
2011-07-25 02:40:18 -07:00
|
|
|
|
2011-05-13 04:39:04 -07:00
|
|
|
E_CONFIG_LIST(D, T, env_vars, _e_config_env_var_edd);
|
2011-07-25 02:40:18 -07:00
|
|
|
|
2011-06-12 08:05:22 -07:00
|
|
|
E_CONFIG_VAL(D, T, backlight.normal, DOUBLE);
|
|
|
|
E_CONFIG_VAL(D, T, backlight.dim, DOUBLE);
|
|
|
|
E_CONFIG_VAL(D, T, backlight.transition, DOUBLE);
|
2012-01-24 02:01:28 -08:00
|
|
|
E_CONFIG_VAL(D, T, backlight.timer, DOUBLE);
|
2012-09-16 03:43:17 -07:00
|
|
|
E_CONFIG_VAL(D, T, backlight.sysdev, STR);
|
|
|
|
E_CONFIG_VAL(D, T, backlight.idle_dim, UCHAR);
|
2011-07-14 01:18:55 -07:00
|
|
|
|
|
|
|
E_CONFIG_VAL(D, T, deskenv.load_xrdb, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, deskenv.load_xmodmap, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, deskenv.load_gnome, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, deskenv.load_kde, UCHAR);
|
2011-07-25 02:40:18 -07:00
|
|
|
|
2012-05-03 13:16:34 -07:00
|
|
|
E_CONFIG_VAL(D, T, powersave.none, DOUBLE);
|
|
|
|
E_CONFIG_VAL(D, T, powersave.low, DOUBLE);
|
|
|
|
E_CONFIG_VAL(D, T, powersave.medium, DOUBLE);
|
|
|
|
E_CONFIG_VAL(D, T, powersave.high, DOUBLE);
|
|
|
|
E_CONFIG_VAL(D, T, powersave.extreme, DOUBLE);
|
|
|
|
E_CONFIG_VAL(D, T, powersave.min, INT);
|
|
|
|
E_CONFIG_VAL(D, T, powersave.max, INT);
|
|
|
|
|
2011-09-26 18:56:08 -07:00
|
|
|
E_CONFIG_VAL(D, T, xsettings.enabled, UCHAR);
|
2011-09-24 15:05:15 -07:00
|
|
|
E_CONFIG_VAL(D, T, xsettings.match_e17_theme, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, xsettings.match_e17_icon_theme, UCHAR);
|
2011-09-26 18:56:08 -07:00
|
|
|
E_CONFIG_VAL(D, T, xsettings.xft_antialias, INT);
|
|
|
|
E_CONFIG_VAL(D, T, xsettings.xft_hinting, INT);
|
|
|
|
E_CONFIG_VAL(D, T, xsettings.xft_hint_style, STR);
|
|
|
|
E_CONFIG_VAL(D, T, xsettings.xft_rgba, STR);
|
|
|
|
E_CONFIG_VAL(D, T, xsettings.net_theme_name, STR);
|
|
|
|
E_CONFIG_VAL(D, T, xsettings.net_icon_theme_name, STR);
|
|
|
|
E_CONFIG_VAL(D, T, xsettings.gtk_font_name, STR);
|
2011-09-24 15:05:15 -07:00
|
|
|
|
2011-12-29 02:45:49 -08:00
|
|
|
E_CONFIG_VAL(D, T, update.check, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, update.later, UCHAR);
|
2012-04-30 02:52:05 -07:00
|
|
|
|
|
|
|
E_CONFIG_LIST(D, T, xkb.used_layouts, _e_config_xkb_layout_edd);
|
|
|
|
E_CONFIG_LIST(D, T, xkb.used_options, _e_config_xkb_option_edd);
|
|
|
|
E_CONFIG_VAL(D, T, xkb.only_label, INT);
|
2013-02-06 02:51:54 -08:00
|
|
|
E_CONFIG_VAL(D, T, xkb.dont_touch_my_damn_keyboard, UCHAR);
|
2012-06-20 23:19:43 -07:00
|
|
|
E_CONFIG_VAL(D, T, xkb.default_model, STR);
|
2016-01-05 10:07:27 -08:00
|
|
|
E_CONFIG_VAL(D, T, xkb.use_cache, UCHAR);
|
2013-01-31 09:50:45 -08:00
|
|
|
|
(1) e_config.c/e_comp_wl.c: add code for making repeat values configurable
(2) e.src(s): add keyboard.repeat_delay, keyboard.repeat_rate into e.src files
Summary:
As of now, the default values of repeat delay/rate are being set in e_comp_wl.c.
Those values need to be configurable and will be used in e_comp_wl_init().
The limit of each of the values is defined from -1 to 1000. (maximum 1s).
If one of the two is negative, it means default repeat delay/rate are going to be used.
(e.g. delay:400, rate:25)
Test Plan:
N/A
Signed-off-by: Sung-Jin Park <input.hacker@gmail.com>
Reviewers: raster, stefan_schmidt, gwanglim, devilhorns, zmike
Subscribers: Jeon, ohduna, cedric
Differential Revision: https://phab.enlightenment.org/D3364
2015-11-30 11:05:10 -08:00
|
|
|
E_CONFIG_VAL(D, T, keyboard.repeat_delay, INT);
|
|
|
|
E_CONFIG_VAL(D, T, keyboard.repeat_rate, INT);
|
|
|
|
|
2013-02-04 02:14:57 -08:00
|
|
|
if (old)
|
|
|
|
{
|
|
|
|
E_CONFIG_SUB(D, T, xkb.current_layout, _e_config_xkb_option_edd);
|
|
|
|
E_CONFIG_SUB(D, T, xkb.sel_layout, _e_config_xkb_option_edd);
|
|
|
|
E_CONFIG_SUB(D, T, xkb.lock_layout, _e_config_xkb_option_edd);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
E_CONFIG_SUB(D, T, xkb.current_layout, _e_config_xkb_layout_edd);
|
|
|
|
E_CONFIG_SUB(D, T, xkb.sel_layout, _e_config_xkb_layout_edd);
|
|
|
|
E_CONFIG_SUB(D, T, xkb.lock_layout, _e_config_xkb_layout_edd);
|
|
|
|
}
|
2012-10-11 06:23:14 -07:00
|
|
|
E_CONFIG_VAL(D, T, xkb.selected_layout, STR);
|
|
|
|
E_CONFIG_VAL(D, T, xkb.cur_layout, STR);
|
|
|
|
E_CONFIG_VAL(D, T, xkb.desklock_layout, STR);
|
|
|
|
//E_CONFIG_VAL(D, T, xkb.cur_group, INT);
|
|
|
|
|
2012-09-18 03:00:37 -07:00
|
|
|
E_CONFIG_VAL(D, T, exe_always_single_instance, UCHAR);
|
2013-02-04 02:14:57 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* externally accessible functions */
|
|
|
|
EINTERN int
|
|
|
|
e_config_init(void)
|
|
|
|
{
|
|
|
|
E_EVENT_CONFIG_ICON_THEME = ecore_event_type_new();
|
|
|
|
E_EVENT_CONFIG_MODE_CHANGED = ecore_event_type_new();
|
|
|
|
E_EVENT_CONFIG_LOADED = ecore_event_type_new();
|
|
|
|
|
|
|
|
/* if environment var set - use this profile name */
|
|
|
|
_e_config_profile = eina_stringshare_add(getenv("E_CONF_PROFILE"));
|
|
|
|
|
|
|
|
if (!_e_config_profile)
|
|
|
|
{
|
|
|
|
Eet_File *ef;
|
|
|
|
char buf[PATH_MAX];
|
|
|
|
|
|
|
|
/* try user profile config */
|
|
|
|
e_user_dir_concat_static(buf, "config/profile.cfg");
|
|
|
|
ef = eet_open(buf, EET_FILE_MODE_READ);
|
|
|
|
if (ef)
|
|
|
|
{
|
|
|
|
_e_config_profile = _e_config_profile_name_get(ef);
|
|
|
|
eet_close(ef);
|
|
|
|
ef = NULL;
|
|
|
|
}
|
|
|
|
if (!_e_config_profile)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
|
|
|
|
for (i = 1; i <= _e_config_revisions; i++)
|
|
|
|
{
|
|
|
|
e_user_dir_snprintf(buf, sizeof(buf), "config/profile.%i.cfg", i);
|
|
|
|
ef = eet_open(buf, EET_FILE_MODE_READ);
|
|
|
|
if (ef)
|
|
|
|
{
|
|
|
|
_e_config_profile = _e_config_profile_name_get(ef);
|
|
|
|
eet_close(ef);
|
|
|
|
ef = NULL;
|
|
|
|
if (_e_config_profile) break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!_e_config_profile)
|
|
|
|
{
|
|
|
|
/* use system if no user profile config */
|
|
|
|
e_prefix_data_concat_static(buf, "data/config/profile.cfg");
|
|
|
|
ef = eet_open(buf, EET_FILE_MODE_READ);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (ef)
|
|
|
|
{
|
|
|
|
_e_config_profile = _e_config_profile_name_get(ef);
|
|
|
|
eet_close(ef);
|
|
|
|
ef = NULL;
|
|
|
|
}
|
|
|
|
if (!_e_config_profile)
|
|
|
|
{
|
|
|
|
/* no profile config - try other means */
|
|
|
|
char *lnk = NULL;
|
|
|
|
|
|
|
|
/* check symlink - if default is a symlink to another dir */
|
|
|
|
e_prefix_data_concat_static(buf, "data/config/default");
|
|
|
|
lnk = ecore_file_readlink(buf);
|
|
|
|
/* if so use just the filename as the profile - must be a local link */
|
|
|
|
if (lnk)
|
|
|
|
{
|
|
|
|
_e_config_profile = eina_stringshare_add(ecore_file_file_get(lnk));
|
|
|
|
free(lnk);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
_e_config_profile = eina_stringshare_add("default");
|
|
|
|
}
|
|
|
|
if (!getenv("E_CONF_PROFILE"))
|
|
|
|
e_util_env_set("E_CONF_PROFILE", _e_config_profile);
|
|
|
|
}
|
|
|
|
|
|
|
|
_e_config_bindings_mouse_edd = E_CONFIG_DD_NEW("E_Config_Binding_Mouse",
|
|
|
|
E_Config_Binding_Mouse);
|
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Config_Binding_Mouse
|
|
|
|
#define D _e_config_bindings_mouse_edd
|
|
|
|
E_CONFIG_VAL(D, T, context, INT);
|
|
|
|
E_CONFIG_VAL(D, T, modifiers, INT);
|
|
|
|
E_CONFIG_VAL(D, T, action, STR);
|
|
|
|
E_CONFIG_VAL(D, T, params, STR);
|
|
|
|
E_CONFIG_VAL(D, T, button, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, any_mod, UCHAR);
|
|
|
|
|
|
|
|
_e_config_bindings_key_edd = E_CONFIG_DD_NEW("E_Config_Binding_Key",
|
|
|
|
E_Config_Binding_Key);
|
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Config_Binding_Key
|
|
|
|
#define D _e_config_bindings_key_edd
|
|
|
|
E_CONFIG_VAL(D, T, context, INT);
|
|
|
|
E_CONFIG_VAL(D, T, modifiers, INT);
|
|
|
|
E_CONFIG_VAL(D, T, key, STR);
|
|
|
|
E_CONFIG_VAL(D, T, action, STR);
|
|
|
|
E_CONFIG_VAL(D, T, params, STR);
|
|
|
|
E_CONFIG_VAL(D, T, any_mod, UCHAR);
|
|
|
|
|
|
|
|
_e_config_bindings_edge_edd = E_CONFIG_DD_NEW("E_Config_Binding_Edge",
|
|
|
|
E_Config_Binding_Edge);
|
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Config_Binding_Edge
|
|
|
|
#define D _e_config_bindings_edge_edd
|
|
|
|
E_CONFIG_VAL(D, T, context, INT);
|
|
|
|
E_CONFIG_VAL(D, T, modifiers, INT);
|
|
|
|
E_CONFIG_VAL(D, T, action, STR);
|
|
|
|
E_CONFIG_VAL(D, T, params, STR);
|
|
|
|
E_CONFIG_VAL(D, T, edge, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, any_mod, UCHAR);
|
2013-02-05 05:13:33 -08:00
|
|
|
E_CONFIG_VAL(D, T, drag_only, UCHAR);
|
2013-02-04 02:14:57 -08:00
|
|
|
E_CONFIG_VAL(D, T, delay, FLOAT);
|
|
|
|
|
|
|
|
_e_config_bindings_signal_edd = E_CONFIG_DD_NEW("E_Config_Binding_Signal",
|
|
|
|
E_Config_Binding_Signal);
|
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Config_Binding_Signal
|
|
|
|
#define D _e_config_bindings_signal_edd
|
|
|
|
E_CONFIG_VAL(D, T, context, INT);
|
|
|
|
E_CONFIG_VAL(D, T, signal, STR);
|
|
|
|
E_CONFIG_VAL(D, T, source, STR);
|
|
|
|
E_CONFIG_VAL(D, T, modifiers, INT);
|
|
|
|
E_CONFIG_VAL(D, T, any_mod, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, action, STR);
|
|
|
|
E_CONFIG_VAL(D, T, params, STR);
|
|
|
|
|
|
|
|
_e_config_bindings_wheel_edd = E_CONFIG_DD_NEW("E_Config_Binding_Wheel",
|
|
|
|
E_Config_Binding_Wheel);
|
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Config_Binding_Wheel
|
|
|
|
#define D _e_config_bindings_wheel_edd
|
|
|
|
E_CONFIG_VAL(D, T, context, INT);
|
|
|
|
E_CONFIG_VAL(D, T, direction, INT);
|
|
|
|
E_CONFIG_VAL(D, T, z, INT);
|
|
|
|
E_CONFIG_VAL(D, T, modifiers, INT);
|
|
|
|
E_CONFIG_VAL(D, T, any_mod, UCHAR);
|
|
|
|
E_CONFIG_VAL(D, T, action, STR);
|
|
|
|
E_CONFIG_VAL(D, T, params, STR);
|
|
|
|
|
|
|
|
_e_config_bindings_acpi_edd = E_CONFIG_DD_NEW("E_Config_Binding_Acpi",
|
|
|
|
E_Config_Binding_Acpi);
|
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Config_Binding_Acpi
|
|
|
|
#define D _e_config_bindings_acpi_edd
|
|
|
|
E_CONFIG_VAL(D, T, context, INT);
|
|
|
|
E_CONFIG_VAL(D, T, type, INT);
|
|
|
|
E_CONFIG_VAL(D, T, status, INT);
|
|
|
|
E_CONFIG_VAL(D, T, action, STR);
|
|
|
|
E_CONFIG_VAL(D, T, params, STR);
|
|
|
|
|
|
|
|
_e_config_edd_init(EINA_FALSE);
|
2013-02-01 02:21:54 -08:00
|
|
|
|
|
|
|
_e_config_binding_edd = E_CONFIG_DD_NEW("E_Config_Bindings", E_Config_Bindings);
|
|
|
|
#undef T
|
|
|
|
#undef D
|
|
|
|
#define T E_Config_Bindings
|
|
|
|
#define D _e_config_binding_edd
|
|
|
|
E_CONFIG_VAL(D, T, config_version, UINT); /**/
|
|
|
|
E_CONFIG_LIST(D, T, mouse_bindings, _e_config_bindings_mouse_edd); /**/
|
|
|
|
E_CONFIG_LIST(D, T, key_bindings, _e_config_bindings_key_edd); /**/
|
|
|
|
E_CONFIG_LIST(D, T, edge_bindings, _e_config_bindings_edge_edd); /**/
|
|
|
|
E_CONFIG_LIST(D, T, signal_bindings, _e_config_bindings_signal_edd); /**/
|
|
|
|
E_CONFIG_LIST(D, T, wheel_bindings, _e_config_bindings_wheel_edd); /**/
|
|
|
|
E_CONFIG_LIST(D, T, acpi_bindings, _e_config_bindings_acpi_edd); /**/
|
|
|
|
|
2008-10-26 02:04:05 -07:00
|
|
|
e_config_load();
|
2010-08-14 03:21:03 -07:00
|
|
|
|
2008-10-26 02:04:05 -07:00
|
|
|
e_config_save_queue();
|
2015-12-08 23:21:31 -08:00
|
|
|
|
|
|
|
E_LIST_HANDLER_APPEND(handlers, EFREET_EVENT_DESKTOP_CACHE_UPDATE,
|
|
|
|
_e_config_cb_efreet_cache_update, NULL);
|
|
|
|
E_LIST_HANDLER_APPEND(handlers, EFREET_EVENT_ICON_CACHE_UPDATE,
|
|
|
|
_e_config_cb_efreet_cache_update, NULL);
|
|
|
|
E_LIST_HANDLER_APPEND(handlers, E_EVENT_CONFIG_ICON_THEME,
|
|
|
|
_e_config_cb_efreet_cache_update, NULL);
|
|
|
|
|
2008-10-26 02:04:05 -07:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2010-11-22 07:21:32 -08:00
|
|
|
EINTERN int
|
2008-10-26 02:04:05 -07:00
|
|
|
e_config_shutdown(void)
|
|
|
|
{
|
2015-12-08 23:21:31 -08:00
|
|
|
E_FREE_LIST(handlers, ecore_event_handler_del);
|
2012-06-28 06:22:13 -07:00
|
|
|
eina_stringshare_del(_e_config_profile);
|
2013-02-01 02:21:54 -08:00
|
|
|
E_CONFIG_DD_FREE(_e_config_binding_edd);
|
2008-10-26 02:04:05 -07:00
|
|
|
E_CONFIG_DD_FREE(_e_config_bindings_mouse_edd);
|
|
|
|
E_CONFIG_DD_FREE(_e_config_bindings_key_edd);
|
2009-02-25 14:21:46 -08:00
|
|
|
E_CONFIG_DD_FREE(_e_config_bindings_edge_edd);
|
2008-10-26 02:04:05 -07:00
|
|
|
E_CONFIG_DD_FREE(_e_config_bindings_signal_edd);
|
|
|
|
E_CONFIG_DD_FREE(_e_config_bindings_wheel_edd);
|
2010-05-29 12:57:13 -07:00
|
|
|
E_CONFIG_DD_FREE(_e_config_bindings_acpi_edd);
|
2013-02-04 02:14:57 -08:00
|
|
|
_e_config_edd_shutdown();
|
2008-10-26 02:04:05 -07:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API void
|
2008-10-26 02:04:05 -07:00
|
|
|
e_config_load(void)
|
|
|
|
{
|
2012-12-21 15:57:05 -08:00
|
|
|
int reload = 0;
|
2010-08-14 03:21:03 -07:00
|
|
|
|
2004-12-04 23:43:51 -08:00
|
|
|
e_config = e_config_domain_load("e", _e_config_edd);
|
2005-05-07 10:27:03 -07:00
|
|
|
if (e_config)
|
|
|
|
{
|
2008-11-20 01:01:23 -08:00
|
|
|
/* major version change - that means wipe and restart */
|
2012-12-21 15:57:05 -08:00
|
|
|
if ((e_config->config_version) < E_CONFIG_FILE_EPOCH * 1000000)
|
2012-06-28 05:19:36 -07:00
|
|
|
{
|
|
|
|
/* your config is too old - need new defaults */
|
|
|
|
_e_config_free(e_config);
|
2008-11-20 01:01:23 -08:00
|
|
|
e_config = NULL;
|
|
|
|
reload = 1;
|
2012-06-28 05:19:36 -07:00
|
|
|
ecore_timer_add(1.0, _e_config_cb_timer,
|
|
|
|
_("Settings data needed upgrading. Your old settings have<br>"
|
|
|
|
"been wiped and a new set of defaults initialized. This<br>"
|
|
|
|
"will happen regularly during development, so don't report a<br>"
|
|
|
|
"bug. This simply means Enlightenment needs new settings<br>"
|
|
|
|
"data by default for usable functionality that your old<br>"
|
|
|
|
"settings simply lack. This new set of defaults will fix<br>"
|
|
|
|
"that by adding it in. You can re-configure things now to your<br>"
|
|
|
|
"liking. Sorry for the hiccup in your settings.<br>"));
|
|
|
|
}
|
2008-11-20 01:01:23 -08:00
|
|
|
/* config is too new? odd! suspect corruption? */
|
2012-06-28 05:19:36 -07:00
|
|
|
else if (e_config->config_version > E_CONFIG_FILE_VERSION)
|
|
|
|
{
|
|
|
|
/* your config is too new - what the fuck??? */
|
|
|
|
_e_config_free(e_config);
|
2008-11-20 01:01:23 -08:00
|
|
|
e_config = NULL;
|
|
|
|
reload = 1;
|
2012-06-28 05:19:36 -07:00
|
|
|
ecore_timer_add(1.0, _e_config_cb_timer,
|
|
|
|
_("Your settings are NEWER than Enlightenment. This is very<br>"
|
|
|
|
"strange. This should not happen unless you downgraded<br>"
|
|
|
|
"Enlightenment or copied the settings from a place where<br>"
|
|
|
|
"a newer version of Enlightenment was running. This is bad and<br>"
|
|
|
|
"as a precaution your settings have been now restored to<br>"
|
|
|
|
"defaults. Sorry for the inconvenience.<br>"));
|
|
|
|
}
|
2008-11-20 01:01:23 -08:00
|
|
|
if (reload)
|
|
|
|
{
|
|
|
|
e_config_profile_del(e_config_profile_get());
|
2012-12-21 15:57:05 -08:00
|
|
|
e_config_profile_set("default");
|
2008-11-20 01:01:23 -08:00
|
|
|
e_config = e_config_domain_load("e", _e_config_edd);
|
|
|
|
}
|
2005-05-07 10:27:03 -07:00
|
|
|
}
|
2013-02-04 02:14:57 -08:00
|
|
|
while (!e_config)
|
2004-12-04 23:43:51 -08:00
|
|
|
{
|
2013-02-04 02:14:57 -08:00
|
|
|
_e_config_edd_shutdown();
|
|
|
|
_e_config_edd_init(EINA_TRUE);
|
|
|
|
e_config = e_config_domain_load("e", _e_config_edd);
|
|
|
|
/* I made a c&p error here and fucked the world, so this ugliness
|
2014-09-09 09:30:50 -07:00
|
|
|
* will be my public mark of shame until E :/
|
2013-02-04 02:14:57 -08:00
|
|
|
* -zmike, 2013
|
|
|
|
*/
|
|
|
|
if (e_config)
|
|
|
|
{
|
|
|
|
Eina_List *l;
|
|
|
|
E_Config_XKB_Layout *cl;
|
|
|
|
int set = 0;
|
|
|
|
|
|
|
|
/* this is essentially CONFIG_VERSION_CHECK(7) */
|
|
|
|
INF("Performing config upgrade to %d.%d", 1, 7);
|
|
|
|
_e_config_edd_shutdown();
|
|
|
|
_e_config_edd_init(EINA_FALSE);
|
|
|
|
set += !!e_config->xkb.current_layout;
|
|
|
|
set += !!e_config->xkb.sel_layout;
|
|
|
|
set += !!e_config->xkb.lock_layout;
|
|
|
|
EINA_LIST_FOREACH(e_config->xkb.used_layouts, l, cl)
|
|
|
|
{
|
|
|
|
if (e_config->xkb.current_layout && (e_config->xkb.current_layout->name == cl->name))
|
|
|
|
{
|
|
|
|
e_config->xkb.current_layout->model = eina_stringshare_ref(cl->model);
|
|
|
|
e_config->xkb.current_layout->variant = eina_stringshare_ref(cl->variant);
|
|
|
|
set--;
|
|
|
|
}
|
|
|
|
if (e_config->xkb.sel_layout && (e_config->xkb.sel_layout->name == cl->name))
|
|
|
|
{
|
|
|
|
e_config->xkb.sel_layout->model = eina_stringshare_ref(cl->model);
|
|
|
|
e_config->xkb.sel_layout->variant = eina_stringshare_ref(cl->variant);
|
|
|
|
set--;
|
|
|
|
}
|
|
|
|
if (e_config->xkb.lock_layout && (e_config->xkb.lock_layout->name == cl->name))
|
|
|
|
{
|
|
|
|
e_config->xkb.lock_layout->model = eina_stringshare_ref(cl->model);
|
|
|
|
e_config->xkb.lock_layout->variant = eina_stringshare_ref(cl->variant);
|
|
|
|
set--;
|
|
|
|
}
|
|
|
|
if (!set) break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
#undef T
|
|
|
|
#undef D
|
2012-12-17 08:12:32 -08:00
|
|
|
e_config_profile_set("default");
|
2012-12-21 15:57:05 -08:00
|
|
|
if (!reload) e_config_profile_del(e_config_profile_get());
|
2012-12-17 08:12:32 -08:00
|
|
|
e_config_save_block_set(1);
|
2013-01-10 01:33:22 -08:00
|
|
|
ecore_app_restart();
|
|
|
|
//e_sys_action_do(E_SYS_RESTART, NULL);
|
2013-01-10 01:29:44 -08:00
|
|
|
return;
|
2006-03-09 21:48:46 -08:00
|
|
|
}
|
2013-02-01 02:21:54 -08:00
|
|
|
|
2013-02-05 02:42:27 -08:00
|
|
|
#define CONFIG_VERSION_CHECK(VERSION) \
|
|
|
|
if (e_config->config_version - (E_CONFIG_FILE_EPOCH * 1000000) < (VERSION))
|
2013-02-01 02:21:54 -08:00
|
|
|
|
2013-02-05 02:42:27 -08:00
|
|
|
#define CONFIG_VERSION_UPDATE_INFO(VERSION) \
|
|
|
|
INF("Performing config upgrade for %d.%d", E_CONFIG_FILE_EPOCH, VERSION);
|
|
|
|
|
2013-08-19 02:31:25 -07:00
|
|
|
/* this should be 6, an xkb fix fucked up the ordering and this is now really broken */
|
|
|
|
CONFIG_VERSION_CHECK(8)
|
2013-02-04 04:12:12 -08:00
|
|
|
{
|
2013-02-05 02:42:27 -08:00
|
|
|
/* e_bindings config domain didn't exist before this version, so we have to do this
|
|
|
|
* check before we load or else we wipe configs :(
|
|
|
|
*/
|
2013-02-04 04:12:12 -08:00
|
|
|
#undef SET
|
|
|
|
#define SET(X) e_bindings->X = e_config->X, e_config->X = NULL
|
|
|
|
|
2013-08-19 02:31:25 -07:00
|
|
|
//CONFIG_VERSION_UPDATE_INFO(6);
|
2013-02-05 23:49:45 -08:00
|
|
|
if (e_config->mouse_bindings || e_config->key_bindings || e_config->edge_bindings ||
|
|
|
|
e_config->signal_bindings || e_config->wheel_bindings || e_config->acpi_bindings)
|
|
|
|
{
|
2013-02-06 00:36:59 -08:00
|
|
|
e_bindings = E_NEW(E_Config_Bindings, 1);
|
2013-02-05 23:49:45 -08:00
|
|
|
SET(mouse_bindings);
|
|
|
|
SET(key_bindings);
|
|
|
|
SET(edge_bindings);
|
|
|
|
SET(signal_bindings);
|
|
|
|
SET(wheel_bindings);
|
|
|
|
SET(acpi_bindings);
|
|
|
|
e_config_domain_save("e_bindings", _e_config_binding_edd, e_bindings);
|
2013-02-04 04:12:12 -08:00
|
|
|
#undef SET
|
2013-02-05 23:49:45 -08:00
|
|
|
}
|
|
|
|
else
|
|
|
|
e_bindings = e_config_domain_load("e_bindings", _e_config_binding_edd);
|
2013-02-04 04:12:12 -08:00
|
|
|
}
|
2013-02-05 02:42:27 -08:00
|
|
|
else
|
|
|
|
e_bindings = e_config_domain_load("e_bindings", _e_config_binding_edd);
|
2013-02-01 02:21:54 -08:00
|
|
|
|
2015-10-05 12:56:28 -07:00
|
|
|
if ((!e_bindings) || (e_bindings->config_version != E_CONFIG_BINDINGS_VERSION))
|
2006-03-09 21:48:46 -08:00
|
|
|
{
|
2013-02-05 02:42:27 -08:00
|
|
|
Eina_Stringshare *prof;
|
2013-02-01 02:21:54 -08:00
|
|
|
|
2013-02-05 02:42:27 -08:00
|
|
|
e_config_bindings_free(e_bindings);
|
|
|
|
prof = eina_stringshare_ref(e_config_profile_get());
|
|
|
|
e_config_profile_set("standard");
|
|
|
|
e_bindings = e_config_domain_system_load("e_bindings", _e_config_binding_edd);
|
|
|
|
e_config_profile_set(prof);
|
|
|
|
eina_stringshare_del(prof);
|
|
|
|
ecore_timer_add(1.0, _e_config_cb_timer,
|
|
|
|
_("Your bindings settings version does not match the current settings version.<br>"
|
|
|
|
"As a result, all bindings have been reloaded from defaults.<br>"
|
|
|
|
"Sorry for the inconvenience.<br>"));
|
|
|
|
}
|
2013-02-04 02:48:00 -08:00
|
|
|
|
2013-02-05 02:42:27 -08:00
|
|
|
if (e_config->config_version < E_CONFIG_FILE_VERSION)
|
|
|
|
{
|
2013-02-01 02:21:54 -08:00
|
|
|
CONFIG_VERSION_CHECK(5)
|
2008-11-20 01:01:23 -08:00
|
|
|
{
|
2013-01-31 09:50:45 -08:00
|
|
|
E_Config_XKB_Layout *cl;
|
|
|
|
Eina_List *l;
|
|
|
|
|
2013-02-04 02:48:00 -08:00
|
|
|
CONFIG_VERSION_UPDATE_INFO(5);
|
2013-01-31 09:50:45 -08:00
|
|
|
if (e_config->xkb.cur_layout || e_config->xkb.selected_layout || e_config->xkb.desklock_layout)
|
|
|
|
{
|
|
|
|
EINA_LIST_FOREACH(e_config->xkb.used_layouts, l, cl)
|
|
|
|
{
|
|
|
|
if (cl->name == e_config->xkb.cur_layout)
|
|
|
|
e_config->xkb.current_layout = e_config_xkb_layout_dup(cl);
|
|
|
|
if (cl->name == e_config->xkb.selected_layout)
|
|
|
|
e_config->xkb.sel_layout = e_config_xkb_layout_dup(cl);
|
|
|
|
if (cl->name == e_config->xkb.desklock_layout)
|
|
|
|
e_config->xkb.lock_layout = e_config_xkb_layout_dup(cl);
|
|
|
|
if (((!!e_config->xkb.current_layout) == (!!e_config->xkb.cur_layout)) &&
|
|
|
|
((!!e_config->xkb.sel_layout) == (!!e_config->xkb.selected_layout)) &&
|
|
|
|
((!!e_config->xkb.lock_layout) == (!!e_config->xkb.desklock_layout)))
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2008-11-20 01:01:23 -08:00
|
|
|
}
|
2013-02-04 04:12:12 -08:00
|
|
|
/* this gets done above but I'm leaving it here so it can be seen
|
2013-02-01 02:21:54 -08:00
|
|
|
CONFIG_VERSION_CHECK(6)
|
|
|
|
{
|
2013-02-04 02:48:00 -08:00
|
|
|
CONFIG_VERSION_UPDATE_INFO(6);
|
2013-02-01 02:21:54 -08:00
|
|
|
e_bindings = E_NEW(E_Config_Bindings, 1);
|
|
|
|
#undef SET
|
|
|
|
#define SET(X) e_bindings->X = e_config->X, e_config->X = NULL
|
|
|
|
|
|
|
|
SET(mouse_bindings);
|
|
|
|
SET(key_bindings);
|
|
|
|
SET(edge_bindings);
|
|
|
|
SET(signal_bindings);
|
|
|
|
SET(wheel_bindings);
|
|
|
|
SET(acpi_bindings);
|
|
|
|
#undef SET
|
2013-02-02 01:01:16 -08:00
|
|
|
e_config_domain_save("e_bindings", _e_config_binding_edd, e_bindings);
|
2013-02-01 02:21:54 -08:00
|
|
|
}
|
2013-02-04 04:12:12 -08:00
|
|
|
*/
|
2013-02-04 02:45:51 -08:00
|
|
|
CONFIG_VERSION_CHECK(8)
|
|
|
|
{
|
2013-02-04 02:48:00 -08:00
|
|
|
CONFIG_VERSION_UPDATE_INFO(8);
|
2013-02-04 02:45:51 -08:00
|
|
|
if (!e_config->config_type)
|
|
|
|
{
|
|
|
|
/* I guess this probably isn't great, but whatever */
|
|
|
|
if (eina_list_count(e_bindings->key_bindings) > 2)
|
|
|
|
e_config->config_type = E_CONFIG_PROFILE_TYPE_DESKTOP;
|
|
|
|
else
|
|
|
|
e_config->config_type = E_CONFIG_PROFILE_TYPE_TABLET;
|
|
|
|
}
|
|
|
|
}
|
2013-02-05 06:03:11 -08:00
|
|
|
CONFIG_VERSION_CHECK(10)
|
|
|
|
{
|
|
|
|
int do_conf = 0;
|
|
|
|
Eina_List *l, *ll;
|
|
|
|
E_Config_Module *em;
|
|
|
|
int enabled = 0, delayed = 0, priority = 0;
|
|
|
|
|
|
|
|
CONFIG_VERSION_UPDATE_INFO(10);
|
|
|
|
EINA_LIST_FOREACH_SAFE(e_config->modules, l, ll, em)
|
|
|
|
{
|
|
|
|
Eina_Bool do_free = EINA_FALSE;
|
|
|
|
|
|
|
|
if (!e_util_strcmp(em->name, "comp"))
|
|
|
|
do_free = EINA_TRUE;
|
|
|
|
else if ((!e_util_strcmp(em->name, "conf_keybindings")) || (!e_util_strcmp(em->name, "conf_edgebindings")))
|
|
|
|
{
|
|
|
|
do_conf += do_free = EINA_TRUE;
|
|
|
|
enabled |= em->enabled;
|
|
|
|
delayed |= em->delayed;
|
|
|
|
priority = MIN(priority, em->priority);
|
|
|
|
}
|
|
|
|
if (do_free)
|
|
|
|
{
|
|
|
|
e_config->modules = eina_list_remove_list(e_config->modules, l);
|
|
|
|
eina_stringshare_del(em->name);
|
|
|
|
free(em);
|
|
|
|
}
|
|
|
|
if (do_conf == 2) break;
|
|
|
|
}
|
|
|
|
if (do_conf)
|
|
|
|
{
|
|
|
|
em = E_NEW(E_Config_Module, 1);
|
|
|
|
em->name = eina_stringshare_add("conf_bindings");
|
|
|
|
em->enabled = !!enabled;
|
|
|
|
em->delayed = !!delayed;
|
|
|
|
em->priority = priority;
|
|
|
|
e_config->modules = eina_list_append(e_config->modules, em);
|
|
|
|
}
|
|
|
|
}
|
2013-02-05 06:22:54 -08:00
|
|
|
CONFIG_VERSION_CHECK(11)
|
|
|
|
{
|
|
|
|
CONFIG_VERSION_UPDATE_INFO(11);
|
|
|
|
e_config->pointer_warp_speed = e_config->winlist_warp_speed;
|
|
|
|
e_config->winlist_warp_speed = 0;
|
2013-12-01 07:19:59 -08:00
|
|
|
|
|
|
|
if (e_config->focus_policy == E_FOCUS_CLICK)
|
|
|
|
{
|
|
|
|
if (e_config->border_raise_on_focus)
|
|
|
|
{
|
|
|
|
/* approximate expected behavior from removed option */
|
|
|
|
e_config->always_click_to_focus = 1;
|
|
|
|
e_config->always_click_to_raise = 1;
|
|
|
|
}
|
|
|
|
}
|
2013-02-05 06:22:54 -08:00
|
|
|
}
|
giant comp rejiggering commit #6:
* border->fx REMOVED, related border api REMOVED
* comp edc has new class of groups: e/comp/effects[/auto]
** these are effects which can be applied to any compositor object through the e_comp_win_effect* api and are written in embryo
*** two types - base and auto - base = manual, for use with animators; auto are "trigger and forget", for use as actual effects
* desk flip transition animations moved to comp effects and FIXED(ish)
* "zoom" effect renamed to "diagonal" for slightly less misleading name since it never did any zooming
* actual "zoom" effect added
* border hierarchy now as follows: cw->effect_obj swallows cw->shobj, cw->shobj swallows cw->bd->bg_object ?: cw->obj, if (cw->bd->bg_object) cw->bd->bg_object swallows cw->obj
** cw->effect_obj now used for all positioning and comp logic
** cw->effect_obj ONLY used for object transformation effects (moving, zooming, fading, etc)
** cw->shobj ONLY for comp visual/non-movement effects (focus effect, unfocus opacity, legacy shadows); this is a candidate for removal/rewrite in E19
* even more comp shape rewrites
* desk flip animation time now controlled by theme since edje doesn't support setting transition time in C; related config value removed
* desk flip transitions (in e_desk.c) rewritten
* various modules (evry/illume2) updated to use comp effects instead of fx offset
* desk flip configuration BROKEN(ish)
2013-02-28 07:20:32 -08:00
|
|
|
CONFIG_VERSION_CHECK(12)
|
|
|
|
{
|
|
|
|
CONFIG_VERSION_UPDATE_INFO(12);
|
|
|
|
switch (e_config->desk_flip_animate_mode)
|
|
|
|
{
|
|
|
|
case 1: //pane
|
|
|
|
e_config->desk_flip_animate_type = eina_stringshare_add("auto/pane");
|
|
|
|
break;
|
|
|
|
case 2: //zoom, now known as diagonal
|
|
|
|
e_config->desk_flip_animate_type = eina_stringshare_add("auto/diagonal");
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
compositor rewrite / charlie-foxtrot situation
huge fustercluck commit because there wasn't really a way to separate out the changes. better to just rip it all out at once.
* compositor and window management completely rewritten. this was the goal for E19, but it pretty much required everything existing to be scrapped since it wasn't optimized, streamlined, or sensible. now instead of having the compositor strapped to the window manager like an outboard motor, it's housed more like an automobile engine.
** various comp structs have been merged into other places (eg. E_Comp_Zone is now just part of E_Zone where applicable), leading to a large deduplication of attributes
** awful E_Comp_Win is totally dead, having been replaced with e_comp_object smart objects which work just like normal canvas objects
** protocol-specific window management and compositor functionality is now kept exclusively in backend files
** e_pixmap api provides generic client finding and rendering api
** screen/xinerama screens are now provided directly by compositor on startup and re-set on change
** e_comp_render_update finally replaced with eina_tiler
** wayland compositor no longer creates X windows
** compositor e_layout removed entirely
* e_container is gone. this was made unnecessary in E18, but I kept it to avoid having too much code churn in one release. its sole purpose was to catch some events and handle window stacking, both of which are now just done by the compositor infra
* e_manager is just for screensaver and keybind stuff now, possibly remove later?
* e_border is gone along with a lot of its api. e_client has replaced it, and e_client has been rewritten completely; some parts may be similar, but the design now relies upon having a functional compositor
** window configuration/focus functions are all removed. all windows are now managed solely with evas_object_X functions on the "frame" member of a client, just as any other canvas object can be managed.
*** do NOT set interceptors on a client's comp_object. seriously.
* startup order rewritten: compositor now starts much earlier, other things just use attrs and members of the compositor
* ecore_x_pointer_xy_get usage replaced with ecore_evas_pointer_xy_get
* e_popup is totally gone, existing usage replaced by e_comp_object_util_add where applicable, otherwise just placed normally on the canvas
* deskmirror is (more) broken for now
* illume is totally fucked
* Ecore_X_Window replaced with Ecore_Window in most cases
* edge binding XWindows replaced with regular canvas objects
* some E_Win functionality has changed such that delete callbacks are now correctly called in ALL cases. various dialogs have been updated to not crash as a result
comp files and descriptions:
e_comp.c - overall compositor functions, rendering/update loop, shape cutting
e_comp_x.c - X window management and compositor functionality
e_comp_wl.c - Wayland surface management and compositor functionality
e_comp_canvas.c - general compositor canvas functions and utilities
e_comp_object.c - E_Client->frame member for managing clients as Evas_Objects, utility functions for adding objects to the compositor rendering systems
additional authors: ivan.briano@intel.com
feature: new compositor
removal: e_border, e_container, e_popup
2014-01-14 17:19:12 -08:00
|
|
|
CONFIG_VERSION_CHECK(14)
|
2013-10-31 23:53:05 -07:00
|
|
|
{
|
compositor rewrite / charlie-foxtrot situation
huge fustercluck commit because there wasn't really a way to separate out the changes. better to just rip it all out at once.
* compositor and window management completely rewritten. this was the goal for E19, but it pretty much required everything existing to be scrapped since it wasn't optimized, streamlined, or sensible. now instead of having the compositor strapped to the window manager like an outboard motor, it's housed more like an automobile engine.
** various comp structs have been merged into other places (eg. E_Comp_Zone is now just part of E_Zone where applicable), leading to a large deduplication of attributes
** awful E_Comp_Win is totally dead, having been replaced with e_comp_object smart objects which work just like normal canvas objects
** protocol-specific window management and compositor functionality is now kept exclusively in backend files
** e_pixmap api provides generic client finding and rendering api
** screen/xinerama screens are now provided directly by compositor on startup and re-set on change
** e_comp_render_update finally replaced with eina_tiler
** wayland compositor no longer creates X windows
** compositor e_layout removed entirely
* e_container is gone. this was made unnecessary in E18, but I kept it to avoid having too much code churn in one release. its sole purpose was to catch some events and handle window stacking, both of which are now just done by the compositor infra
* e_manager is just for screensaver and keybind stuff now, possibly remove later?
* e_border is gone along with a lot of its api. e_client has replaced it, and e_client has been rewritten completely; some parts may be similar, but the design now relies upon having a functional compositor
** window configuration/focus functions are all removed. all windows are now managed solely with evas_object_X functions on the "frame" member of a client, just as any other canvas object can be managed.
*** do NOT set interceptors on a client's comp_object. seriously.
* startup order rewritten: compositor now starts much earlier, other things just use attrs and members of the compositor
* ecore_x_pointer_xy_get usage replaced with ecore_evas_pointer_xy_get
* e_popup is totally gone, existing usage replaced by e_comp_object_util_add where applicable, otherwise just placed normally on the canvas
* deskmirror is (more) broken for now
* illume is totally fucked
* Ecore_X_Window replaced with Ecore_Window in most cases
* edge binding XWindows replaced with regular canvas objects
* some E_Win functionality has changed such that delete callbacks are now correctly called in ALL cases. various dialogs have been updated to not crash as a result
comp files and descriptions:
e_comp.c - overall compositor functions, rendering/update loop, shape cutting
e_comp_x.c - X window management and compositor functionality
e_comp_wl.c - Wayland surface management and compositor functionality
e_comp_canvas.c - general compositor canvas functions and utilities
e_comp_object.c - E_Client->frame member for managing clients as Evas_Objects, utility functions for adding objects to the compositor rendering systems
additional authors: ivan.briano@intel.com
feature: new compositor
removal: e_border, e_container, e_popup
2014-01-14 17:19:12 -08:00
|
|
|
Eina_List *files, *l;
|
2013-10-31 23:53:05 -07:00
|
|
|
Eina_Bool fail = EINA_FALSE;
|
compositor rewrite / charlie-foxtrot situation
huge fustercluck commit because there wasn't really a way to separate out the changes. better to just rip it all out at once.
* compositor and window management completely rewritten. this was the goal for E19, but it pretty much required everything existing to be scrapped since it wasn't optimized, streamlined, or sensible. now instead of having the compositor strapped to the window manager like an outboard motor, it's housed more like an automobile engine.
** various comp structs have been merged into other places (eg. E_Comp_Zone is now just part of E_Zone where applicable), leading to a large deduplication of attributes
** awful E_Comp_Win is totally dead, having been replaced with e_comp_object smart objects which work just like normal canvas objects
** protocol-specific window management and compositor functionality is now kept exclusively in backend files
** e_pixmap api provides generic client finding and rendering api
** screen/xinerama screens are now provided directly by compositor on startup and re-set on change
** e_comp_render_update finally replaced with eina_tiler
** wayland compositor no longer creates X windows
** compositor e_layout removed entirely
* e_container is gone. this was made unnecessary in E18, but I kept it to avoid having too much code churn in one release. its sole purpose was to catch some events and handle window stacking, both of which are now just done by the compositor infra
* e_manager is just for screensaver and keybind stuff now, possibly remove later?
* e_border is gone along with a lot of its api. e_client has replaced it, and e_client has been rewritten completely; some parts may be similar, but the design now relies upon having a functional compositor
** window configuration/focus functions are all removed. all windows are now managed solely with evas_object_X functions on the "frame" member of a client, just as any other canvas object can be managed.
*** do NOT set interceptors on a client's comp_object. seriously.
* startup order rewritten: compositor now starts much earlier, other things just use attrs and members of the compositor
* ecore_x_pointer_xy_get usage replaced with ecore_evas_pointer_xy_get
* e_popup is totally gone, existing usage replaced by e_comp_object_util_add where applicable, otherwise just placed normally on the canvas
* deskmirror is (more) broken for now
* illume is totally fucked
* Ecore_X_Window replaced with Ecore_Window in most cases
* edge binding XWindows replaced with regular canvas objects
* some E_Win functionality has changed such that delete callbacks are now correctly called in ALL cases. various dialogs have been updated to not crash as a result
comp files and descriptions:
e_comp.c - overall compositor functions, rendering/update loop, shape cutting
e_comp_x.c - X window management and compositor functionality
e_comp_wl.c - Wayland surface management and compositor functionality
e_comp_canvas.c - general compositor canvas functions and utilities
e_comp_object.c - E_Client->frame member for managing clients as Evas_Objects, utility functions for adding objects to the compositor rendering systems
additional authors: ivan.briano@intel.com
feature: new compositor
removal: e_border, e_container, e_popup
2014-01-14 17:19:12 -08:00
|
|
|
E_Config_Shelf *cf_es;
|
|
|
|
E_Remember *rem;
|
2013-12-21 12:30:28 -08:00
|
|
|
char buf[PATH_MAX], buf2[PATH_MAX], *f;
|
compositor rewrite / charlie-foxtrot situation
huge fustercluck commit because there wasn't really a way to separate out the changes. better to just rip it all out at once.
* compositor and window management completely rewritten. this was the goal for E19, but it pretty much required everything existing to be scrapped since it wasn't optimized, streamlined, or sensible. now instead of having the compositor strapped to the window manager like an outboard motor, it's housed more like an automobile engine.
** various comp structs have been merged into other places (eg. E_Comp_Zone is now just part of E_Zone where applicable), leading to a large deduplication of attributes
** awful E_Comp_Win is totally dead, having been replaced with e_comp_object smart objects which work just like normal canvas objects
** protocol-specific window management and compositor functionality is now kept exclusively in backend files
** e_pixmap api provides generic client finding and rendering api
** screen/xinerama screens are now provided directly by compositor on startup and re-set on change
** e_comp_render_update finally replaced with eina_tiler
** wayland compositor no longer creates X windows
** compositor e_layout removed entirely
* e_container is gone. this was made unnecessary in E18, but I kept it to avoid having too much code churn in one release. its sole purpose was to catch some events and handle window stacking, both of which are now just done by the compositor infra
* e_manager is just for screensaver and keybind stuff now, possibly remove later?
* e_border is gone along with a lot of its api. e_client has replaced it, and e_client has been rewritten completely; some parts may be similar, but the design now relies upon having a functional compositor
** window configuration/focus functions are all removed. all windows are now managed solely with evas_object_X functions on the "frame" member of a client, just as any other canvas object can be managed.
*** do NOT set interceptors on a client's comp_object. seriously.
* startup order rewritten: compositor now starts much earlier, other things just use attrs and members of the compositor
* ecore_x_pointer_xy_get usage replaced with ecore_evas_pointer_xy_get
* e_popup is totally gone, existing usage replaced by e_comp_object_util_add where applicable, otherwise just placed normally on the canvas
* deskmirror is (more) broken for now
* illume is totally fucked
* Ecore_X_Window replaced with Ecore_Window in most cases
* edge binding XWindows replaced with regular canvas objects
* some E_Win functionality has changed such that delete callbacks are now correctly called in ALL cases. various dialogs have been updated to not crash as a result
comp files and descriptions:
e_comp.c - overall compositor functions, rendering/update loop, shape cutting
e_comp_x.c - X window management and compositor functionality
e_comp_wl.c - Wayland surface management and compositor functionality
e_comp_canvas.c - general compositor canvas functions and utilities
e_comp_object.c - E_Client->frame member for managing clients as Evas_Objects, utility functions for adding objects to the compositor rendering systems
additional authors: ivan.briano@intel.com
feature: new compositor
removal: e_border, e_container, e_popup
2014-01-14 17:19:12 -08:00
|
|
|
|
|
|
|
CONFIG_VERSION_UPDATE_INFO(14);
|
|
|
|
|
|
|
|
EINA_LIST_FOREACH(e_config->shelves, l, cf_es)
|
|
|
|
{
|
|
|
|
if (cf_es->popup)
|
|
|
|
{
|
|
|
|
if (cf_es->layer)
|
|
|
|
cf_es->layer = E_LAYER_CLIENT_ABOVE;
|
|
|
|
else
|
|
|
|
cf_es->layer = E_LAYER_CLIENT_DESKTOP;
|
|
|
|
}
|
|
|
|
else if (!cf_es->layer)
|
|
|
|
cf_es->layer = E_LAYER_DESKTOP; //redundant, but whatever
|
|
|
|
cf_es->popup = 0;
|
|
|
|
}
|
2013-10-31 23:53:05 -07:00
|
|
|
|
2014-09-09 09:30:50 -07:00
|
|
|
/* E layer values are higher */
|
compositor rewrite / charlie-foxtrot situation
huge fustercluck commit because there wasn't really a way to separate out the changes. better to just rip it all out at once.
* compositor and window management completely rewritten. this was the goal for E19, but it pretty much required everything existing to be scrapped since it wasn't optimized, streamlined, or sensible. now instead of having the compositor strapped to the window manager like an outboard motor, it's housed more like an automobile engine.
** various comp structs have been merged into other places (eg. E_Comp_Zone is now just part of E_Zone where applicable), leading to a large deduplication of attributes
** awful E_Comp_Win is totally dead, having been replaced with e_comp_object smart objects which work just like normal canvas objects
** protocol-specific window management and compositor functionality is now kept exclusively in backend files
** e_pixmap api provides generic client finding and rendering api
** screen/xinerama screens are now provided directly by compositor on startup and re-set on change
** e_comp_render_update finally replaced with eina_tiler
** wayland compositor no longer creates X windows
** compositor e_layout removed entirely
* e_container is gone. this was made unnecessary in E18, but I kept it to avoid having too much code churn in one release. its sole purpose was to catch some events and handle window stacking, both of which are now just done by the compositor infra
* e_manager is just for screensaver and keybind stuff now, possibly remove later?
* e_border is gone along with a lot of its api. e_client has replaced it, and e_client has been rewritten completely; some parts may be similar, but the design now relies upon having a functional compositor
** window configuration/focus functions are all removed. all windows are now managed solely with evas_object_X functions on the "frame" member of a client, just as any other canvas object can be managed.
*** do NOT set interceptors on a client's comp_object. seriously.
* startup order rewritten: compositor now starts much earlier, other things just use attrs and members of the compositor
* ecore_x_pointer_xy_get usage replaced with ecore_evas_pointer_xy_get
* e_popup is totally gone, existing usage replaced by e_comp_object_util_add where applicable, otherwise just placed normally on the canvas
* deskmirror is (more) broken for now
* illume is totally fucked
* Ecore_X_Window replaced with Ecore_Window in most cases
* edge binding XWindows replaced with regular canvas objects
* some E_Win functionality has changed such that delete callbacks are now correctly called in ALL cases. various dialogs have been updated to not crash as a result
comp files and descriptions:
e_comp.c - overall compositor functions, rendering/update loop, shape cutting
e_comp_x.c - X window management and compositor functionality
e_comp_wl.c - Wayland surface management and compositor functionality
e_comp_canvas.c - general compositor canvas functions and utilities
e_comp_object.c - E_Client->frame member for managing clients as Evas_Objects, utility functions for adding objects to the compositor rendering systems
additional authors: ivan.briano@intel.com
feature: new compositor
removal: e_border, e_container, e_popup
2014-01-14 17:19:12 -08:00
|
|
|
EINA_LIST_FOREACH(e_config->remembers, l, rem)
|
|
|
|
if (rem->apply & E_REMEMBER_APPLY_LAYER)
|
|
|
|
rem->prop.layer += 100;
|
|
|
|
|
2013-10-31 23:53:05 -07:00
|
|
|
// copy all of ~/.e/e/themes/* into ~/.elementary/themes
|
|
|
|
// and delete original data in ~/.e/e/themes
|
|
|
|
ecore_file_mkpath(elm_theme_user_dir_get());
|
|
|
|
snprintf(buf, sizeof(buf), "%s/themes", e_user_dir_get());
|
|
|
|
files = ecore_file_ls(buf);
|
|
|
|
EINA_LIST_FREE(files, f)
|
|
|
|
{
|
|
|
|
snprintf(buf, sizeof(buf), "%s/themes/%s",
|
|
|
|
e_user_dir_get(), f);
|
|
|
|
snprintf(buf2, sizeof(buf2), "%s/%s",
|
|
|
|
elm_theme_user_dir_get(), f);
|
|
|
|
if (!ecore_file_cp(buf, buf2)) fail = EINA_TRUE;
|
|
|
|
}
|
|
|
|
if (!fail)
|
|
|
|
{
|
|
|
|
snprintf(buf, sizeof(buf), "%s/themes", e_user_dir_get());
|
|
|
|
ecore_file_recursive_rm(buf);
|
|
|
|
}
|
|
|
|
}
|
2013-10-26 01:59:32 -07:00
|
|
|
CONFIG_VERSION_CHECK(15)
|
|
|
|
{
|
2013-12-21 07:59:23 -08:00
|
|
|
E_Config_Module *em;
|
|
|
|
Eina_List *l;
|
|
|
|
Eina_Bool found = EINA_FALSE;
|
|
|
|
|
2013-10-26 01:59:32 -07:00
|
|
|
CONFIG_VERSION_UPDATE_INFO(15);
|
|
|
|
if (e_config->desklock_use_custom_desklock)
|
|
|
|
e_config->desklock_auth_method = E_DESKLOCK_AUTH_METHOD_EXTERNAL;
|
2013-12-21 07:59:23 -08:00
|
|
|
|
|
|
|
EINA_LIST_FOREACH(e_config->modules, l, em)
|
|
|
|
if (!strcmp(em->name, "lokker"))
|
|
|
|
{
|
|
|
|
found = EINA_TRUE;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (!found)
|
|
|
|
{
|
|
|
|
/* add new desklock module */
|
|
|
|
em = E_NEW(E_Config_Module, 1);
|
|
|
|
em->name = eina_stringshare_add("lokker");
|
|
|
|
em->enabled = 1;
|
|
|
|
em->delayed = 0;
|
|
|
|
e_config->modules = eina_list_append(e_config->modules, em);
|
|
|
|
}
|
2013-10-26 01:59:32 -07:00
|
|
|
}
|
2014-08-06 11:18:54 -07:00
|
|
|
CONFIG_VERSION_CHECK(17)
|
|
|
|
{
|
|
|
|
E_Config_Module *em;
|
|
|
|
Eina_List *l;
|
|
|
|
|
|
|
|
CONFIG_VERSION_UPDATE_INFO(17);
|
|
|
|
|
|
|
|
EINA_LIST_FOREACH(e_config->modules, l, em)
|
|
|
|
if (!strcmp(em->name, "pager16"))
|
|
|
|
{
|
|
|
|
eina_stringshare_replace(&em->name, "pager");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2015-04-06 11:38:43 -07:00
|
|
|
CONFIG_VERSION_CHECK(18)
|
|
|
|
{
|
|
|
|
E_Color_Class *ecc;
|
|
|
|
|
|
|
|
CONFIG_VERSION_UPDATE_INFO(18);
|
|
|
|
EINA_LIST_FREE(e_config->color_classes, ecc)
|
|
|
|
{
|
|
|
|
elm_config_color_overlay_set(ecc->name, ecc->r, ecc->g, ecc->b, ecc->a, ecc->r2, ecc->g2, ecc->b2, ecc->a2, ecc->r3, ecc->g3, ecc->b3, ecc->a3);
|
|
|
|
eina_stringshare_del(ecc->name);
|
|
|
|
free(ecc);
|
|
|
|
}
|
|
|
|
}
|
(1) e_config.c/e_comp_wl.c: add code for making repeat values configurable
(2) e.src(s): add keyboard.repeat_delay, keyboard.repeat_rate into e.src files
Summary:
As of now, the default values of repeat delay/rate are being set in e_comp_wl.c.
Those values need to be configurable and will be used in e_comp_wl_init().
The limit of each of the values is defined from -1 to 1000. (maximum 1s).
If one of the two is negative, it means default repeat delay/rate are going to be used.
(e.g. delay:400, rate:25)
Test Plan:
N/A
Signed-off-by: Sung-Jin Park <input.hacker@gmail.com>
Reviewers: raster, stefan_schmidt, gwanglim, devilhorns, zmike
Subscribers: Jeon, ohduna, cedric
Differential Revision: https://phab.enlightenment.org/D3364
2015-11-30 11:05:10 -08:00
|
|
|
CONFIG_VERSION_CHECK(19)
|
|
|
|
{
|
|
|
|
CONFIG_VERSION_UPDATE_INFO(19);
|
|
|
|
|
|
|
|
/* set (400, 25) as the default values of repeat delay, rate */
|
|
|
|
e_config->keyboard.repeat_delay = 400;
|
|
|
|
e_config->keyboard.repeat_rate = 25;
|
|
|
|
}
|
2004-12-04 23:43:51 -08:00
|
|
|
}
|
2013-01-11 02:34:29 -08:00
|
|
|
if (!e_config->remember_internal_fm_windows)
|
|
|
|
e_config->remember_internal_fm_windows = !!(e_config->remember_internal_windows & E_REMEMBER_INTERNAL_FM_WINS);
|
|
|
|
|
2013-02-01 02:21:54 -08:00
|
|
|
e_bindings->config_version = E_CONFIG_BINDINGS_VERSION;
|
2013-01-11 02:34:29 -08:00
|
|
|
e_config->config_version = E_CONFIG_FILE_VERSION;
|
|
|
|
|
|
|
|
/* limit values so they are sane */
|
|
|
|
E_CONFIG_LIMIT(e_config->menus_scroll_speed, 1.0, 20000.0);
|
|
|
|
E_CONFIG_LIMIT(e_config->show_splash, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->menus_fast_mouse_move_threshhold, 1.0, 2000.0);
|
|
|
|
E_CONFIG_LIMIT(e_config->menus_click_drag_timeout, 0.0, 10.0);
|
|
|
|
E_CONFIG_LIMIT(e_config->border_shade_animate, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->border_shade_transition, 0, 8);
|
|
|
|
E_CONFIG_LIMIT(e_config->border_shade_speed, 1.0, 20000.0);
|
|
|
|
E_CONFIG_LIMIT(e_config->framerate, 1.0, 200.0);
|
|
|
|
E_CONFIG_LIMIT(e_config->priority, 0, 19);
|
|
|
|
E_CONFIG_LIMIT(e_config->zone_desks_x_count, 1, 64);
|
|
|
|
E_CONFIG_LIMIT(e_config->zone_desks_y_count, 1, 64);
|
|
|
|
E_CONFIG_LIMIT(e_config->show_desktop_icons, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->edge_flip_dragging, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->window_placement_policy, E_WINDOW_PLACEMENT_SMART, E_WINDOW_PLACEMENT_MANUAL);
|
|
|
|
E_CONFIG_LIMIT(e_config->window_grouping, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->focus_policy, 0, 2);
|
|
|
|
E_CONFIG_LIMIT(e_config->focus_setting, 0, 3);
|
|
|
|
E_CONFIG_LIMIT(e_config->pass_click_on, 0, 1);
|
2014-01-30 09:44:17 -08:00
|
|
|
E_CONFIG_LIMIT(e_config->window_activehint_policy, E_ACTIVEHINT_POLICY_IGNORE, E_ACTIVEHINT_POLICY_LAST - 1);
|
2013-01-11 02:34:29 -08:00
|
|
|
E_CONFIG_LIMIT(e_config->always_click_to_raise, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->always_click_to_focus, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->use_auto_raise, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->auto_raise_delay, 0.0, 9.9);
|
|
|
|
E_CONFIG_LIMIT(e_config->use_resist, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->drag_resist, 0, 100);
|
|
|
|
E_CONFIG_LIMIT(e_config->desk_resist, 0, 100);
|
|
|
|
E_CONFIG_LIMIT(e_config->window_resist, 0, 100);
|
|
|
|
E_CONFIG_LIMIT(e_config->gadget_resist, 0, 100);
|
|
|
|
E_CONFIG_LIMIT(e_config->geometry_auto_move, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->geometry_auto_resize_limit, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->winlist_warp_while_selecting, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->winlist_warp_at_end, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->winlist_no_warp_on_direction, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->winlist_warp_speed, 0.0, 1.0);
|
|
|
|
E_CONFIG_LIMIT(e_config->winlist_scroll_animate, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->winlist_scroll_speed, 0.0, 1.0);
|
|
|
|
E_CONFIG_LIMIT(e_config->winlist_list_show_iconified, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->winlist_list_show_other_desk_iconified, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->winlist_list_show_other_screen_iconified, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->winlist_list_show_other_desk_windows, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->winlist_list_show_other_screen_windows, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->winlist_list_uncover_while_selecting, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->winlist_list_jump_desk_while_selecting, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->winlist_pos_align_x, 0.0, 1.0);
|
|
|
|
E_CONFIG_LIMIT(e_config->winlist_pos_align_y, 0.0, 1.0);
|
|
|
|
E_CONFIG_LIMIT(e_config->winlist_pos_size_w, 0.0, 1.0);
|
|
|
|
E_CONFIG_LIMIT(e_config->winlist_pos_size_h, 0.0, 1.0);
|
|
|
|
E_CONFIG_LIMIT(e_config->winlist_pos_min_w, 0, 4000);
|
|
|
|
E_CONFIG_LIMIT(e_config->winlist_pos_min_h, 0, 4000);
|
|
|
|
E_CONFIG_LIMIT(e_config->winlist_pos_max_w, 8, 4000);
|
|
|
|
E_CONFIG_LIMIT(e_config->winlist_pos_max_h, 8, 4000);
|
|
|
|
E_CONFIG_LIMIT(e_config->maximize_policy, E_MAXIMIZE_FULLSCREEN, E_MAXIMIZE_DIRECTION);
|
|
|
|
E_CONFIG_LIMIT(e_config->allow_manip, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->border_fix_on_shelf_toggle, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->allow_above_fullscreen, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->kill_if_close_not_possible, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->kill_process, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->kill_timer_wait, 0.0, 120.0);
|
|
|
|
E_CONFIG_LIMIT(e_config->ping_clients, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->move_info_follows, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->resize_info_follows, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->move_info_visible, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->resize_info_visible, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->focus_last_focused_per_desktop, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->focus_revert_on_hide_or_close, 0, 1);
|
2015-11-30 13:27:04 -08:00
|
|
|
E_CONFIG_LIMIT(e_config->focus_revert_allow_sticky, 0, 1);
|
2013-01-11 02:34:29 -08:00
|
|
|
E_CONFIG_LIMIT(e_config->pointer_slide, 0, 1);
|
2013-02-05 05:33:49 -08:00
|
|
|
E_CONFIG_LIMIT(e_config->disable_all_pointer_warps, 0, 1);
|
2013-02-05 06:22:54 -08:00
|
|
|
E_CONFIG_LIMIT(e_config->pointer_warp_speed, 0.0, 1.0);
|
2013-01-11 02:34:29 -08:00
|
|
|
E_CONFIG_LIMIT(e_config->show_cursor, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->use_e_cursor, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->cursor_size, 0, 1024);
|
|
|
|
E_CONFIG_LIMIT(e_config->menu_autoscroll_margin, 0, 50);
|
|
|
|
E_CONFIG_LIMIT(e_config->menu_autoscroll_cursor_margin, 0, 50);
|
|
|
|
E_CONFIG_LIMIT(e_config->menu_eap_name_show, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->menu_eap_generic_show, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->menu_eap_comment_show, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->use_app_icon, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->cnfmdlg_disabled, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->cfgdlg_auto_apply, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->cfgdlg_default_mode, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->font_hinting, 0, 2);
|
|
|
|
E_CONFIG_LIMIT(e_config->desklock_login_box_zone, -2, 1000);
|
|
|
|
E_CONFIG_LIMIT(e_config->desklock_autolock_screensaver, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->desklock_post_screensaver_time, 0.0, 300.0);
|
|
|
|
E_CONFIG_LIMIT(e_config->desklock_autolock_idle, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->desklock_autolock_idle_timeout, 1.0, 5400.0);
|
|
|
|
E_CONFIG_LIMIT(e_config->desklock_use_custom_desklock, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->desklock_ask_presentation, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->desklock_ask_presentation_timeout, 1.0, 300.0);
|
|
|
|
E_CONFIG_LIMIT(e_config->border_raise_on_mouse_action, 0, 1);
|
2013-12-01 07:19:59 -08:00
|
|
|
E_CONFIG_LIMIT(e_config->border_raise_on_focus, 0, 1);
|
2013-12-29 14:04:26 -08:00
|
|
|
E_CONFIG_LIMIT(e_config->raise_on_revert_focus, 0, 1);
|
2013-01-11 02:34:29 -08:00
|
|
|
E_CONFIG_LIMIT(e_config->desk_flip_wrap, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->fullscreen_flip, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->icon_theme_overrides, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->remember_internal_windows, 0, 3);
|
|
|
|
E_CONFIG_LIMIT(e_config->remember_internal_fm_windows, 0, 1);
|
2013-02-07 00:20:42 -08:00
|
|
|
E_CONFIG_LIMIT(e_config->remember_internal_fm_windows_globally, 0, 1);
|
2013-01-11 02:34:29 -08:00
|
|
|
E_CONFIG_LIMIT(e_config->desk_auto_switch, 0, 1);
|
|
|
|
|
|
|
|
E_CONFIG_LIMIT(e_config->screen_limits, 0, 2);
|
|
|
|
|
|
|
|
E_CONFIG_LIMIT(e_config->dpms_enable, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->dpms_standby_enable, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->dpms_suspend_enable, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->dpms_off_enable, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->dpms_standby_timeout, 30, 5400);
|
|
|
|
E_CONFIG_LIMIT(e_config->dpms_suspend_timeout, 30, 5400);
|
|
|
|
E_CONFIG_LIMIT(e_config->dpms_off_timeout, 30, 5400);
|
|
|
|
|
|
|
|
E_CONFIG_LIMIT(e_config->backlight.timer, 1, 3600);
|
|
|
|
|
|
|
|
E_CONFIG_LIMIT(e_config->screensaver_timeout, 30, 5400);
|
|
|
|
E_CONFIG_LIMIT(e_config->screensaver_interval, 0, 5400);
|
|
|
|
E_CONFIG_LIMIT(e_config->screensaver_blanking, 0, 2);
|
|
|
|
E_CONFIG_LIMIT(e_config->screensaver_expose, 0, 2);
|
|
|
|
E_CONFIG_LIMIT(e_config->screensaver_ask_presentation, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->screensaver_ask_presentation_timeout, 1.0, 300.0);
|
|
|
|
|
2014-01-20 13:08:14 -08:00
|
|
|
E_CONFIG_LIMIT(e_config->screensaver_wake_on_notify, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->screensaver_wake_on_urgent, 0, 1);
|
|
|
|
|
2013-01-11 02:34:29 -08:00
|
|
|
E_CONFIG_LIMIT(e_config->clientlist_group_by, 0, 2);
|
|
|
|
E_CONFIG_LIMIT(e_config->clientlist_include_all_zones, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->clientlist_separate_with, 0, 2);
|
|
|
|
E_CONFIG_LIMIT(e_config->clientlist_sort_by, 0, 3);
|
|
|
|
E_CONFIG_LIMIT(e_config->clientlist_separate_iconified_apps, 0, 2);
|
|
|
|
E_CONFIG_LIMIT(e_config->clientlist_warp_to_iconified_desktop, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->mouse_hand, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->clientlist_limit_caption_len, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->clientlist_max_caption_len, 2, E_CLIENTLIST_MAX_CAPTION_LEN);
|
|
|
|
|
2015-10-16 13:29:19 -07:00
|
|
|
E_CONFIG_LIMIT(e_config->mouse_accel_numerator, 1, 30);
|
2013-01-11 02:34:29 -08:00
|
|
|
E_CONFIG_LIMIT(e_config->mouse_accel_denominator, 1, 10);
|
2015-10-16 13:29:19 -07:00
|
|
|
E_CONFIG_LIMIT(e_config->mouse_accel_threshold, 0, 10);
|
2013-01-11 02:34:29 -08:00
|
|
|
|
|
|
|
E_CONFIG_LIMIT(e_config->menu_favorites_show, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->menu_apps_show, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->menu_gadcon_client_toplevel, 0, 1);
|
|
|
|
|
|
|
|
E_CONFIG_LIMIT(e_config->ping_clients_interval, 16, 1024);
|
|
|
|
|
|
|
|
E_CONFIG_LIMIT(e_config->mode.presentation, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->mode.offline, 0, 1);
|
|
|
|
|
|
|
|
E_CONFIG_LIMIT(e_config->exec.expire_timeout, 0.1, 1000);
|
|
|
|
E_CONFIG_LIMIT(e_config->exec.show_run_dialog, 0, 1);
|
|
|
|
E_CONFIG_LIMIT(e_config->exec.show_exit_dialog, 0, 1);
|
|
|
|
|
|
|
|
E_CONFIG_LIMIT(e_config->null_container_win, 0, 1);
|
|
|
|
|
|
|
|
E_CONFIG_LIMIT(e_config->powersave.none, 0.01, 5400.00);
|
|
|
|
E_CONFIG_LIMIT(e_config->powersave.low, 0.01, 5400.00);
|
|
|
|
E_CONFIG_LIMIT(e_config->powersave.medium, 0.01, 5400.00);
|
|
|
|
E_CONFIG_LIMIT(e_config->powersave.high, 0.01, 5400.00);
|
|
|
|
E_CONFIG_LIMIT(e_config->powersave.extreme, 0.01, 5400.00);
|
|
|
|
E_CONFIG_LIMIT(e_config->powersave.min, E_POWERSAVE_MODE_NONE, E_POWERSAVE_MODE_EXTREME);
|
|
|
|
E_CONFIG_LIMIT(e_config->powersave.max, E_POWERSAVE_MODE_NONE, E_POWERSAVE_MODE_EXTREME);
|
|
|
|
|
|
|
|
E_CONFIG_LIMIT(e_config->border_keyboard.move.dx, 1, 255);
|
|
|
|
E_CONFIG_LIMIT(e_config->border_keyboard.move.dy, 1, 255);
|
|
|
|
E_CONFIG_LIMIT(e_config->border_keyboard.resize.dx, 1, 255);
|
|
|
|
E_CONFIG_LIMIT(e_config->border_keyboard.resize.dy, 1, 255);
|
|
|
|
|
|
|
|
E_CONFIG_LIMIT(e_config->multiscreen_flip, 0, 1);
|
|
|
|
|
2015-06-05 06:13:23 -07:00
|
|
|
E_CONFIG_LIMIT(e_config->backlight.normal, 0.05, 1.0);
|
|
|
|
E_CONFIG_LIMIT(e_config->backlight.dim, 0.05, 1.0);
|
2015-10-14 07:22:19 -07:00
|
|
|
E_CONFIG_LIMIT(e_config->backlight.idle_dim, 0, 1);
|
2013-12-17 08:22:56 -08:00
|
|
|
|
(1) e_config.c/e_comp_wl.c: add code for making repeat values configurable
(2) e.src(s): add keyboard.repeat_delay, keyboard.repeat_rate into e.src files
Summary:
As of now, the default values of repeat delay/rate are being set in e_comp_wl.c.
Those values need to be configurable and will be used in e_comp_wl_init().
The limit of each of the values is defined from -1 to 1000. (maximum 1s).
If one of the two is negative, it means default repeat delay/rate are going to be used.
(e.g. delay:400, rate:25)
Test Plan:
N/A
Signed-off-by: Sung-Jin Park <input.hacker@gmail.com>
Reviewers: raster, stefan_schmidt, gwanglim, devilhorns, zmike
Subscribers: Jeon, ohduna, cedric
Differential Revision: https://phab.enlightenment.org/D3364
2015-11-30 11:05:10 -08:00
|
|
|
E_CONFIG_LIMIT(e_config->keyboard.repeat_delay, -1, 1000); // 1 second
|
|
|
|
E_CONFIG_LIMIT(e_config->keyboard.repeat_rate, -1, 1000); // 1 second
|
|
|
|
|
2013-01-11 02:34:29 -08:00
|
|
|
if (!e_config->icon_theme)
|
|
|
|
e_config->icon_theme = eina_stringshare_add("hicolor"); // FDO default
|
|
|
|
|
|
|
|
/* FIXME: disabled auto apply because it causes problems */
|
|
|
|
e_config->cfgdlg_auto_apply = 0;
|
|
|
|
|
|
|
|
ecore_event_add(E_EVENT_CONFIG_LOADED, NULL, NULL, NULL);
|
2004-11-24 19:37:45 -08:00
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API int
|
2004-11-24 19:37:45 -08:00
|
|
|
e_config_save(void)
|
|
|
|
{
|
2013-02-19 04:58:25 -08:00
|
|
|
E_FREE_FUNC(_e_config_save_defer, e_powersave_deferred_action_del);
|
2005-08-05 00:19:26 -07:00
|
|
|
_e_config_save_cb(NULL);
|
2004-12-04 23:43:51 -08:00
|
|
|
return e_config_domain_save("e", _e_config_edd, e_config);
|
2004-11-24 19:37:45 -08:00
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API void
|
2005-02-07 19:51:08 -08:00
|
|
|
e_config_save_flush(void)
|
|
|
|
{
|
2008-01-10 23:33:57 -08:00
|
|
|
if (_e_config_save_defer)
|
2005-02-07 19:51:08 -08:00
|
|
|
{
|
2012-06-28 05:19:36 -07:00
|
|
|
e_powersave_deferred_action_del(_e_config_save_defer);
|
|
|
|
_e_config_save_defer = NULL;
|
|
|
|
_e_config_save_cb(NULL);
|
2005-02-07 19:51:08 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API void
|
2004-11-24 19:37:45 -08:00
|
|
|
e_config_save_queue(void)
|
|
|
|
{
|
2008-01-10 23:33:57 -08:00
|
|
|
if (_e_config_save_defer)
|
|
|
|
e_powersave_deferred_action_del(_e_config_save_defer);
|
|
|
|
_e_config_save_defer = e_powersave_deferred_action_add(_e_config_save_cb,
|
2012-06-28 05:19:36 -07:00
|
|
|
NULL);
|
2004-11-24 19:37:45 -08:00
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API const char *
|
2005-07-22 03:28:11 -07:00
|
|
|
e_config_profile_get(void)
|
|
|
|
{
|
|
|
|
return _e_config_profile;
|
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API void
|
2008-02-12 20:51:01 -08:00
|
|
|
e_config_profile_set(const char *prof)
|
2005-07-22 03:28:11 -07:00
|
|
|
{
|
2012-06-28 06:22:13 -07:00
|
|
|
eina_stringshare_replace(&_e_config_profile, prof);
|
2008-01-10 23:33:57 -08:00
|
|
|
e_util_env_set("E_CONF_PROFILE", _e_config_profile);
|
2005-07-22 03:28:11 -07:00
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API char *
|
2008-10-25 01:53:44 -07:00
|
|
|
e_config_profile_dir_get(const char *prof)
|
|
|
|
{
|
|
|
|
char buf[PATH_MAX];
|
|
|
|
|
2009-04-13 07:56:38 -07:00
|
|
|
e_user_dir_snprintf(buf, sizeof(buf), "config/%s", prof);
|
2008-10-25 01:53:44 -07:00
|
|
|
if (ecore_file_is_dir(buf)) return strdup(buf);
|
2009-04-13 07:56:38 -07:00
|
|
|
e_prefix_data_snprintf(buf, sizeof(buf), "data/config/%s", prof);
|
2008-10-25 01:53:44 -07:00
|
|
|
if (ecore_file_is_dir(buf)) return strdup(buf);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2012-06-28 05:19:36 -07:00
|
|
|
static int
|
|
|
|
_cb_sort_files(char *f1, char *f2)
|
2008-10-26 02:11:49 -07:00
|
|
|
{
|
|
|
|
return strcmp(f1, f2);
|
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API Eina_List *
|
2005-07-22 03:28:11 -07:00
|
|
|
e_config_profile_list(void)
|
|
|
|
{
|
* estickies,
* etk,
* PROTO/exalt,
* E-MODULES-EXTRA/diskio,
* E-MODULES-EXTRA/drawer,
* E-MODULES-EXTRA/penguins,
* E-MODULES-EXTRA/slideshow,
* E-MODULES-EXTRA/mail,
* E-MODULES-EXTRA/forecasts,
* E-MODULES-EXTRA/iiirk,
* E-MODULES-EXTRA/places,
* e,
* ewl,
* ecore,
* elitaire,
* entrance,
* e_dbus,
* efreet: Here we go, move from Ecore_List to Eina_List.
NOTE: This patch is huge, I did test it a lot, and I hope nothing is
broken. But if you think something change after this commit, please
contact me ASAP.
SVN revision: 39200
2009-02-25 03:03:47 -08:00
|
|
|
Eina_List *files;
|
2009-04-06 05:59:58 -07:00
|
|
|
char buf[PATH_MAX], *p;
|
2008-10-22 04:49:33 -07:00
|
|
|
Eina_List *flist = NULL;
|
2009-04-13 07:56:38 -07:00
|
|
|
size_t len;
|
2009-04-06 05:59:58 -07:00
|
|
|
|
2009-04-13 07:56:38 -07:00
|
|
|
len = e_user_dir_concat_static(buf, "config");
|
|
|
|
if (len + 1 >= (int)sizeof(buf))
|
2009-04-06 05:59:58 -07:00
|
|
|
return NULL;
|
|
|
|
|
2009-04-13 07:56:38 -07:00
|
|
|
files = ecore_file_ls(buf);
|
|
|
|
|
|
|
|
buf[len] = '/';
|
|
|
|
len++;
|
|
|
|
|
2009-04-06 05:59:58 -07:00
|
|
|
p = buf + len;
|
|
|
|
len = sizeof(buf) - len;
|
2005-07-22 03:28:11 -07:00
|
|
|
if (files)
|
|
|
|
{
|
2012-06-28 05:19:36 -07:00
|
|
|
char *file;
|
|
|
|
|
|
|
|
files = eina_list_sort(files, 0, (Eina_Compare_Cb)_cb_sort_files);
|
|
|
|
EINA_LIST_FREE(files, file)
|
|
|
|
{
|
|
|
|
if (eina_strlcpy(p, file, len) >= len)
|
|
|
|
{
|
|
|
|
free(file);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if (ecore_file_is_dir(buf))
|
|
|
|
flist = eina_list_append(flist, file);
|
|
|
|
else
|
|
|
|
free(file);
|
|
|
|
}
|
2005-07-22 03:28:11 -07:00
|
|
|
}
|
2009-04-13 07:56:38 -07:00
|
|
|
len = e_prefix_data_concat_static(buf, "data/config");
|
|
|
|
if (len >= sizeof(buf))
|
2009-04-06 05:59:58 -07:00
|
|
|
return NULL;
|
|
|
|
|
2009-04-13 07:56:38 -07:00
|
|
|
files = ecore_file_ls(buf);
|
|
|
|
|
|
|
|
buf[len] = '/';
|
|
|
|
len++;
|
|
|
|
|
2009-04-06 05:59:58 -07:00
|
|
|
p = buf + len;
|
|
|
|
len = sizeof(buf) - len;
|
2008-10-25 01:53:44 -07:00
|
|
|
if (files)
|
|
|
|
{
|
2012-06-28 05:19:36 -07:00
|
|
|
char *file;
|
|
|
|
files = eina_list_sort(files, 0, (Eina_Compare_Cb)_cb_sort_files);
|
|
|
|
EINA_LIST_FREE(files, file)
|
|
|
|
{
|
|
|
|
if (eina_strlcpy(p, file, len) >= len)
|
|
|
|
{
|
|
|
|
free(file);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if (ecore_file_is_dir(buf))
|
|
|
|
{
|
|
|
|
const Eina_List *l;
|
|
|
|
const char *tmp;
|
|
|
|
EINA_LIST_FOREACH(flist, l, tmp)
|
|
|
|
if (!strcmp(file, tmp)) break;
|
|
|
|
|
|
|
|
if (!l) flist = eina_list_append(flist, file);
|
|
|
|
else free(file);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
free(file);
|
|
|
|
}
|
2008-10-25 01:53:44 -07:00
|
|
|
}
|
2005-07-22 03:28:11 -07:00
|
|
|
return flist;
|
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API void
|
2008-02-12 20:51:01 -08:00
|
|
|
e_config_profile_add(const char *prof)
|
2005-07-22 03:28:11 -07:00
|
|
|
{
|
|
|
|
char buf[4096];
|
2009-04-13 07:56:38 -07:00
|
|
|
if (e_user_dir_snprintf(buf, sizeof(buf), "config/%s", prof) >= sizeof(buf))
|
|
|
|
return;
|
2006-10-21 03:28:01 -07:00
|
|
|
ecore_file_mkdir(buf);
|
2005-07-22 03:28:11 -07:00
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API void
|
2008-02-12 20:51:01 -08:00
|
|
|
e_config_profile_del(const char *prof)
|
2005-07-22 03:28:11 -07:00
|
|
|
{
|
|
|
|
char buf[4096];
|
2009-04-13 07:56:38 -07:00
|
|
|
if (e_user_dir_snprintf(buf, sizeof(buf), "config/%s", prof) >= sizeof(buf))
|
|
|
|
return;
|
|
|
|
ecore_file_recursive_rm(buf);
|
2005-07-22 03:28:11 -07:00
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API void
|
2005-08-05 00:19:26 -07:00
|
|
|
e_config_save_block_set(int block)
|
|
|
|
{
|
2012-06-28 05:19:36 -07:00
|
|
|
_e_config_save_block = block;
|
2005-08-05 00:19:26 -07:00
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API int
|
2005-08-05 00:19:26 -07:00
|
|
|
e_config_save_block_get(void)
|
|
|
|
{
|
|
|
|
return _e_config_save_block;
|
|
|
|
}
|
2005-07-22 03:28:11 -07:00
|
|
|
|
2012-10-11 06:23:14 -07:00
|
|
|
/**
|
2012-07-06 03:53:22 -07:00
|
|
|
* Loads configurations from file located in the working profile
|
2012-10-11 06:23:14 -07:00
|
|
|
* The configurations are stored in a struct declated by the
|
|
|
|
* macros E_CONFIG_DD_NEW and E_CONFIG_<b>TYPE</b>
|
2012-07-06 03:53:22 -07:00
|
|
|
*
|
|
|
|
* @param domain of the configuration file.
|
2012-10-11 06:23:14 -07:00
|
|
|
* @param edd to struct definition
|
2012-07-06 03:53:22 -07:00
|
|
|
* @return returns allocated struct on success, if unable to find config returns null
|
|
|
|
*/
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API void *
|
2008-02-12 20:51:01 -08:00
|
|
|
e_config_domain_load(const char *domain, E_Config_DD *edd)
|
2004-11-24 19:37:45 -08:00
|
|
|
{
|
2004-12-04 23:43:51 -08:00
|
|
|
Eet_File *ef;
|
|
|
|
char buf[4096];
|
|
|
|
void *data = NULL;
|
2009-07-06 02:43:58 -07:00
|
|
|
int i;
|
2005-02-07 05:51:09 -08:00
|
|
|
|
2009-04-13 07:56:38 -07:00
|
|
|
e_user_dir_snprintf(buf, sizeof(buf), "config/%s/%s.cfg",
|
2012-06-28 05:19:36 -07:00
|
|
|
_e_config_profile, domain);
|
2004-12-04 23:43:51 -08:00
|
|
|
ef = eet_open(buf, EET_FILE_MODE_READ);
|
|
|
|
if (ef)
|
2004-11-24 19:37:45 -08:00
|
|
|
{
|
2012-06-28 05:19:36 -07:00
|
|
|
data = eet_data_read(ef, edd, "config");
|
|
|
|
eet_close(ef);
|
2009-07-06 02:43:58 -07:00
|
|
|
if (data) return data;
|
|
|
|
}
|
2010-08-14 03:21:03 -07:00
|
|
|
|
2011-01-02 20:41:05 -08:00
|
|
|
for (i = 1; i <= _e_config_revisions; i++)
|
2009-07-06 02:43:58 -07:00
|
|
|
{
|
|
|
|
e_user_dir_snprintf(buf, sizeof(buf), "config/%s/%s.%i.cfg",
|
|
|
|
_e_config_profile, domain, i);
|
|
|
|
ef = eet_open(buf, EET_FILE_MODE_READ);
|
|
|
|
if (ef)
|
|
|
|
{
|
|
|
|
data = eet_data_read(ef, edd, "config");
|
|
|
|
eet_close(ef);
|
|
|
|
if (data) return data;
|
|
|
|
}
|
2004-11-24 19:37:45 -08:00
|
|
|
}
|
2008-11-20 01:01:23 -08:00
|
|
|
return e_config_domain_system_load(domain, edd);
|
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API void *
|
2008-11-20 01:01:23 -08:00
|
|
|
e_config_domain_system_load(const char *domain, E_Config_DD *edd)
|
|
|
|
{
|
|
|
|
Eet_File *ef;
|
|
|
|
char buf[4096];
|
|
|
|
void *data = NULL;
|
2008-03-31 08:49:19 -07:00
|
|
|
|
2009-04-13 07:56:38 -07:00
|
|
|
e_prefix_data_snprintf(buf, sizeof(buf), "data/config/%s/%s.cfg",
|
2012-06-28 05:19:36 -07:00
|
|
|
_e_config_profile, domain);
|
2008-03-31 08:49:19 -07:00
|
|
|
ef = eet_open(buf, EET_FILE_MODE_READ);
|
|
|
|
if (ef)
|
|
|
|
{
|
2012-06-28 05:19:36 -07:00
|
|
|
data = eet_data_read(ef, edd, "config");
|
|
|
|
eet_close(ef);
|
2008-03-31 08:49:19 -07:00
|
|
|
return data;
|
|
|
|
}
|
|
|
|
|
2004-12-04 23:43:51 -08:00
|
|
|
return data;
|
2004-11-24 19:37:45 -08:00
|
|
|
}
|
|
|
|
|
2011-01-02 20:52:48 -08:00
|
|
|
static void
|
|
|
|
_e_config_mv_error(const char *from, const char *to)
|
|
|
|
{
|
compositor rewrite / charlie-foxtrot situation
huge fustercluck commit because there wasn't really a way to separate out the changes. better to just rip it all out at once.
* compositor and window management completely rewritten. this was the goal for E19, but it pretty much required everything existing to be scrapped since it wasn't optimized, streamlined, or sensible. now instead of having the compositor strapped to the window manager like an outboard motor, it's housed more like an automobile engine.
** various comp structs have been merged into other places (eg. E_Comp_Zone is now just part of E_Zone where applicable), leading to a large deduplication of attributes
** awful E_Comp_Win is totally dead, having been replaced with e_comp_object smart objects which work just like normal canvas objects
** protocol-specific window management and compositor functionality is now kept exclusively in backend files
** e_pixmap api provides generic client finding and rendering api
** screen/xinerama screens are now provided directly by compositor on startup and re-set on change
** e_comp_render_update finally replaced with eina_tiler
** wayland compositor no longer creates X windows
** compositor e_layout removed entirely
* e_container is gone. this was made unnecessary in E18, but I kept it to avoid having too much code churn in one release. its sole purpose was to catch some events and handle window stacking, both of which are now just done by the compositor infra
* e_manager is just for screensaver and keybind stuff now, possibly remove later?
* e_border is gone along with a lot of its api. e_client has replaced it, and e_client has been rewritten completely; some parts may be similar, but the design now relies upon having a functional compositor
** window configuration/focus functions are all removed. all windows are now managed solely with evas_object_X functions on the "frame" member of a client, just as any other canvas object can be managed.
*** do NOT set interceptors on a client's comp_object. seriously.
* startup order rewritten: compositor now starts much earlier, other things just use attrs and members of the compositor
* ecore_x_pointer_xy_get usage replaced with ecore_evas_pointer_xy_get
* e_popup is totally gone, existing usage replaced by e_comp_object_util_add where applicable, otherwise just placed normally on the canvas
* deskmirror is (more) broken for now
* illume is totally fucked
* Ecore_X_Window replaced with Ecore_Window in most cases
* edge binding XWindows replaced with regular canvas objects
* some E_Win functionality has changed such that delete callbacks are now correctly called in ALL cases. various dialogs have been updated to not crash as a result
comp files and descriptions:
e_comp.c - overall compositor functions, rendering/update loop, shape cutting
e_comp_x.c - X window management and compositor functionality
e_comp_wl.c - Wayland surface management and compositor functionality
e_comp_canvas.c - general compositor canvas functions and utilities
e_comp_object.c - E_Client->frame member for managing clients as Evas_Objects, utility functions for adding objects to the compositor rendering systems
additional authors: ivan.briano@intel.com
feature: new compositor
removal: e_border, e_container, e_popup
2014-01-14 17:19:12 -08:00
|
|
|
E_Dialog *dia;
|
|
|
|
char buf[8192];
|
|
|
|
|
|
|
|
if (_e_config_error_dialog) return;
|
|
|
|
|
|
|
|
dia = e_dialog_new(NULL, "E", "_sys_error_logout_slow");
|
|
|
|
EINA_SAFETY_ON_NULL_RETURN(dia);
|
|
|
|
|
|
|
|
e_dialog_title_set(dia, _("Enlightenment Settings Write Problems"));
|
|
|
|
e_dialog_icon_set(dia, "dialog-error", 64);
|
|
|
|
snprintf(buf, sizeof(buf),
|
|
|
|
_("Enlightenment has had an error while moving config files<br>"
|
|
|
|
"from:<br>"
|
|
|
|
"%s<br>"
|
|
|
|
"<br>"
|
|
|
|
"to:<br>"
|
|
|
|
"%s<br>"
|
|
|
|
"<br>"
|
|
|
|
"The rest of the write has been aborted for safety.<br>"),
|
|
|
|
from, to);
|
|
|
|
e_dialog_text_set(dia, buf);
|
|
|
|
e_dialog_button_add(dia, _("OK"), NULL, NULL, NULL);
|
|
|
|
e_dialog_button_focus_num(dia, 0);
|
2014-11-02 18:35:13 -08:00
|
|
|
elm_win_center(dia->win, 1, 1);
|
compositor rewrite / charlie-foxtrot situation
huge fustercluck commit because there wasn't really a way to separate out the changes. better to just rip it all out at once.
* compositor and window management completely rewritten. this was the goal for E19, but it pretty much required everything existing to be scrapped since it wasn't optimized, streamlined, or sensible. now instead of having the compositor strapped to the window manager like an outboard motor, it's housed more like an automobile engine.
** various comp structs have been merged into other places (eg. E_Comp_Zone is now just part of E_Zone where applicable), leading to a large deduplication of attributes
** awful E_Comp_Win is totally dead, having been replaced with e_comp_object smart objects which work just like normal canvas objects
** protocol-specific window management and compositor functionality is now kept exclusively in backend files
** e_pixmap api provides generic client finding and rendering api
** screen/xinerama screens are now provided directly by compositor on startup and re-set on change
** e_comp_render_update finally replaced with eina_tiler
** wayland compositor no longer creates X windows
** compositor e_layout removed entirely
* e_container is gone. this was made unnecessary in E18, but I kept it to avoid having too much code churn in one release. its sole purpose was to catch some events and handle window stacking, both of which are now just done by the compositor infra
* e_manager is just for screensaver and keybind stuff now, possibly remove later?
* e_border is gone along with a lot of its api. e_client has replaced it, and e_client has been rewritten completely; some parts may be similar, but the design now relies upon having a functional compositor
** window configuration/focus functions are all removed. all windows are now managed solely with evas_object_X functions on the "frame" member of a client, just as any other canvas object can be managed.
*** do NOT set interceptors on a client's comp_object. seriously.
* startup order rewritten: compositor now starts much earlier, other things just use attrs and members of the compositor
* ecore_x_pointer_xy_get usage replaced with ecore_evas_pointer_xy_get
* e_popup is totally gone, existing usage replaced by e_comp_object_util_add where applicable, otherwise just placed normally on the canvas
* deskmirror is (more) broken for now
* illume is totally fucked
* Ecore_X_Window replaced with Ecore_Window in most cases
* edge binding XWindows replaced with regular canvas objects
* some E_Win functionality has changed such that delete callbacks are now correctly called in ALL cases. various dialogs have been updated to not crash as a result
comp files and descriptions:
e_comp.c - overall compositor functions, rendering/update loop, shape cutting
e_comp_x.c - X window management and compositor functionality
e_comp_wl.c - Wayland surface management and compositor functionality
e_comp_canvas.c - general compositor canvas functions and utilities
e_comp_object.c - E_Client->frame member for managing clients as Evas_Objects, utility functions for adding objects to the compositor rendering systems
additional authors: ivan.briano@intel.com
feature: new compositor
removal: e_border, e_container, e_popup
2014-01-14 17:19:12 -08:00
|
|
|
e_object_del_attach_func_set(E_OBJECT(dia),
|
|
|
|
_e_config_error_dialog_cb_delete);
|
|
|
|
e_dialog_show(dia);
|
|
|
|
_e_config_error_dialog = dia;
|
2011-01-02 20:52:48 -08:00
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API int
|
2005-08-05 00:19:26 -07:00
|
|
|
e_config_profile_save(void)
|
2004-11-24 19:37:45 -08:00
|
|
|
{
|
2004-12-04 23:43:51 -08:00
|
|
|
Eet_File *ef;
|
2006-08-14 23:47:22 -07:00
|
|
|
char buf[4096], buf2[4096];
|
2004-12-04 23:43:51 -08:00
|
|
|
int ok = 0;
|
2005-02-07 05:51:09 -08:00
|
|
|
|
2005-08-05 00:19:26 -07:00
|
|
|
/* FIXME: check for other sessions fo E running */
|
2009-04-13 07:56:38 -07:00
|
|
|
e_user_dir_concat_static(buf, "config/profile.cfg");
|
|
|
|
e_user_dir_concat_static(buf2, "config/profile.cfg.tmp");
|
2005-10-05 12:02:41 -07:00
|
|
|
|
2006-08-14 23:47:22 -07:00
|
|
|
ef = eet_open(buf2, EET_FILE_MODE_WRITE);
|
2005-07-22 03:28:11 -07:00
|
|
|
if (ef)
|
|
|
|
{
|
2012-06-28 05:19:36 -07:00
|
|
|
ok = eet_write(ef, "config", _e_config_profile,
|
|
|
|
strlen(_e_config_profile), 0);
|
|
|
|
if (_e_config_eet_close_handle(ef, buf2))
|
|
|
|
{
|
|
|
|
Eina_Bool ret = EINA_TRUE;
|
2010-08-14 03:21:03 -07:00
|
|
|
|
2009-07-06 02:43:58 -07:00
|
|
|
if (_e_config_revisions > 0)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
char bsrc[4096], bdst[4096];
|
2010-08-14 03:21:03 -07:00
|
|
|
|
2009-07-06 02:43:58 -07:00
|
|
|
for (i = _e_config_revisions; i > 1; i--)
|
|
|
|
{
|
|
|
|
e_user_dir_snprintf(bsrc, sizeof(bsrc), "config/profile.%i.cfg", i - 1);
|
|
|
|
e_user_dir_snprintf(bdst, sizeof(bdst), "config/profile.%i.cfg", i);
|
2011-11-03 03:54:33 -07:00
|
|
|
if ((ecore_file_exists(bsrc)) &&
|
2011-11-14 23:39:24 -08:00
|
|
|
(ecore_file_size(bsrc)))
|
2011-01-02 20:41:05 -08:00
|
|
|
{
|
2011-01-02 20:52:48 -08:00
|
|
|
ret = ecore_file_mv(bsrc, bdst);
|
|
|
|
if (!ret)
|
|
|
|
{
|
|
|
|
_e_config_mv_error(bsrc, bdst);
|
|
|
|
break;
|
|
|
|
}
|
2011-01-02 20:41:05 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
if (ret)
|
|
|
|
{
|
|
|
|
e_user_dir_snprintf(bsrc, sizeof(bsrc), "config/profile.cfg");
|
|
|
|
e_user_dir_snprintf(bdst, sizeof(bdst), "config/profile.1.cfg");
|
2016-02-29 07:09:58 -08:00
|
|
|
ecore_file_mv(bsrc, bdst);
|
2011-07-04 02:43:29 -07:00
|
|
|
// if (!ret)
|
|
|
|
// _e_config_mv_error(bsrc, bdst);
|
2009-07-06 02:43:58 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
ret = ecore_file_mv(buf2, buf);
|
2012-06-28 05:19:36 -07:00
|
|
|
if (!ret) _e_config_mv_error(buf2, buf);
|
|
|
|
}
|
|
|
|
ecore_file_unlink(buf2);
|
2005-07-22 03:28:11 -07:00
|
|
|
}
|
2005-08-05 00:19:26 -07:00
|
|
|
return ok;
|
|
|
|
}
|
|
|
|
|
2012-10-11 06:23:14 -07:00
|
|
|
/**
|
|
|
|
* Saves configurations to file located in the working profile
|
|
|
|
* The configurations are read from a struct declated by the
|
|
|
|
* macros E_CONFIG_DD_NEW and E_CONFIG_<b>TYPE</b>
|
|
|
|
*
|
2012-07-06 03:53:22 -07:00
|
|
|
* @param domain name of the configuration file.
|
|
|
|
* @param edd pointer to struct definition
|
2012-10-11 06:23:14 -07:00
|
|
|
* @param data struct to save as configuration file
|
2012-07-06 03:53:22 -07:00
|
|
|
* @return 1 if save success, 0 on failure
|
|
|
|
*/
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API int
|
2008-02-12 20:51:01 -08:00
|
|
|
e_config_domain_save(const char *domain, E_Config_DD *edd, const void *data)
|
2005-08-05 00:19:26 -07:00
|
|
|
{
|
|
|
|
Eet_File *ef;
|
2006-08-14 23:47:22 -07:00
|
|
|
char buf[4096], buf2[4096];
|
2007-10-02 10:25:27 -07:00
|
|
|
int ok = 0, ret;
|
2009-04-13 07:56:38 -07:00
|
|
|
size_t len, len2;
|
2005-08-05 00:19:26 -07:00
|
|
|
|
|
|
|
if (_e_config_save_block) return 0;
|
|
|
|
/* FIXME: check for other sessions fo E running */
|
2009-04-13 07:56:38 -07:00
|
|
|
len = e_user_dir_snprintf(buf, sizeof(buf), "config/%s", _e_config_profile);
|
|
|
|
if (len + 1 >= sizeof(buf)) return 0;
|
|
|
|
|
2006-10-21 03:28:01 -07:00
|
|
|
ecore_file_mkdir(buf);
|
2009-04-13 07:56:38 -07:00
|
|
|
|
|
|
|
buf[len] = '/';
|
|
|
|
len++;
|
|
|
|
|
2010-01-30 14:11:11 -08:00
|
|
|
len2 = eina_strlcpy(buf + len, domain, sizeof(buf) - len);
|
2009-04-13 07:56:38 -07:00
|
|
|
if (len2 + sizeof(".cfg") >= sizeof(buf) - len) return 0;
|
|
|
|
|
|
|
|
len += len2;
|
|
|
|
|
|
|
|
memcpy(buf + len, ".cfg", sizeof(".cfg"));
|
|
|
|
len += sizeof(".cfg") - 1;
|
|
|
|
|
|
|
|
if (len + sizeof(".tmp") >= sizeof(buf)) return 0;
|
|
|
|
memcpy(buf2, buf, len);
|
|
|
|
memcpy(buf2 + len, ".tmp", sizeof(".tmp"));
|
|
|
|
|
2006-08-14 23:59:55 -07:00
|
|
|
ef = eet_open(buf2, EET_FILE_MODE_WRITE);
|
2004-12-04 23:43:51 -08:00
|
|
|
if (ef)
|
|
|
|
{
|
2012-06-28 05:19:36 -07:00
|
|
|
ok = eet_data_write(ef, edd, "config", data, 1);
|
|
|
|
if (_e_config_eet_close_handle(ef, buf2))
|
|
|
|
{
|
2009-07-06 02:43:58 -07:00
|
|
|
if (_e_config_revisions > 0)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
char bsrc[4096], bdst[4096];
|
2010-08-14 03:21:03 -07:00
|
|
|
|
2009-07-06 02:43:58 -07:00
|
|
|
for (i = _e_config_revisions; i > 1; i--)
|
|
|
|
{
|
|
|
|
e_user_dir_snprintf(bsrc, sizeof(bsrc), "config/%s/%s.%i.cfg", _e_config_profile, domain, i - 1);
|
|
|
|
e_user_dir_snprintf(bdst, sizeof(bdst), "config/%s/%s.%i.cfg", _e_config_profile, domain, i);
|
2011-11-03 03:54:33 -07:00
|
|
|
if ((ecore_file_exists(bsrc)) &&
|
2011-11-14 23:39:24 -08:00
|
|
|
(ecore_file_size(bsrc)))
|
2011-11-03 03:54:33 -07:00
|
|
|
{
|
|
|
|
ecore_file_mv(bsrc, bdst);
|
|
|
|
}
|
2009-07-06 02:43:58 -07:00
|
|
|
}
|
|
|
|
e_user_dir_snprintf(bsrc, sizeof(bsrc), "config/%s/%s.cfg", _e_config_profile, domain);
|
|
|
|
e_user_dir_snprintf(bdst, sizeof(bdst), "config/%s/%s.1.cfg", _e_config_profile, domain);
|
|
|
|
ecore_file_mv(bsrc, bdst);
|
|
|
|
}
|
2012-06-28 05:19:36 -07:00
|
|
|
ret = ecore_file_mv(buf2, buf);
|
|
|
|
if (!ret)
|
|
|
|
ERR("*** Error saving config. ***");
|
|
|
|
}
|
|
|
|
ecore_file_unlink(buf2);
|
2004-12-04 23:43:51 -08:00
|
|
|
}
|
|
|
|
return ok;
|
2004-11-24 19:37:45 -08:00
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API E_Config_Binding_Mouse *
|
2005-05-04 23:45:47 -07:00
|
|
|
e_config_binding_mouse_match(E_Config_Binding_Mouse *eb_in)
|
|
|
|
{
|
2008-10-22 04:49:33 -07:00
|
|
|
Eina_List *l;
|
2009-08-21 08:08:49 -07:00
|
|
|
E_Config_Binding_Mouse *eb;
|
|
|
|
|
2013-02-01 02:21:54 -08:00
|
|
|
EINA_LIST_FOREACH(e_bindings->mouse_bindings, l, eb)
|
2005-05-04 23:45:47 -07:00
|
|
|
{
|
2012-06-28 05:19:36 -07:00
|
|
|
if ((eb->context == eb_in->context) &&
|
|
|
|
(eb->button == eb_in->button) &&
|
|
|
|
(eb->modifiers == eb_in->modifiers) &&
|
|
|
|
(eb->any_mod == eb_in->any_mod) &&
|
|
|
|
(((eb->action) && (eb_in->action) && (!strcmp(eb->action, eb_in->action))) ||
|
|
|
|
((!eb->action) && (!eb_in->action))) &&
|
|
|
|
(((eb->params) && (eb_in->params) && (!strcmp(eb->params, eb_in->params))) ||
|
|
|
|
((!eb->params) && (!eb_in->params))))
|
|
|
|
return eb;
|
2005-05-04 23:45:47 -07:00
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API E_Config_Binding_Key *
|
2005-05-04 23:45:47 -07:00
|
|
|
e_config_binding_key_match(E_Config_Binding_Key *eb_in)
|
|
|
|
{
|
2008-10-22 04:49:33 -07:00
|
|
|
Eina_List *l;
|
2009-08-21 08:08:49 -07:00
|
|
|
E_Config_Binding_Key *eb;
|
2010-08-14 03:21:03 -07:00
|
|
|
|
2013-02-01 02:21:54 -08:00
|
|
|
EINA_LIST_FOREACH(e_bindings->mouse_bindings, l, eb)
|
2005-05-04 23:45:47 -07:00
|
|
|
{
|
2012-06-28 05:19:36 -07:00
|
|
|
if ((eb->context == eb_in->context) &&
|
|
|
|
(eb->modifiers == eb_in->modifiers) &&
|
|
|
|
(eb->any_mod == eb_in->any_mod) &&
|
|
|
|
(((eb->key) && (eb_in->key) && (!strcmp(eb->key, eb_in->key))) ||
|
|
|
|
((!eb->key) && (!eb_in->key))) &&
|
|
|
|
(((eb->action) && (eb_in->action) && (!strcmp(eb->action, eb_in->action))) ||
|
|
|
|
((!eb->action) && (!eb_in->action))) &&
|
|
|
|
(((eb->params) && (eb_in->params) && (!strcmp(eb->params, eb_in->params))) ||
|
|
|
|
((!eb->params) && (!eb_in->params))))
|
|
|
|
return eb;
|
2005-09-22 13:20:34 -07:00
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API E_Config_Binding_Edge *
|
2009-02-25 14:21:46 -08:00
|
|
|
e_config_binding_edge_match(E_Config_Binding_Edge *eb_in)
|
|
|
|
{
|
|
|
|
Eina_List *l;
|
2009-08-21 08:08:49 -07:00
|
|
|
E_Config_Binding_Edge *eb;
|
2010-08-14 03:21:03 -07:00
|
|
|
|
2013-02-01 02:21:54 -08:00
|
|
|
EINA_LIST_FOREACH(e_bindings->edge_bindings, l, eb)
|
2009-02-25 14:21:46 -08:00
|
|
|
{
|
2012-06-28 05:19:36 -07:00
|
|
|
if ((eb->context == eb_in->context) &&
|
|
|
|
(eb->modifiers == eb_in->modifiers) &&
|
|
|
|
(eb->any_mod == eb_in->any_mod) &&
|
|
|
|
(eb->edge == eb_in->edge) &&
|
|
|
|
(eb->delay == eb_in->delay) &&
|
2013-02-05 05:13:33 -08:00
|
|
|
(eb->drag_only == eb_in->drag_only) &&
|
2012-06-28 05:19:36 -07:00
|
|
|
(((eb->action) && (eb_in->action) && (!strcmp(eb->action, eb_in->action))) ||
|
|
|
|
((!eb->action) && (!eb_in->action))) &&
|
|
|
|
(((eb->params) && (eb_in->params) && (!strcmp(eb->params, eb_in->params))) ||
|
|
|
|
((!eb->params) && (!eb_in->params))))
|
|
|
|
return eb;
|
2009-02-25 14:21:46 -08:00
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API E_Config_Binding_Signal *
|
2005-09-22 13:20:34 -07:00
|
|
|
e_config_binding_signal_match(E_Config_Binding_Signal *eb_in)
|
|
|
|
{
|
2008-10-22 04:49:33 -07:00
|
|
|
Eina_List *l;
|
2009-08-21 08:08:49 -07:00
|
|
|
E_Config_Binding_Signal *eb;
|
2010-08-14 03:21:03 -07:00
|
|
|
|
2013-02-01 02:21:54 -08:00
|
|
|
EINA_LIST_FOREACH(e_bindings->signal_bindings, l, eb)
|
2005-09-22 13:20:34 -07:00
|
|
|
{
|
2012-06-28 05:19:36 -07:00
|
|
|
if ((eb->context == eb_in->context) &&
|
|
|
|
(eb->modifiers == eb_in->modifiers) &&
|
|
|
|
(eb->any_mod == eb_in->any_mod) &&
|
|
|
|
(((eb->signal) && (eb_in->signal) && (!strcmp(eb->signal, eb_in->signal))) ||
|
|
|
|
((!eb->signal) && (!eb_in->signal))) &&
|
|
|
|
(((eb->source) && (eb_in->source) && (!strcmp(eb->source, eb_in->source))) ||
|
|
|
|
((!eb->source) && (!eb_in->source))) &&
|
|
|
|
(((eb->action) && (eb_in->action) && (!strcmp(eb->action, eb_in->action))) ||
|
|
|
|
((!eb->action) && (!eb_in->action))) &&
|
|
|
|
(((eb->params) && (eb_in->params) && (!strcmp(eb->params, eb_in->params))) ||
|
|
|
|
((!eb->params) && (!eb_in->params))))
|
|
|
|
return eb;
|
2005-09-22 13:20:34 -07:00
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API E_Config_Binding_Wheel *
|
2005-09-22 13:20:34 -07:00
|
|
|
e_config_binding_wheel_match(E_Config_Binding_Wheel *eb_in)
|
|
|
|
{
|
2008-10-22 04:49:33 -07:00
|
|
|
Eina_List *l;
|
2009-08-21 08:08:49 -07:00
|
|
|
E_Config_Binding_Wheel *eb;
|
2010-05-29 12:57:13 -07:00
|
|
|
|
2013-02-01 02:21:54 -08:00
|
|
|
EINA_LIST_FOREACH(e_bindings->wheel_bindings, l, eb)
|
2005-09-22 13:20:34 -07:00
|
|
|
{
|
2012-06-28 05:19:36 -07:00
|
|
|
if ((eb->context == eb_in->context) &&
|
|
|
|
(eb->direction == eb_in->direction) &&
|
|
|
|
(eb->z == eb_in->z) &&
|
|
|
|
(eb->modifiers == eb_in->modifiers) &&
|
|
|
|
(eb->any_mod == eb_in->any_mod) &&
|
|
|
|
(((eb->action) && (eb_in->action) && (!strcmp(eb->action, eb_in->action))) ||
|
|
|
|
((!eb->action) && (!eb_in->action))) &&
|
|
|
|
(((eb->params) && (eb_in->params) && (!strcmp(eb->params, eb_in->params))) ||
|
|
|
|
((!eb->params) && (!eb_in->params))))
|
|
|
|
return eb;
|
2010-05-29 12:57:13 -07:00
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API E_Config_Binding_Acpi *
|
2010-08-14 03:21:03 -07:00
|
|
|
e_config_binding_acpi_match(E_Config_Binding_Acpi *eb_in)
|
2010-05-29 12:57:13 -07:00
|
|
|
{
|
|
|
|
Eina_List *l;
|
|
|
|
E_Config_Binding_Acpi *eb;
|
|
|
|
|
2013-02-01 02:21:54 -08:00
|
|
|
EINA_LIST_FOREACH(e_bindings->acpi_bindings, l, eb)
|
2010-05-29 12:57:13 -07:00
|
|
|
{
|
2012-06-28 05:19:36 -07:00
|
|
|
if ((eb->context == eb_in->context) &&
|
|
|
|
(eb->type == eb_in->type) &&
|
|
|
|
(eb->status == eb_in->status) &&
|
|
|
|
(((eb->action) && (eb_in->action) &&
|
|
|
|
(!strcmp(eb->action, eb_in->action))) ||
|
|
|
|
((!eb->action) && (!eb_in->action))) &&
|
|
|
|
(((eb->params) && (eb_in->params) &&
|
|
|
|
(!strcmp(eb->params, eb_in->params))) ||
|
|
|
|
((!eb->params) && (!eb_in->params))))
|
|
|
|
return eb;
|
2005-05-04 23:45:47 -07:00
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API void
|
add "modes" configuration, now "presentation" and "offline".
They are presented as a submenu with check items. Need to implement
support in modules, so they'll check for these variables.
DESIGNERS: could you please provide the following icons:
* preferences-modes: contain the other icons
* preferences-modes-presentation: system is in presentation mode,
no screensaver, locks and dpms will be available.
* preferences-modes-offline: system is offline, modules that keep
polling internet services (weather, forecasts, ...) should stop
and show "I'm offline" emblem. When network systems (network
manager, connman, exhalt...) are integrated, they will change
this state as well.
SVN revision: 40375
2009-04-25 09:07:45 -07:00
|
|
|
e_config_mode_changed(void)
|
|
|
|
{
|
|
|
|
ecore_event_add(E_EVENT_CONFIG_MODE_CHANGED, NULL, NULL, NULL);
|
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API void
|
2013-02-01 02:35:33 -08:00
|
|
|
e_config_binding_acpi_free(E_Config_Binding_Acpi *eba)
|
|
|
|
{
|
|
|
|
if (!eba) return;
|
|
|
|
eina_stringshare_del(eba->action);
|
|
|
|
eina_stringshare_del(eba->params);
|
|
|
|
free(eba);
|
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API void
|
2013-02-01 02:35:33 -08:00
|
|
|
e_config_binding_key_free(E_Config_Binding_Key *ebk)
|
|
|
|
{
|
|
|
|
if (!ebk) return;
|
|
|
|
eina_stringshare_del(ebk->key);
|
|
|
|
eina_stringshare_del(ebk->action);
|
|
|
|
eina_stringshare_del(ebk->params);
|
|
|
|
free(ebk);
|
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API void
|
2013-02-01 02:35:33 -08:00
|
|
|
e_config_binding_edge_free(E_Config_Binding_Edge *ebe)
|
|
|
|
{
|
|
|
|
if (!ebe) return;
|
|
|
|
eina_stringshare_del(ebe->action);
|
|
|
|
eina_stringshare_del(ebe->params);
|
|
|
|
free(ebe);
|
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API void
|
2013-02-01 02:35:33 -08:00
|
|
|
e_config_binding_mouse_free(E_Config_Binding_Mouse *ebm)
|
|
|
|
{
|
|
|
|
if (!ebm) return;
|
|
|
|
eina_stringshare_del(ebm->action);
|
|
|
|
eina_stringshare_del(ebm->params);
|
|
|
|
free(ebm);
|
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API void
|
2013-02-01 02:35:33 -08:00
|
|
|
e_config_binding_wheel_free(E_Config_Binding_Wheel *ebw)
|
|
|
|
{
|
|
|
|
if (!ebw) return;
|
|
|
|
eina_stringshare_del(ebw->action);
|
|
|
|
eina_stringshare_del(ebw->params);
|
|
|
|
free(ebw);
|
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API void
|
2013-02-01 02:35:33 -08:00
|
|
|
e_config_binding_signal_free(E_Config_Binding_Signal *ebs)
|
|
|
|
{
|
|
|
|
if (!ebs) return;
|
|
|
|
eina_stringshare_del(ebs->signal);
|
|
|
|
eina_stringshare_del(ebs->source);
|
|
|
|
eina_stringshare_del(ebs->action);
|
|
|
|
eina_stringshare_del(ebs->params);
|
|
|
|
free(ebs);
|
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API void
|
2013-02-01 02:35:33 -08:00
|
|
|
e_config_bindings_free(E_Config_Bindings *ecb)
|
|
|
|
{
|
|
|
|
if (!ecb) return;
|
|
|
|
E_FREE_LIST(ecb->mouse_bindings, e_config_binding_mouse_free);
|
|
|
|
E_FREE_LIST(ecb->key_bindings, e_config_binding_key_free);
|
|
|
|
E_FREE_LIST(ecb->edge_bindings, e_config_binding_edge_free);
|
|
|
|
E_FREE_LIST(ecb->signal_bindings, e_config_binding_signal_free);
|
|
|
|
E_FREE_LIST(ecb->wheel_bindings, e_config_binding_wheel_free);
|
|
|
|
E_FREE_LIST(ecb->acpi_bindings, e_config_binding_acpi_free);
|
|
|
|
free(ecb);
|
|
|
|
}
|
|
|
|
|
2004-12-04 23:43:51 -08:00
|
|
|
/* local subsystem functions */
|
2008-01-10 23:33:57 -08:00
|
|
|
static void
|
2015-03-18 15:09:09 -07:00
|
|
|
_e_config_save_cb(void *data EINA_UNUSED)
|
2004-11-24 19:37:45 -08:00
|
|
|
{
|
2016-03-02 12:31:29 -08:00
|
|
|
EINTERN void e_gadget_save(void);
|
|
|
|
|
2005-08-05 00:19:26 -07:00
|
|
|
e_config_profile_save();
|
2004-12-04 23:43:51 -08:00
|
|
|
e_module_save_all();
|
2016-03-01 08:37:57 -08:00
|
|
|
elm_config_save();
|
2004-12-04 23:43:51 -08:00
|
|
|
e_config_domain_save("e", _e_config_edd, e_config);
|
2013-02-01 02:21:54 -08:00
|
|
|
e_config_domain_save("e_bindings", _e_config_binding_edd, e_bindings);
|
2016-03-02 12:31:29 -08:00
|
|
|
e_gadget_save();
|
2008-01-10 23:33:57 -08:00
|
|
|
_e_config_save_defer = NULL;
|
2004-11-24 19:37:45 -08:00
|
|
|
}
|
2005-05-07 10:27:03 -07:00
|
|
|
|
|
|
|
static void
|
2008-11-20 01:01:23 -08:00
|
|
|
_e_config_free(E_Config *ecf)
|
2005-05-07 10:27:03 -07:00
|
|
|
{
|
* estickies,
* etk,
* PROTO/exalt,
* E-MODULES-EXTRA/diskio,
* E-MODULES-EXTRA/drawer,
* E-MODULES-EXTRA/penguins,
* E-MODULES-EXTRA/slideshow,
* E-MODULES-EXTRA/mail,
* E-MODULES-EXTRA/forecasts,
* E-MODULES-EXTRA/iiirk,
* E-MODULES-EXTRA/places,
* e,
* ewl,
* ecore,
* elitaire,
* entrance,
* e_dbus,
* efreet: Here we go, move from Ecore_List to Eina_List.
NOTE: This patch is huge, I did test it a lot, and I hope nothing is
broken. But if you think something change after this commit, please
contact me ASAP.
SVN revision: 39200
2009-02-25 03:03:47 -08:00
|
|
|
E_Config_Syscon_Action *sca;
|
|
|
|
E_Font_Fallback *eff;
|
2009-04-20 14:37:45 -07:00
|
|
|
E_Config_Module *em;
|
* estickies,
* etk,
* PROTO/exalt,
* E-MODULES-EXTRA/diskio,
* E-MODULES-EXTRA/drawer,
* E-MODULES-EXTRA/penguins,
* E-MODULES-EXTRA/slideshow,
* E-MODULES-EXTRA/mail,
* E-MODULES-EXTRA/forecasts,
* E-MODULES-EXTRA/iiirk,
* E-MODULES-EXTRA/places,
* e,
* ewl,
* ecore,
* elitaire,
* entrance,
* e_dbus,
* efreet: Here we go, move from Ecore_List to Eina_List.
NOTE: This patch is huge, I did test it a lot, and I hope nothing is
broken. But if you think something change after this commit, please
contact me ASAP.
SVN revision: 39200
2009-02-25 03:03:47 -08:00
|
|
|
E_Font_Default *efd;
|
|
|
|
E_Color_Class *cc;
|
|
|
|
E_Path_Dir *epd;
|
|
|
|
E_Remember *rem;
|
2011-05-13 04:39:04 -07:00
|
|
|
E_Config_Env_Var *evr;
|
2012-04-30 02:52:05 -07:00
|
|
|
E_Config_XKB_Option *op;
|
2013-02-15 00:16:06 -08:00
|
|
|
E_Int_Menu_Applications *ema;
|
2010-08-14 03:21:03 -07:00
|
|
|
|
* estickies,
* etk,
* PROTO/exalt,
* E-MODULES-EXTRA/diskio,
* E-MODULES-EXTRA/drawer,
* E-MODULES-EXTRA/penguins,
* E-MODULES-EXTRA/slideshow,
* E-MODULES-EXTRA/mail,
* E-MODULES-EXTRA/forecasts,
* E-MODULES-EXTRA/iiirk,
* E-MODULES-EXTRA/places,
* e,
* ewl,
* ecore,
* elitaire,
* entrance,
* e_dbus,
* efreet: Here we go, move from Ecore_List to Eina_List.
NOTE: This patch is huge, I did test it a lot, and I hope nothing is
broken. But if you think something change after this commit, please
contact me ASAP.
SVN revision: 39200
2009-02-25 03:03:47 -08:00
|
|
|
if (!ecf) return;
|
|
|
|
|
2012-10-31 08:04:51 -07:00
|
|
|
eina_stringshare_del(ecf->xkb.default_model);
|
2012-06-20 23:19:43 -07:00
|
|
|
|
2013-01-31 09:50:45 -08:00
|
|
|
E_FREE_LIST(ecf->xkb.used_layouts, e_config_xkb_layout_free);
|
2012-10-31 08:04:51 -07:00
|
|
|
EINA_LIST_FREE(ecf->xkb.used_options, op)
|
2012-04-30 02:52:05 -07:00
|
|
|
{
|
|
|
|
eina_stringshare_del(op->name);
|
|
|
|
E_FREE(op);
|
|
|
|
}
|
2012-06-20 23:19:43 -07:00
|
|
|
|
* estickies,
* etk,
* PROTO/exalt,
* E-MODULES-EXTRA/diskio,
* E-MODULES-EXTRA/drawer,
* E-MODULES-EXTRA/penguins,
* E-MODULES-EXTRA/slideshow,
* E-MODULES-EXTRA/mail,
* E-MODULES-EXTRA/forecasts,
* E-MODULES-EXTRA/iiirk,
* E-MODULES-EXTRA/places,
* e,
* ewl,
* ecore,
* elitaire,
* entrance,
* e_dbus,
* efreet: Here we go, move from Ecore_List to Eina_List.
NOTE: This patch is huge, I did test it a lot, and I hope nothing is
broken. But if you think something change after this commit, please
contact me ASAP.
SVN revision: 39200
2009-02-25 03:03:47 -08:00
|
|
|
EINA_LIST_FREE(ecf->modules, em)
|
|
|
|
{
|
2008-11-20 01:01:23 -08:00
|
|
|
if (em->name) eina_stringshare_del(em->name);
|
|
|
|
E_FREE(em);
|
|
|
|
}
|
* estickies,
* etk,
* PROTO/exalt,
* E-MODULES-EXTRA/diskio,
* E-MODULES-EXTRA/drawer,
* E-MODULES-EXTRA/penguins,
* E-MODULES-EXTRA/slideshow,
* E-MODULES-EXTRA/mail,
* E-MODULES-EXTRA/forecasts,
* E-MODULES-EXTRA/iiirk,
* E-MODULES-EXTRA/places,
* e,
* ewl,
* ecore,
* elitaire,
* entrance,
* e_dbus,
* efreet: Here we go, move from Ecore_List to Eina_List.
NOTE: This patch is huge, I did test it a lot, and I hope nothing is
broken. But if you think something change after this commit, please
contact me ASAP.
SVN revision: 39200
2009-02-25 03:03:47 -08:00
|
|
|
EINA_LIST_FREE(ecf->font_fallbacks, eff)
|
2008-11-20 01:01:23 -08:00
|
|
|
{
|
|
|
|
if (eff->name) eina_stringshare_del(eff->name);
|
|
|
|
E_FREE(eff);
|
|
|
|
}
|
* estickies,
* etk,
* PROTO/exalt,
* E-MODULES-EXTRA/diskio,
* E-MODULES-EXTRA/drawer,
* E-MODULES-EXTRA/penguins,
* E-MODULES-EXTRA/slideshow,
* E-MODULES-EXTRA/mail,
* E-MODULES-EXTRA/forecasts,
* E-MODULES-EXTRA/iiirk,
* E-MODULES-EXTRA/places,
* e,
* ewl,
* ecore,
* elitaire,
* entrance,
* e_dbus,
* efreet: Here we go, move from Ecore_List to Eina_List.
NOTE: This patch is huge, I did test it a lot, and I hope nothing is
broken. But if you think something change after this commit, please
contact me ASAP.
SVN revision: 39200
2009-02-25 03:03:47 -08:00
|
|
|
EINA_LIST_FREE(ecf->font_defaults, efd)
|
2008-11-20 01:01:23 -08:00
|
|
|
{
|
|
|
|
if (efd->text_class) eina_stringshare_del(efd->text_class);
|
|
|
|
if (efd->font) eina_stringshare_del(efd->font);
|
|
|
|
E_FREE(efd);
|
|
|
|
}
|
* estickies,
* etk,
* PROTO/exalt,
* E-MODULES-EXTRA/diskio,
* E-MODULES-EXTRA/drawer,
* E-MODULES-EXTRA/penguins,
* E-MODULES-EXTRA/slideshow,
* E-MODULES-EXTRA/mail,
* E-MODULES-EXTRA/forecasts,
* E-MODULES-EXTRA/iiirk,
* E-MODULES-EXTRA/places,
* e,
* ewl,
* ecore,
* elitaire,
* entrance,
* e_dbus,
* efreet: Here we go, move from Ecore_List to Eina_List.
NOTE: This patch is huge, I did test it a lot, and I hope nothing is
broken. But if you think something change after this commit, please
contact me ASAP.
SVN revision: 39200
2009-02-25 03:03:47 -08:00
|
|
|
EINA_LIST_FREE(ecf->path_append_data, epd)
|
2008-11-20 01:01:23 -08:00
|
|
|
{
|
|
|
|
if (epd->dir) eina_stringshare_del(epd->dir);
|
|
|
|
E_FREE(epd);
|
|
|
|
}
|
* estickies,
* etk,
* PROTO/exalt,
* E-MODULES-EXTRA/diskio,
* E-MODULES-EXTRA/drawer,
* E-MODULES-EXTRA/penguins,
* E-MODULES-EXTRA/slideshow,
* E-MODULES-EXTRA/mail,
* E-MODULES-EXTRA/forecasts,
* E-MODULES-EXTRA/iiirk,
* E-MODULES-EXTRA/places,
* e,
* ewl,
* ecore,
* elitaire,
* entrance,
* e_dbus,
* efreet: Here we go, move from Ecore_List to Eina_List.
NOTE: This patch is huge, I did test it a lot, and I hope nothing is
broken. But if you think something change after this commit, please
contact me ASAP.
SVN revision: 39200
2009-02-25 03:03:47 -08:00
|
|
|
EINA_LIST_FREE(ecf->path_append_images, epd)
|
2008-11-20 01:01:23 -08:00
|
|
|
{
|
|
|
|
if (epd->dir) eina_stringshare_del(epd->dir);
|
|
|
|
E_FREE(epd);
|
|
|
|
}
|
* estickies,
* etk,
* PROTO/exalt,
* E-MODULES-EXTRA/diskio,
* E-MODULES-EXTRA/drawer,
* E-MODULES-EXTRA/penguins,
* E-MODULES-EXTRA/slideshow,
* E-MODULES-EXTRA/mail,
* E-MODULES-EXTRA/forecasts,
* E-MODULES-EXTRA/iiirk,
* E-MODULES-EXTRA/places,
* e,
* ewl,
* ecore,
* elitaire,
* entrance,
* e_dbus,
* efreet: Here we go, move from Ecore_List to Eina_List.
NOTE: This patch is huge, I did test it a lot, and I hope nothing is
broken. But if you think something change after this commit, please
contact me ASAP.
SVN revision: 39200
2009-02-25 03:03:47 -08:00
|
|
|
EINA_LIST_FREE(ecf->path_append_fonts, epd)
|
2008-11-20 01:01:23 -08:00
|
|
|
{
|
|
|
|
if (epd->dir) eina_stringshare_del(epd->dir);
|
|
|
|
E_FREE(epd);
|
|
|
|
}
|
* estickies,
* etk,
* PROTO/exalt,
* E-MODULES-EXTRA/diskio,
* E-MODULES-EXTRA/drawer,
* E-MODULES-EXTRA/penguins,
* E-MODULES-EXTRA/slideshow,
* E-MODULES-EXTRA/mail,
* E-MODULES-EXTRA/forecasts,
* E-MODULES-EXTRA/iiirk,
* E-MODULES-EXTRA/places,
* e,
* ewl,
* ecore,
* elitaire,
* entrance,
* e_dbus,
* efreet: Here we go, move from Ecore_List to Eina_List.
NOTE: This patch is huge, I did test it a lot, and I hope nothing is
broken. But if you think something change after this commit, please
contact me ASAP.
SVN revision: 39200
2009-02-25 03:03:47 -08:00
|
|
|
EINA_LIST_FREE(ecf->path_append_init, epd)
|
2008-11-20 01:01:23 -08:00
|
|
|
{
|
|
|
|
if (epd->dir) eina_stringshare_del(epd->dir);
|
|
|
|
E_FREE(epd);
|
|
|
|
}
|
* estickies,
* etk,
* PROTO/exalt,
* E-MODULES-EXTRA/diskio,
* E-MODULES-EXTRA/drawer,
* E-MODULES-EXTRA/penguins,
* E-MODULES-EXTRA/slideshow,
* E-MODULES-EXTRA/mail,
* E-MODULES-EXTRA/forecasts,
* E-MODULES-EXTRA/iiirk,
* E-MODULES-EXTRA/places,
* e,
* ewl,
* ecore,
* elitaire,
* entrance,
* e_dbus,
* efreet: Here we go, move from Ecore_List to Eina_List.
NOTE: This patch is huge, I did test it a lot, and I hope nothing is
broken. But if you think something change after this commit, please
contact me ASAP.
SVN revision: 39200
2009-02-25 03:03:47 -08:00
|
|
|
EINA_LIST_FREE(ecf->path_append_icons, epd)
|
2008-11-20 01:01:23 -08:00
|
|
|
{
|
|
|
|
if (epd->dir) eina_stringshare_del(epd->dir);
|
|
|
|
E_FREE(epd);
|
|
|
|
}
|
* estickies,
* etk,
* PROTO/exalt,
* E-MODULES-EXTRA/diskio,
* E-MODULES-EXTRA/drawer,
* E-MODULES-EXTRA/penguins,
* E-MODULES-EXTRA/slideshow,
* E-MODULES-EXTRA/mail,
* E-MODULES-EXTRA/forecasts,
* E-MODULES-EXTRA/iiirk,
* E-MODULES-EXTRA/places,
* e,
* ewl,
* ecore,
* elitaire,
* entrance,
* e_dbus,
* efreet: Here we go, move from Ecore_List to Eina_List.
NOTE: This patch is huge, I did test it a lot, and I hope nothing is
broken. But if you think something change after this commit, please
contact me ASAP.
SVN revision: 39200
2009-02-25 03:03:47 -08:00
|
|
|
EINA_LIST_FREE(ecf->path_append_modules, epd)
|
2008-11-20 01:01:23 -08:00
|
|
|
{
|
|
|
|
if (epd->dir) eina_stringshare_del(epd->dir);
|
|
|
|
E_FREE(epd);
|
|
|
|
}
|
* estickies,
* etk,
* PROTO/exalt,
* E-MODULES-EXTRA/diskio,
* E-MODULES-EXTRA/drawer,
* E-MODULES-EXTRA/penguins,
* E-MODULES-EXTRA/slideshow,
* E-MODULES-EXTRA/mail,
* E-MODULES-EXTRA/forecasts,
* E-MODULES-EXTRA/iiirk,
* E-MODULES-EXTRA/places,
* e,
* ewl,
* ecore,
* elitaire,
* entrance,
* e_dbus,
* efreet: Here we go, move from Ecore_List to Eina_List.
NOTE: This patch is huge, I did test it a lot, and I hope nothing is
broken. But if you think something change after this commit, please
contact me ASAP.
SVN revision: 39200
2009-02-25 03:03:47 -08:00
|
|
|
EINA_LIST_FREE(ecf->path_append_backgrounds, epd)
|
2008-11-20 01:01:23 -08:00
|
|
|
{
|
|
|
|
if (epd->dir) eina_stringshare_del(epd->dir);
|
|
|
|
E_FREE(epd);
|
|
|
|
}
|
* estickies,
* etk,
* PROTO/exalt,
* E-MODULES-EXTRA/diskio,
* E-MODULES-EXTRA/drawer,
* E-MODULES-EXTRA/penguins,
* E-MODULES-EXTRA/slideshow,
* E-MODULES-EXTRA/mail,
* E-MODULES-EXTRA/forecasts,
* E-MODULES-EXTRA/iiirk,
* E-MODULES-EXTRA/places,
* e,
* ewl,
* ecore,
* elitaire,
* entrance,
* e_dbus,
* efreet: Here we go, move from Ecore_List to Eina_List.
NOTE: This patch is huge, I did test it a lot, and I hope nothing is
broken. But if you think something change after this commit, please
contact me ASAP.
SVN revision: 39200
2009-02-25 03:03:47 -08:00
|
|
|
EINA_LIST_FREE(ecf->path_append_messages, epd)
|
2008-11-20 01:01:23 -08:00
|
|
|
{
|
|
|
|
if (epd->dir) eina_stringshare_del(epd->dir);
|
|
|
|
E_FREE(epd);
|
|
|
|
}
|
* estickies,
* etk,
* PROTO/exalt,
* E-MODULES-EXTRA/diskio,
* E-MODULES-EXTRA/drawer,
* E-MODULES-EXTRA/penguins,
* E-MODULES-EXTRA/slideshow,
* E-MODULES-EXTRA/mail,
* E-MODULES-EXTRA/forecasts,
* E-MODULES-EXTRA/iiirk,
* E-MODULES-EXTRA/places,
* e,
* ewl,
* ecore,
* elitaire,
* entrance,
* e_dbus,
* efreet: Here we go, move from Ecore_List to Eina_List.
NOTE: This patch is huge, I did test it a lot, and I hope nothing is
broken. But if you think something change after this commit, please
contact me ASAP.
SVN revision: 39200
2009-02-25 03:03:47 -08:00
|
|
|
EINA_LIST_FREE(ecf->remembers, rem)
|
2008-11-20 01:01:23 -08:00
|
|
|
{
|
|
|
|
if (rem->name) eina_stringshare_del(rem->name);
|
|
|
|
if (rem->class) eina_stringshare_del(rem->class);
|
2010-08-14 03:21:03 -07:00
|
|
|
if (rem->title) eina_stringshare_del(rem->title);
|
2008-11-20 01:01:23 -08:00
|
|
|
if (rem->role) eina_stringshare_del(rem->role);
|
|
|
|
if (rem->prop.border) eina_stringshare_del(rem->prop.border);
|
|
|
|
if (rem->prop.command) eina_stringshare_del(rem->prop.command);
|
|
|
|
E_FREE(rem);
|
|
|
|
}
|
2013-02-15 00:16:06 -08:00
|
|
|
EINA_LIST_FREE(ecf->menu_applications, ema)
|
|
|
|
{
|
|
|
|
if (ema->orig_path) eina_stringshare_del(ema->orig_path);
|
|
|
|
if (ema->try_exec) eina_stringshare_del(ema->try_exec);
|
|
|
|
if (ema->exec) eina_stringshare_del(ema->exec);
|
|
|
|
E_FREE(ema);
|
|
|
|
}
|
* estickies,
* etk,
* PROTO/exalt,
* E-MODULES-EXTRA/diskio,
* E-MODULES-EXTRA/drawer,
* E-MODULES-EXTRA/penguins,
* E-MODULES-EXTRA/slideshow,
* E-MODULES-EXTRA/mail,
* E-MODULES-EXTRA/forecasts,
* E-MODULES-EXTRA/iiirk,
* E-MODULES-EXTRA/places,
* e,
* ewl,
* ecore,
* elitaire,
* entrance,
* e_dbus,
* efreet: Here we go, move from Ecore_List to Eina_List.
NOTE: This patch is huge, I did test it a lot, and I hope nothing is
broken. But if you think something change after this commit, please
contact me ASAP.
SVN revision: 39200
2009-02-25 03:03:47 -08:00
|
|
|
EINA_LIST_FREE(ecf->color_classes, cc)
|
2008-11-20 01:01:23 -08:00
|
|
|
{
|
|
|
|
if (cc->name) eina_stringshare_del(cc->name);
|
|
|
|
E_FREE(cc);
|
2005-05-07 10:27:03 -07:00
|
|
|
}
|
2008-11-20 01:01:23 -08:00
|
|
|
if (ecf->desktop_default_background) eina_stringshare_del(ecf->desktop_default_background);
|
|
|
|
if (ecf->desktop_default_name) eina_stringshare_del(ecf->desktop_default_name);
|
|
|
|
if (ecf->language) eina_stringshare_del(ecf->language);
|
2012-10-02 06:00:25 -07:00
|
|
|
eina_stringshare_del(ecf->desklock_language);
|
2012-10-03 02:00:12 -07:00
|
|
|
eina_stringshare_del(ecf->xkb.selected_layout);
|
|
|
|
eina_stringshare_del(ecf->xkb.cur_layout);
|
|
|
|
eina_stringshare_del(ecf->xkb.desklock_layout);
|
2013-01-31 09:50:45 -08:00
|
|
|
e_config_xkb_layout_free(ecf->xkb.current_layout);
|
|
|
|
e_config_xkb_layout_free(ecf->xkb.sel_layout);
|
|
|
|
e_config_xkb_layout_free(ecf->xkb.lock_layout);
|
giant comp rejiggering commit #6:
* border->fx REMOVED, related border api REMOVED
* comp edc has new class of groups: e/comp/effects[/auto]
** these are effects which can be applied to any compositor object through the e_comp_win_effect* api and are written in embryo
*** two types - base and auto - base = manual, for use with animators; auto are "trigger and forget", for use as actual effects
* desk flip transition animations moved to comp effects and FIXED(ish)
* "zoom" effect renamed to "diagonal" for slightly less misleading name since it never did any zooming
* actual "zoom" effect added
* border hierarchy now as follows: cw->effect_obj swallows cw->shobj, cw->shobj swallows cw->bd->bg_object ?: cw->obj, if (cw->bd->bg_object) cw->bd->bg_object swallows cw->obj
** cw->effect_obj now used for all positioning and comp logic
** cw->effect_obj ONLY used for object transformation effects (moving, zooming, fading, etc)
** cw->shobj ONLY for comp visual/non-movement effects (focus effect, unfocus opacity, legacy shadows); this is a candidate for removal/rewrite in E19
* even more comp shape rewrites
* desk flip animation time now controlled by theme since edje doesn't support setting transition time in C; related config value removed
* desk flip transitions (in e_desk.c) rewritten
* various modules (evry/illume2) updated to use comp effects instead of fx offset
* desk flip configuration BROKEN(ish)
2013-02-28 07:20:32 -08:00
|
|
|
eina_stringshare_del(ecf->desk_flip_animate_type);
|
2008-11-20 01:01:23 -08:00
|
|
|
if (ecf->transition_start) eina_stringshare_del(ecf->transition_start);
|
|
|
|
if (ecf->transition_desk) eina_stringshare_del(ecf->transition_desk);
|
|
|
|
if (ecf->transition_change) eina_stringshare_del(ecf->transition_change);
|
|
|
|
if (ecf->input_method) eina_stringshare_del(ecf->input_method);
|
|
|
|
if (ecf->exebuf_term_cmd) eina_stringshare_del(ecf->exebuf_term_cmd);
|
|
|
|
if (ecf->icon_theme) eina_stringshare_del(ecf->icon_theme);
|
2014-09-18 01:49:47 -07:00
|
|
|
if (ecf->desktop_environment) eina_stringshare_del(ecf->desktop_environment);
|
2008-11-20 01:01:23 -08:00
|
|
|
if (ecf->wallpaper_import_last_dev) eina_stringshare_del(ecf->wallpaper_import_last_dev);
|
|
|
|
if (ecf->wallpaper_import_last_path) eina_stringshare_del(ecf->wallpaper_import_last_path);
|
|
|
|
if (ecf->theme_default_border_style) eina_stringshare_del(ecf->theme_default_border_style);
|
|
|
|
if (ecf->desklock_custom_desklock_cmd) eina_stringshare_del(ecf->desklock_custom_desklock_cmd);
|
* estickies,
* etk,
* PROTO/exalt,
* E-MODULES-EXTRA/diskio,
* E-MODULES-EXTRA/drawer,
* E-MODULES-EXTRA/penguins,
* E-MODULES-EXTRA/slideshow,
* E-MODULES-EXTRA/mail,
* E-MODULES-EXTRA/forecasts,
* E-MODULES-EXTRA/iiirk,
* E-MODULES-EXTRA/places,
* e,
* ewl,
* ecore,
* elitaire,
* entrance,
* e_dbus,
* efreet: Here we go, move from Ecore_List to Eina_List.
NOTE: This patch is huge, I did test it a lot, and I hope nothing is
broken. But if you think something change after this commit, please
contact me ASAP.
SVN revision: 39200
2009-02-25 03:03:47 -08:00
|
|
|
EINA_LIST_FREE(ecf->syscon.actions, sca)
|
2008-11-25 00:05:58 -08:00
|
|
|
{
|
|
|
|
if (sca->action) eina_stringshare_del(sca->action);
|
|
|
|
if (sca->params) eina_stringshare_del(sca->params);
|
|
|
|
if (sca->button) eina_stringshare_del(sca->button);
|
|
|
|
if (sca->icon) eina_stringshare_del(sca->icon);
|
|
|
|
E_FREE(sca);
|
|
|
|
}
|
2011-05-13 04:39:04 -07:00
|
|
|
EINA_LIST_FREE(ecf->env_vars, evr)
|
|
|
|
{
|
|
|
|
if (evr->var) eina_stringshare_del(evr->var);
|
|
|
|
if (evr->val) eina_stringshare_del(evr->val);
|
|
|
|
E_FREE(evr);
|
|
|
|
}
|
2011-09-26 18:56:08 -07:00
|
|
|
if (ecf->xsettings.net_icon_theme_name)
|
|
|
|
eina_stringshare_del(ecf->xsettings.net_icon_theme_name);
|
|
|
|
if (ecf->xsettings.net_theme_name)
|
|
|
|
eina_stringshare_del(ecf->xsettings.net_theme_name);
|
|
|
|
if (ecf->xsettings.gtk_font_name)
|
|
|
|
eina_stringshare_del(ecf->xsettings.gtk_font_name);
|
2012-09-16 03:43:17 -07:00
|
|
|
if (ecf->backlight.sysdev)
|
|
|
|
eina_stringshare_del(ecf->backlight.sysdev);
|
2011-09-26 18:56:08 -07:00
|
|
|
|
2008-11-20 01:01:23 -08:00
|
|
|
E_FREE(ecf);
|
2005-05-07 10:27:03 -07:00
|
|
|
}
|
|
|
|
|
2012-06-28 05:19:36 -07:00
|
|
|
static Eina_Bool
|
2005-05-07 10:27:03 -07:00
|
|
|
_e_config_cb_timer(void *data)
|
|
|
|
{
|
2008-11-22 00:42:54 -08:00
|
|
|
e_util_dialog_show(_("Settings Upgraded"), "%s", (char *)data);
|
2005-05-07 10:27:03 -07:00
|
|
|
return 0;
|
|
|
|
}
|
2006-05-19 20:23:12 -07:00
|
|
|
|
2012-06-28 05:19:36 -07:00
|
|
|
static int
|
2006-05-19 20:23:12 -07:00
|
|
|
_e_config_eet_close_handle(Eet_File *ef, char *file)
|
|
|
|
{
|
|
|
|
Eet_Error err;
|
|
|
|
char *erstr = NULL;
|
2010-08-14 03:21:03 -07:00
|
|
|
|
2006-05-19 20:23:12 -07:00
|
|
|
err = eet_close(ef);
|
|
|
|
switch (err)
|
|
|
|
{
|
2011-01-02 20:28:53 -08:00
|
|
|
case EET_ERROR_NONE:
|
2012-06-28 05:19:36 -07:00
|
|
|
/* all good - no error */
|
|
|
|
break;
|
|
|
|
|
2011-01-02 20:28:53 -08:00
|
|
|
case EET_ERROR_BAD_OBJECT:
|
2012-06-28 05:19:36 -07:00
|
|
|
erstr = _("The EET file handle is bad.");
|
|
|
|
break;
|
|
|
|
|
2011-01-02 20:28:53 -08:00
|
|
|
case EET_ERROR_EMPTY:
|
2012-06-28 05:19:36 -07:00
|
|
|
erstr = _("The file data is empty.");
|
|
|
|
break;
|
|
|
|
|
2011-01-02 20:28:53 -08:00
|
|
|
case EET_ERROR_NOT_WRITABLE:
|
2012-06-28 05:19:36 -07:00
|
|
|
erstr = _("The file is not writable. Perhaps the disk is read-only<br>or you lost permissions to your files.");
|
|
|
|
break;
|
|
|
|
|
2011-01-02 20:28:53 -08:00
|
|
|
case EET_ERROR_OUT_OF_MEMORY:
|
2012-06-28 05:19:36 -07:00
|
|
|
erstr = _("Memory ran out while preparing the write.<br>Please free up memory.");
|
|
|
|
break;
|
|
|
|
|
2011-01-02 20:28:53 -08:00
|
|
|
case EET_ERROR_WRITE_ERROR:
|
2012-06-28 05:19:36 -07:00
|
|
|
erstr = _("This is a generic error.");
|
2011-11-07 14:13:01 -08:00
|
|
|
break;
|
2012-06-28 05:19:36 -07:00
|
|
|
|
2006-05-19 20:23:12 -07:00
|
|
|
case EET_ERROR_WRITE_ERROR_FILE_TOO_BIG:
|
2012-06-28 05:19:36 -07:00
|
|
|
erstr = _("The settings file is too large.<br>It should be very small (a few hundred KB at most).");
|
|
|
|
break;
|
|
|
|
|
2006-05-19 20:23:12 -07:00
|
|
|
case EET_ERROR_WRITE_ERROR_IO_ERROR:
|
2012-06-28 05:19:36 -07:00
|
|
|
erstr = _("You have I/O errors on the disk.<br>Maybe it needs replacing?");
|
|
|
|
break;
|
|
|
|
|
2006-05-19 20:23:12 -07:00
|
|
|
case EET_ERROR_WRITE_ERROR_OUT_OF_SPACE:
|
2012-11-30 07:39:17 -08:00
|
|
|
erstr = _("You ran out of space while writing the file.");
|
2012-06-28 05:19:36 -07:00
|
|
|
break;
|
|
|
|
|
2006-05-19 20:23:12 -07:00
|
|
|
case EET_ERROR_WRITE_ERROR_FILE_CLOSED:
|
2012-11-30 07:39:17 -08:00
|
|
|
erstr = _("The file was closed while writing.");
|
2012-06-28 05:19:36 -07:00
|
|
|
break;
|
|
|
|
|
2011-01-02 20:28:53 -08:00
|
|
|
case EET_ERROR_MMAP_FAILED:
|
2012-06-28 05:19:36 -07:00
|
|
|
erstr = _("Memory-mapping (mmap) of the file failed.");
|
|
|
|
break;
|
|
|
|
|
2011-01-02 20:28:53 -08:00
|
|
|
case EET_ERROR_X509_ENCODING_FAILED:
|
2012-06-28 05:19:36 -07:00
|
|
|
erstr = _("X509 Encoding failed.");
|
|
|
|
break;
|
|
|
|
|
2011-01-02 20:28:53 -08:00
|
|
|
case EET_ERROR_SIGNATURE_FAILED:
|
2012-06-28 05:19:36 -07:00
|
|
|
erstr = _("Signature failed.");
|
|
|
|
break;
|
|
|
|
|
2011-01-02 20:28:53 -08:00
|
|
|
case EET_ERROR_INVALID_SIGNATURE:
|
|
|
|
erstr = _("The signature was invalid.");
|
2012-06-28 05:19:36 -07:00
|
|
|
break;
|
|
|
|
|
2011-01-02 20:28:53 -08:00
|
|
|
case EET_ERROR_NOT_SIGNED:
|
2012-06-28 05:19:36 -07:00
|
|
|
erstr = _("Not signed.");
|
|
|
|
break;
|
|
|
|
|
2011-01-02 20:28:53 -08:00
|
|
|
case EET_ERROR_NOT_IMPLEMENTED:
|
2012-06-28 05:19:36 -07:00
|
|
|
erstr = _("Feature not implemented.");
|
|
|
|
break;
|
|
|
|
|
2011-01-02 20:28:53 -08:00
|
|
|
case EET_ERROR_PRNG_NOT_SEEDED:
|
2012-06-28 05:19:36 -07:00
|
|
|
erstr = _("PRNG was not seeded.");
|
|
|
|
break;
|
|
|
|
|
2011-01-02 20:28:53 -08:00
|
|
|
case EET_ERROR_ENCRYPT_FAILED:
|
2012-06-28 05:19:36 -07:00
|
|
|
erstr = _("Encryption failed.");
|
|
|
|
break;
|
|
|
|
|
2011-01-02 20:28:53 -08:00
|
|
|
case EET_ERROR_DECRYPT_FAILED:
|
2012-06-28 05:19:36 -07:00
|
|
|
erstr = _("Decryption failed.");
|
|
|
|
break;
|
|
|
|
|
2011-01-02 20:28:53 -08:00
|
|
|
default: /* if we get here eet added errors we don't know */
|
2012-06-28 05:19:36 -07:00
|
|
|
erstr = _("The error is unknown to Enlightenment.");
|
|
|
|
break;
|
2006-05-19 20:23:12 -07:00
|
|
|
}
|
|
|
|
if (erstr)
|
|
|
|
{
|
2012-06-28 05:19:36 -07:00
|
|
|
/* delete any partially-written file */
|
|
|
|
ecore_file_unlink(file);
|
2011-01-02 20:44:29 -08:00
|
|
|
/* only show dialog for first error - further ones are likely */
|
|
|
|
/* more of the same error */
|
2012-06-28 05:19:36 -07:00
|
|
|
if (!_e_config_error_dialog)
|
|
|
|
{
|
2007-09-10 04:53:17 -07:00
|
|
|
E_Dialog *dia;
|
2009-04-20 14:37:45 -07:00
|
|
|
|
compositor rewrite / charlie-foxtrot situation
huge fustercluck commit because there wasn't really a way to separate out the changes. better to just rip it all out at once.
* compositor and window management completely rewritten. this was the goal for E19, but it pretty much required everything existing to be scrapped since it wasn't optimized, streamlined, or sensible. now instead of having the compositor strapped to the window manager like an outboard motor, it's housed more like an automobile engine.
** various comp structs have been merged into other places (eg. E_Comp_Zone is now just part of E_Zone where applicable), leading to a large deduplication of attributes
** awful E_Comp_Win is totally dead, having been replaced with e_comp_object smart objects which work just like normal canvas objects
** protocol-specific window management and compositor functionality is now kept exclusively in backend files
** e_pixmap api provides generic client finding and rendering api
** screen/xinerama screens are now provided directly by compositor on startup and re-set on change
** e_comp_render_update finally replaced with eina_tiler
** wayland compositor no longer creates X windows
** compositor e_layout removed entirely
* e_container is gone. this was made unnecessary in E18, but I kept it to avoid having too much code churn in one release. its sole purpose was to catch some events and handle window stacking, both of which are now just done by the compositor infra
* e_manager is just for screensaver and keybind stuff now, possibly remove later?
* e_border is gone along with a lot of its api. e_client has replaced it, and e_client has been rewritten completely; some parts may be similar, but the design now relies upon having a functional compositor
** window configuration/focus functions are all removed. all windows are now managed solely with evas_object_X functions on the "frame" member of a client, just as any other canvas object can be managed.
*** do NOT set interceptors on a client's comp_object. seriously.
* startup order rewritten: compositor now starts much earlier, other things just use attrs and members of the compositor
* ecore_x_pointer_xy_get usage replaced with ecore_evas_pointer_xy_get
* e_popup is totally gone, existing usage replaced by e_comp_object_util_add where applicable, otherwise just placed normally on the canvas
* deskmirror is (more) broken for now
* illume is totally fucked
* Ecore_X_Window replaced with Ecore_Window in most cases
* edge binding XWindows replaced with regular canvas objects
* some E_Win functionality has changed such that delete callbacks are now correctly called in ALL cases. various dialogs have been updated to not crash as a result
comp files and descriptions:
e_comp.c - overall compositor functions, rendering/update loop, shape cutting
e_comp_x.c - X window management and compositor functionality
e_comp_wl.c - Wayland surface management and compositor functionality
e_comp_canvas.c - general compositor canvas functions and utilities
e_comp_object.c - E_Client->frame member for managing clients as Evas_Objects, utility functions for adding objects to the compositor rendering systems
additional authors: ivan.briano@intel.com
feature: new compositor
removal: e_border, e_container, e_popup
2014-01-14 17:19:12 -08:00
|
|
|
dia = e_dialog_new(NULL, "E", "_sys_error_logout_slow");
|
2012-06-28 05:19:36 -07:00
|
|
|
if (dia)
|
|
|
|
{
|
|
|
|
char buf[8192];
|
2009-04-20 14:37:45 -07:00
|
|
|
|
2012-06-28 05:19:36 -07:00
|
|
|
e_dialog_title_set(dia, _("Enlightenment Settings Write Problems"));
|
|
|
|
e_dialog_icon_set(dia, "dialog-error", 64);
|
|
|
|
snprintf(buf, sizeof(buf),
|
2011-12-13 07:02:48 -08:00
|
|
|
_("Enlightenment has had an error while writing<br>"
|
2011-01-02 20:28:53 -08:00
|
|
|
"its config file.<br>"
|
|
|
|
"%s<br>"
|
|
|
|
"<br>"
|
|
|
|
"The file where the error occurred was:<br>"
|
|
|
|
"%s<br>"
|
|
|
|
"<br>"
|
|
|
|
"This file has been deleted to avoid corrupt data.<br>"),
|
|
|
|
erstr, file);
|
2012-06-28 05:19:36 -07:00
|
|
|
e_dialog_text_set(dia, buf);
|
|
|
|
e_dialog_button_add(dia, _("OK"), NULL, NULL, NULL);
|
|
|
|
e_dialog_button_focus_num(dia, 0);
|
2014-11-02 18:35:13 -08:00
|
|
|
elm_win_center(dia->win, 1, 1);
|
2012-06-28 05:19:36 -07:00
|
|
|
e_object_del_attach_func_set(E_OBJECT(dia),
|
2011-01-02 20:28:53 -08:00
|
|
|
_e_config_error_dialog_cb_delete);
|
2012-06-28 05:19:36 -07:00
|
|
|
e_dialog_show(dia);
|
|
|
|
_e_config_error_dialog = dia;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return 0;
|
2006-05-19 20:23:12 -07:00
|
|
|
}
|
2006-08-14 23:47:22 -07:00
|
|
|
return 1;
|
2006-05-19 20:23:12 -07:00
|
|
|
}
|
2013-01-11 02:34:29 -08:00
|
|
|
|