From: Rajeev Ranjan Date: Mon, 13 Sep 2010 02:11:47 +0000 (+0900) Subject: [src/lib/Elementary.h.in, src/lib/elm_panes.c] Removed the extra API added for fixing... X-Git-Tag: origin~225 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=64461aa5d55d0bb8951943787bb2f8af1dfdde0d;p=framework%2Fuifw%2Felementary.git [src/lib/Elementary.h.in, src/lib/elm_panes.c] Removed the extra API added for fixing the movement and added disable_hook for this in elm_panes. --- diff --git a/src/lib/Elementary.h.in b/src/lib/Elementary.h.in index 5b4ba14..9eda929 100644 --- a/src/lib/Elementary.h.in +++ b/src/lib/Elementary.h.in @@ -1667,8 +1667,6 @@ extern "C" { EAPI void elm_panes_content_left_size_set(Evas_Object *obj, double size); EAPI void elm_panes_horizontal_set(Evas_Object *obj, Eina_Bool horizontal); EAPI Eina_Bool elm_panes_horizontal_is(const Evas_Object *obj); - EAPI void elm_panes_fixed_set(Evas_Object *obj, Eina_Bool fixed); - EAPI Eina_Bool elm_panes_fixed_is(const Evas_Object *obj); typedef enum _Elm_Flip_Mode { diff --git a/src/lib/elm_panes.c b/src/lib/elm_panes.c index c0acb3e..f11e44d 100644 --- a/src/lib/elm_panes.c +++ b/src/lib/elm_panes.c @@ -135,6 +135,21 @@ _unpress(void *data, Evas_Object *obj __UNUSED__ , const char *emission __UNUSED } } +static void +_disable_hook(Evas_Object *obj) +{ + Widget_Data *wd = elm_widget_data_get(obj); + if (!wd) return; + if (elm_widget_disabled_get(obj)) + { + edje_object_signal_emit(wd->panes, "elm.state,disabled", "elm"); + } + else + { + edje_object_signal_emit(wd->panes, "elm.state,enabled", "elm"); + } +} + /** * Add a new panes to the parent * @@ -158,6 +173,7 @@ elm_panes_add(Evas_Object *parent) elm_widget_sub_object_add(parent, obj); elm_widget_data_set(obj, wd); elm_widget_del_hook_set(obj, _del_hook); + elm_widget_disable_hook_set(obj, _disable_hook); elm_widget_theme_hook_set(obj, _theme_hook); wd->panes = edje_object_add(e); @@ -278,24 +294,3 @@ elm_panes_horizontal_is(const Evas_Object *obj) return wd->horizontal; } - -EAPI void -elm_panes_fixed_set(Evas_Object *obj, Eina_Bool fixed) -{ - Widget_Data *wd = elm_widget_data_get(obj); - - wd->fixed = fixed; - if(wd->fixed == EINA_TRUE) - edje_object_signal_emit(wd->panes, "elm.fixed", "movement.decider"); - else - edje_object_signal_emit(wd->panes, "elm.unfixed", "movement.decider"); -} - -EAPI Eina_Bool -elm_panes_fixed_is(const Evas_Object *obj) -{ - Widget_Data *wd = elm_widget_data_get(obj); - - return wd->fixed; -} -