summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2015-03-22 16:45:01 +0100
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2015-10-05 12:56:26 +0200
commit0df5632e3d6b137cb036008800009c59aac1f831 (patch)
tree881c7a94d6ae95c69b556a07bab3869d2102f4d5
parentda34631bf4a6034207d2fa7d76721aef1154732a (diff)
settingspane: Make the navbar clickable
-rw-r--r--src/lib/elc_settingspane.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/elc_settingspane.c b/src/lib/elc_settingspane.c
index 369d25068..ed4239d04 100644
--- a/src/lib/elc_settingspane.c
+++ b/src/lib/elc_settingspane.c
@@ -197,6 +197,12 @@ conf_menu_back_cb(void *data EINA_UNUSED, Evas_Object *obj, const char *emission
197 * ================================= 197 * =================================
198 */ 198 */
199static void 199static void
200_title_bar_cb(void *data , Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
201{
202 eo_do(data, elm_obj_settingspane_item_focus());
203}
204
205static void
200_title_bar_refresh(Evas_Object *w) 206_title_bar_refresh(Evas_Object *w)
201{ 207{
202 Elm_Object_Item *it, *walker; 208 Elm_Object_Item *it, *walker;
@@ -216,6 +222,7 @@ _title_bar_refresh(Evas_Object *w)
216 bt = elm_button_add(wd->title_box); 222 bt = elm_button_add(wd->title_box);
217 elm_object_style_set(bt, "navlink"); 223 elm_object_style_set(bt, "navlink");
218 elm_object_text_set(bt, id->name); 224 elm_object_text_set(bt, id->name);
225 evas_object_smart_callback_add(bt, "clicked", _title_bar_cb, walker);
219 evas_object_show(bt); 226 evas_object_show(bt);
220 227
221 elm_box_pack_start(wd->title_box, bt); 228 elm_box_pack_start(wd->title_box, bt);