summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@yahoo.com>2017-06-06 11:29:18 +0300
committerDaniel Zaoui <daniel.zaoui@yahoo.com>2017-06-06 11:29:18 +0300
commit43cfe6d44195aa520f0679389739423efb46ea2f (patch)
treea3dc7e3ab911385e1a8fd5b5c227c31fe0280282
parent446e39c0e39d56f3bfba83a07c2d836ea3c4e9e5 (diff)
Objects_Intro/settings: fix crash when filtering objects
-rw-r--r--src/lib/extensions/objects_introspection/gui.c1
-rw-r--r--src/lib/extensions/objects_introspection/gui.h1
-rw-r--r--src/lib/extensions/objects_introspection/main.c2
3 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/extensions/objects_introspection/gui.c b/src/lib/extensions/objects_introspection/gui.c
index d3c7239..75bee09 100644
--- a/src/lib/extensions/objects_introspection/gui.c
+++ b/src/lib/extensions/objects_introspection/gui.c
@@ -85,6 +85,7 @@ gui_win_create(Eo *__main_parent)
85 elm_toolbar_item_menu_set(settings_it, EINA_TRUE); 85 elm_toolbar_item_menu_set(settings_it, EINA_TRUE);
86 86
87 Eo *settings_menu = elm_toolbar_item_menu_get(settings_it); 87 Eo *settings_menu = elm_toolbar_item_menu_get(settings_it);
88 pub_widgets->settings_menu = settings_menu;
88 Eo *objs_type_it = elm_menu_item_add(settings_menu, NULL, NULL, 89 Eo *objs_type_it = elm_menu_item_add(settings_menu, NULL, NULL,
89 "Objects types display", NULL, NULL); 90 "Objects types display", NULL, NULL);
90 while (objs_types_strings[i]) 91 while (objs_types_strings[i])
diff --git a/src/lib/extensions/objects_introspection/gui.h b/src/lib/extensions/objects_introspection/gui.h
index 72eca3f..1c61e01 100644
--- a/src/lib/extensions/objects_introspection/gui.h
+++ b/src/lib/extensions/objects_introspection/gui.h
@@ -7,6 +7,7 @@ typedef struct
7{ 7{
8 Eo *main; 8 Eo *main;
9 Eo *tb; 9 Eo *tb;
10 Eo *settings_menu;
10 Eo *reload_button; 11 Eo *reload_button;
11 Eo *objs_type_radio; 12 Eo *objs_type_radio;
12 Eo *highlight_ck; 13 Eo *highlight_ck;
diff --git a/src/lib/extensions/objects_introspection/main.c b/src/lib/extensions/objects_introspection/main.c
index fdbdc8c..8ef4c7a 100644
--- a/src/lib/extensions/objects_introspection/main.c
+++ b/src/lib/extensions/objects_introspection/main.c
@@ -788,6 +788,7 @@ objs_type_changed(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
788 elm_radio_value_set(inst->wdgs->objs_type_radio, type); 788 elm_radio_value_set(inst->wdgs->objs_type_radio, type);
789 _config->wdgs_show_type = type; 789 _config->wdgs_show_type = type;
790 _config_save(ext); 790 _config_save(ext);
791 _app_changed(ext);
791} 792}
792 793
793void 794void
@@ -1029,6 +1030,7 @@ _ui_get(Clouseau_Extension *ext, Eo *parent)
1029 1030
1030 efl_key_data_set(inst->wdgs->main, "__extension", ext); 1031 efl_key_data_set(inst->wdgs->main, "__extension", ext);
1031 efl_key_data_set(inst->wdgs->tb, "__extension", ext); 1032 efl_key_data_set(inst->wdgs->tb, "__extension", ext);
1033 efl_key_data_set(inst->wdgs->settings_menu, "__extension", ext);
1032 1034
1033 elm_radio_value_set(inst->wdgs->objs_type_radio, _config->wdgs_show_type); 1035 elm_radio_value_set(inst->wdgs->objs_type_radio, _config->wdgs_show_type);
1034 elm_check_state_set(inst->wdgs->highlight_ck, _config->highlight); 1036 elm_check_state_set(inst->wdgs->highlight_ck, _config->highlight);