summaryrefslogtreecommitdiff
path: root/src/modules/conf2
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-01-23 11:06:30 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-01-23 11:06:30 +0000
commitb3a988097173e4fdc22d961a5c8bfaa80daa1a6d (patch)
tree48b3ae70acffb1c0698ef69cac524f0ef47fe50b /src/modules/conf2
parentd4f30b24ad3fce33da3de7902c377df4d9988997 (diff)
downloadenlightenment-b3a988097173e4fdc22d961a5c8bfaa80daa1a6d.tar.gz
fix conf2 bug where buttons would erroneously be toggled when selecting an option which could not produce an overlay
SVN revision: 83160
Diffstat (limited to 'src/modules/conf2')
-rw-r--r--src/modules/conf2/e_conf2.c37
1 files changed, 19 insertions, 18 deletions
diff --git a/src/modules/conf2/e_conf2.c b/src/modules/conf2/e_conf2.c
index 66600d812d..1b2dee44ed 100644
--- a/src/modules/conf2/e_conf2.c
+++ b/src/modules/conf2/e_conf2.c
@@ -664,24 +664,6 @@ _opt_overlay_show(E_Configure_Option *co, Elm_Object_Item *it)
char buf[256];
if (!it) it = e_configure_option_data_get(co, "conf_item");
- if (co->changed)
- {
- if (!buttons_visible)
- {
- elm_layout_signal_emit(layout, "e,action,apply_show", "e");
- elm_layout_signal_emit(layout, "e,action,discard_show", "e");
- }
- buttons_visible = EINA_TRUE;
- }
- else
- {
- if (buttons_visible)
- {
- elm_layout_signal_emit(layout, "e,action,apply_hide", "e");
- elm_layout_signal_emit(layout, "e,action,discard_hide", "e");
- }
- buttons_visible = EINA_FALSE;
- }
switch (co->type)
{
case E_CONFIGURE_OPTION_TYPE_CUSTOM:
@@ -839,6 +821,25 @@ _opt_overlay_show(E_Configure_Option *co, Elm_Object_Item *it)
break;
default:
if (overlay) evas_object_del(overlay);
+ return;
+ }
+ if (e_configure_option_changed_list())
+ {
+ if (!buttons_visible)
+ {
+ elm_layout_signal_emit(layout, "e,action,apply_show", "e");
+ elm_layout_signal_emit(layout, "e,action,discard_show", "e");
+ }
+ buttons_visible = EINA_TRUE;
+ }
+ else
+ {
+ if (buttons_visible)
+ {
+ elm_layout_signal_emit(layout, "e,action,apply_hide", "e");
+ elm_layout_signal_emit(layout, "e,action,discard_hide", "e");
+ }
+ buttons_visible = EINA_FALSE;
}
}