Elm toggle: wd->hidden is already toggled within _toggle_panel.
authorTom Hacohen <tom@stosb.com>
Sun, 8 May 2011 12:50:16 +0000 (12:50 +0000)
committerTom Hacohen <tom@stosb.com>
Sun, 8 May 2011 12:50:16 +0000 (12:50 +0000)
Patch by Jérémy Zurcher

SVN revision: 59278

src/lib/elm_panel.c

index d5c21bb..22dc073 100644 (file)
@@ -484,6 +484,5 @@ elm_panel_toggle(Evas_Object *obj)
    ELM_CHECK_WIDTYPE(obj, widtype);
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
-   wd->hidden = !(wd->hidden);
    _toggle_panel(obj, NULL, "elm,action,panel,toggle", "*");
 }