summaryrefslogtreecommitdiff
path: root/src/modules/quickaccess
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-01-12 12:28:48 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-01-12 12:28:48 +0000
commit16062072e400c153ef29eacd4df931d097832a92 (patch)
tree036393ff5b767c45081ac53f73379f7b39349ec2 /src/modules/quickaccess
parent30e9bd3f85556e423a8d321d02a959ef70bfe0dc (diff)
downloadenlightenment-16062072e400c153ef29eacd4df931d097832a92.tar.gz
simplify/streamline configure option adding, also add option domains so modules can get lists of their own options or other module options
SVN revision: 82695
Diffstat (limited to 'src/modules/quickaccess')
-rw-r--r--src/modules/quickaccess/e_mod_main.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/modules/quickaccess/e_mod_main.c b/src/modules/quickaccess/e_mod_main.c
index f2ab033798..616bee28ff 100644
--- a/src/modules/quickaccess/e_mod_main.c
+++ b/src/modules/quickaccess/e_mod_main.c
@@ -4,7 +4,6 @@ EINTERN int _e_quick_access_log_dom = -1;
static E_Config_DD *conf_edd = NULL;
Mod *qa_mod = NULL;
Config *qa_config = NULL;
-static Eina_Inlist *qa_cfg_opts = NULL;
/**
* in priority order:
@@ -64,23 +63,20 @@ e_modapi_init(E_Module *m)
return NULL;
}
+ e_configure_option_domain_current_set("quickaccess");
+
E_CONFIGURE_OPTION_ADD_CUSTOM(co, _("settings"), _("Quickaccess settings panel"), _("quickaccess"), _("border"));
co->info = eina_stringshare_add("launcher/quickaccess");
E_CONFIGURE_OPTION_ICON(co, buf);
- qa_cfg_opts = eina_inlist_append(qa_cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, hide_when_behind, qa_config, _("Hide windows on activate instead of raising"), _("quickaccess"), _("border"));
E_CONFIGURE_OPTION_HELP(co, _("By default, activating a Quickaccess binding when the window is behind other windows will raise the window. "
"This option changes that behavior to hide the window instead."));
- qa_cfg_opts = eina_inlist_append(qa_cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, autohide, qa_config, _("Hide windows when focus is lost"), _("quickaccess"), _("border"), _("focus"));
E_CONFIGURE_OPTION_HELP(co, _("This option causes Quickaccess windows to automatically hide when they lose focus"));
- qa_cfg_opts = eina_inlist_append(qa_cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, skip_taskbar, qa_config, _("Skip taskbar"), _("quickaccess"), _("border"));
E_CONFIGURE_OPTION_HELP(co, _("This option causes Quickaccess windows to not show up in taskbars"));
- qa_cfg_opts = eina_inlist_append(qa_cfg_opts, EINA_INLIST_GET(co));
E_CONFIGURE_OPTION_ADD(co, BOOL, skip_pager, qa_config, _("Skip pager"), _("quickaccess"), _("border"));
E_CONFIGURE_OPTION_HELP(co, _("This option causes Quickaccess windows to not show up in pagers"));
- qa_cfg_opts = eina_inlist_append(qa_cfg_opts, EINA_INLIST_GET(co));
e_configure_option_category_tag_add(_("windows"), _("quickaccess"));
e_configure_option_category_tag_add(_("quickaccess"), _("quickaccess"));
@@ -101,7 +97,7 @@ e_modapi_shutdown(E_Module *m __UNUSED__)
e_configure_registry_item_del("launcher/quickaccess");
e_configure_registry_category_del("launcher");
- E_CONFIGURE_OPTION_LIST_CLEAR(qa_cfg_opts);
+ e_configure_option_domain_clear("quickaccess");
e_configure_option_category_tag_del(_("quickaccess"), _("quickaccess"));
e_configure_option_category_tag_del(_("windows"), _("quickaccess"));