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
This commit is contained in:
parent
0bd279221f
commit
61348fd4d9
|
@ -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";
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue