aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorShinwoo Kim <kimcinoo.efl@gmail.com>2013-02-22 09:46:20 +0000
committerShinwoo Kim <kimcinoo.efl@gmail.com>2013-02-22 09:46:20 +0000
commit46451fa1ade59aba7b2a0bd77b559ae11007d342 (patch)
tree19b43ccf78aece0b3029f069007dff659b2a70d4 /src
parent12ffdeb62271defd41e2384e10cda3bfe0bf52e3 (diff)
downloadenlightenment-46451fa1ade59aba7b2a0bd77b559ae11007d342.tar.gz
enlightenment-46451fa1ade59aba7b2a0bd77b559ae11007d342.tar.xz
enlightenment-46451fa1ade59aba7b2a0bd77b559ae11007d342.zip
[access] check previous block to save configuration value
SVN revision: 84304
Diffstat (limited to 'src')
-rw-r--r--src/modules/access/e_mod_main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/access/e_mod_main.c b/src/modules/access/e_mod_main.c
index 9aab4b0fc..871341a92 100644
--- a/src/modules/access/e_mod_main.c
+++ b/src/modules/access/e_mod_main.c
@@ -745,12 +745,15 @@ _cb_client_message(void *data __UNUSED__,
int type __UNUSED__,
void *ev)
{
+ int block;
Ecore_X_Event_Client_Message *event = ev;
if (event->message_type != _atom_access)
return ECORE_CALLBACK_PASS_ON;
- e_config_save_block_set(0);
+ block = e_config_save_block_get();
+ if (block) e_config_save_block_set(!block);
+
if ((Eina_Bool)event->data.l[0])
{
EINA_LOG_INFO("[access module] module enable");
@@ -768,7 +771,7 @@ _cb_client_message(void *data __UNUSED__,
/* save config value */
e_config_domain_save("module.access", conf_edd, access_config);
- e_config_save_block_set(1);
+ e_config_save_block_set(block);
return ECORE_CALLBACK_PASS_ON;
}