summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitalii Vorobiov <vi.vorobiov@samsung.com>2015-06-09 15:47:44 +0300
committerVyacheslav Reutskiy <v.reutskiy@samsung.com>2015-06-11 11:15:08 +0300
commita2042c49e7037375de53ffa2f63344865a6d34af (patch)
tree94094341d8778616c68643bd7591d6b095293c61
parent0dddee18795fa93eef05fe7fc38d806571c8cfd0 (diff)
Part Manipulation: do not delete all programs if there are no parts anymore
because it's ridiculous. @fix #43688
-rw-r--r--src/bin/ui/connector.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/bin/ui/connector.c b/src/bin/ui/connector.c
index 32535bce..fadaf42d 100644
--- a/src/bin/ui/connector.c
+++ b/src/bin/ui/connector.c
@@ -66,9 +66,6 @@ _del_part(void *data,
66{ 66{
67 App_Data *ap = (App_Data *)data; 67 App_Data *ap = (App_Data *)data;
68 Style *style = ap->project->current_style; 68 Style *style = ap->project->current_style;
69 Eina_List *programs = NULL;
70 Eina_List *l = NULL;
71 char *program_name = NULL;
72 char *part_name = NULL; 69 char *part_name = NULL;
73 Evas_Object *prop_view = NULL; 70 Evas_Object *prop_view = NULL;
74 if (!style) return; 71 if (!style) return;
@@ -86,16 +83,8 @@ _del_part(void *data,
86 if (workspace_edit_object_part_del(ap->workspace, part->name)) 83 if (workspace_edit_object_part_del(ap->workspace, part->name))
87 ui_widget_list_selected_part_del(ui_block_widget_list_get(ap), style); 84 ui_widget_list_selected_part_del(ui_block_widget_list_get(ap), style);
88 85
89 /* If deleted all parts in style, also should deleted all programs*/
90 if (!style->parts) 86 if (!style->parts)
91 { 87 {
92 programs = edje_edit_programs_list_get(style->obj);
93 EINA_LIST_FOREACH(programs, l, program_name)
94 {
95 edje_edit_program_del(style->obj, program_name);
96 }
97 edje_edit_string_list_free(programs);
98
99 ui_signal_list_data_unset(ap->block.signal_list); 88 ui_signal_list_data_unset(ap->block.signal_list);
100 _on_ws_part_unselect(ap, ap->workspace, part_name); 89 _on_ws_part_unselect(ap, ap->workspace, part_name);
101 workspace_highlight_unset(ap->workspace); 90 workspace_highlight_unset(ap->workspace);