diff options
author | Eduardo Lima (Etrunko) <eduardo.lima@intel.com> | 2013-09-27 17:32:30 -0300 |
---|---|---|
committer | Eduardo Lima (Etrunko) <eduardo.lima@intel.com> | 2013-09-27 17:32:30 -0300 |
commit | 72f64639ca5706eed2d3396ee7dbea4530e5b7ab (patch) | |
tree | 378ad6a1eda91a33caec0246f1885e4e14047f25 /src | |
parent | 98ccb367aec71fef4e7247d4bdca9dfe09b40bd2 (diff) | |
download | weekeyboard-72f64639ca5706eed2d3396ee7dbea4530e5b7ab.tar.gz weekeyboard-72f64639ca5706eed2d3396ee7dbea4530e5b7ab.tar.bz2 weekeyboard-72f64639ca5706eed2d3396ee7dbea4530e5b7ab.zip |
Write modifications to Eet file upon change
Change-Id: I53de2ae16b80151eb422b65ac4c06cdc23457c9e
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/wkb-ibus-config-eet.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/wkb-ibus-config-eet.c b/src/wkb-ibus-config-eet.c index 780b9ac..d3a1d7d 100644 --- a/src/wkb-ibus-config-eet.c +++ b/src/wkb-ibus-config-eet.c @@ -784,7 +784,17 @@ wkb_ibus_config_eet_set_value(struct wkb_ibus_config_eet *config_eet, const char goto end; } - ret = wkb_config_key_set(key, value); + if ((ret = wkb_config_key_set(key, value))) + { + Eet_File *ef = eet_open(config_eet->path, EET_FILE_MODE_WRITE); + if (!ef || !eet_data_write(ef, config_eet->ibus_edd, "ibus", config_eet->ibus_config, EINA_TRUE)) + { + // FIXME + printf("Error writing Eet file '%s'\n", config_eet->path); + ret = EINA_FALSE; + } + eet_close(ef); + } end: return ret; |