From 61348fd4d977fb37af806956a626f845eff07a5b Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Sat, 16 Feb 2013 05:37:44 +0000 Subject: [PATCH] elm panes: fixed wrong signal name. elm.panes.fixed/unfixed -> elm,panes,fixed/unfixed. whoever added this signal should be spanked. I left the signal emission from the code due to backward compatibility. So there is no theme api break. We should remove the previous one when we start EFL 2.0. SVN revision: 83967 --- .../elementary/data/themes/widgets/panes.edc | 8 +++--- legacy/elementary/src/lib/elm_panes.c | 25 ++++++++++++++++--- 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/legacy/elementary/data/themes/widgets/panes.edc b/legacy/elementary/data/themes/widgets/panes.edc index aec229c12a..9e5cb7b5dc 100644 --- a/legacy/elementary/data/themes/widgets/panes.edc +++ b/legacy/elementary/data/themes/widgets/panes.edc @@ -446,7 +446,7 @@ group { name: "elm/panes/vertical/default"; //fix the pane program { name: "panes_fixed"; - signal: "elm.panes.fixed"; + signal: "elm,panes,fixed"; source: "elm"; action: STATE_SET "disabled" 0.0; target: "elm.bar"; @@ -456,7 +456,7 @@ group { name: "elm/panes/vertical/default"; //allow the movement by interaction program { name: "panes_unfixed"; - signal: "elm.panes.unfixed"; + signal: "elm,panes,unfixed"; source: "elm"; action: STATE_SET "default" 0.0; target: "elm.bar"; @@ -779,7 +779,7 @@ group { name: "elm/panes/horizontal/default"; //fix the pane program { name: "panes_fixed"; - signal: "elm.panes.fixed"; + signal: "elm,panes,fixed"; source: "elm"; action: STATE_SET "disabled" 0.0; target: "elm.bar"; @@ -789,7 +789,7 @@ group { name: "elm/panes/horizontal/default"; //allow the movement by interaction program { name: "panes_unfixed"; - signal: "elm.panes.unfixed"; + signal: "elm,panes,unfixed"; source: "elm"; action: STATE_SET "default" 0.0; target: "elm.bar"; diff --git a/legacy/elementary/src/lib/elm_panes.c b/legacy/elementary/src/lib/elm_panes.c index a28ab52f0d..e6d3946e75 100644 --- a/legacy/elementary/src/lib/elm_panes.c +++ b/legacy/elementary/src/lib/elm_panes.c @@ -57,7 +57,14 @@ _elm_panes_smart_theme(Eo *obj, void *_pd, va_list *list) size = elm_panes_content_left_size_get(obj); - if (sd->fixed) elm_layout_signal_emit(obj, "elm.panes.fixed", "elm"); + if (sd->fixed) + { + elm_layout_signal_emit(obj, "elm,panes,fixed", "elm"); + + //TODO: remove this signal on EFL 2.0. + // I left this due to the backward compatibility. + elm_layout_signal_emit(obj, "elm.panes.fixed", "elm"); + } elm_layout_sizing_eval(obj); @@ -395,9 +402,21 @@ _elm_panes_smart_fixed_set(Eo *obj, void *_pd, va_list *list) sd->fixed = !!fixed; if (sd->fixed == EINA_TRUE) - elm_layout_signal_emit(obj, "elm.panes.fixed", "elm"); + { + elm_layout_signal_emit(obj, "elm,panes,fixed", "elm"); + + //TODO: remove this signal on EFL 2.0. + // I left this due to the backward compatibility. + elm_layout_signal_emit(obj, "elm.panes.fixed", "elm"); + } else - elm_layout_signal_emit(obj, "elm.panes.unfixed", "elm"); + { + elm_layout_signal_emit(obj, "elm,panes,unfixed", "elm"); + + //TODO: remove this signal on EFL 2.0. + // I left this due to the backward compatibility. + elm_layout_signal_emit(obj, "elm.panes.unfixed", "elm"); + } } EAPI Eina_Bool