aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_widget_label.c
diff options
context:
space:
mode:
authorAndreas Volz <linux@brachttal.net>2009-04-14 21:18:16 +0000
committerAndreas Volz <linux@brachttal.net>2009-04-14 21:18:16 +0000
commitc72e584ebfd7fe47b6b976c220060addf975d28d (patch)
tree567f3d137d87c34f7e09b6e98a1a874e3ff74111 /src/bin/e_widget_label.c
parentonly E_FREE - no need to check anything (diff)
downloadenlightenment-c72e584ebfd7fe47b6b976c220060addf975d28d.tar.gz
theme enabled/disabled support for label widget
SVN revision: 40058
Diffstat (limited to 'src/bin/e_widget_label.c')
-rw-r--r--src/bin/e_widget_label.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/bin/e_widget_label.c b/src/bin/e_widget_label.c
index 132a4a5d6..5e07f09aa 100644
--- a/src/bin/e_widget_label.c
+++ b/src/bin/e_widget_label.c
@@ -10,6 +10,7 @@ struct _E_Widget_Data
};
static void _e_wid_del_hook(Evas_Object *obj);
+static void _e_wid_disable_hook(Evas_Object *obj);
/* local subsystem functions */
/* externally accessible functions */
@@ -22,6 +23,7 @@ e_widget_label_add(Evas *evas, const char *label)
obj = e_widget_add(evas);
e_widget_del_hook_set(obj, _e_wid_del_hook);
+ e_widget_disable_hook_set(obj, _e_wid_disable_hook);
wd = calloc(1, sizeof(E_Widget_Data));
e_widget_data_set(obj, wd);
@@ -61,3 +63,15 @@ _e_wid_del_hook(Evas_Object *obj)
free(wd);
}
+static void
+_e_wid_disable_hook(Evas_Object *obj)
+{
+ E_Widget_Data *wd;
+
+ wd = e_widget_data_get(obj);
+ if (e_widget_disabled_get(obj))
+ edje_object_signal_emit(wd->text, "e,state,disabled", "e");
+ else
+ edje_object_signal_emit(wd->text, "e,state,enabled", "e");
+}
+