summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2014-12-06 13:37:35 +0100
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2014-12-06 13:37:35 +0100
commitb7707366877610e5b844d624c2bccbaa40b6d15c (patch)
treeaa9e574885b1e0910266ca5457d99440811c73f7
parent898f16ce463d19ddc11c30030ffff5ff32f94c73 (diff)
Break out this method.
-rw-r--r--src/elm_settingspane.c26
1 files changed, 18 insertions, 8 deletions
diff --git a/src/elm_settingspane.c b/src/elm_settingspane.c
index 2526ef2..eb1db8c 100644
--- a/src/elm_settingspane.c
+++ b/src/elm_settingspane.c
@@ -353,6 +353,23 @@ _content_layout_content_controls_refresh(Evas_Object *w, Elm_Settingspane_Item *
353} 353}
354 354
355static void 355static void
356_content_layout_display(Evas_Object *w, Evas_Object *content)
357{
358 Evas_Object *shown = evas_object_data_get(w, DK_MAIN_PANEL_SHOWED);
359 Evas_Object *hidden = evas_object_data_get(w, DK_MAIN_PANEL_HIDDEN);
360
361 elm_object_part_content_set(hidden, POS_PANEL_CONTENT, content);
362
363 elm_widget_signal_emit(hidden, EMIT_CONTENT_VISIBLE);
364
365 _content_layout_content_hide(w);
366
367 evas_object_data_set(w, DK_MAIN_PANEL_SHOWED, hidden);
368 evas_object_lower(hidden);
369 evas_object_data_set(w, DK_MAIN_PANEL_HIDDEN, shown);
370}
371
372static void
356_content_layout_content_set(Evas_Object *w, Elm_Settingspane_Item *it) 373_content_layout_content_set(Evas_Object *w, Elm_Settingspane_Item *it)
357{ 374{
358 Elm_Settingspane_Item_Data *id = eo_data_scope_get(it, ELM_SETTINGSPANE_ITEM_CLASS); 375 Elm_Settingspane_Item_Data *id = eo_data_scope_get(it, ELM_SETTINGSPANE_ITEM_CLASS);
@@ -370,17 +387,10 @@ _content_layout_content_set(Evas_Object *w, Elm_Settingspane_Item *it)
370 387
371 } 388 }
372 389
373 elm_object_part_content_set(hidden, POS_PANEL_CONTENT, id->panel.tmp_content); 390 _content_layout_display(w, id->panel.tmp_content);
374
375 elm_widget_signal_emit(hidden, EMIT_CONTENT_VISIBLE);
376 evas_object_data_set(hidden, DK_PANEL_ITEM_SHOWN, it); 391 evas_object_data_set(hidden, DK_PANEL_ITEM_SHOWN, it);
377 392
378 _content_layout_content_hide(w);
379
380 evas_object_data_set(w, DK_MAIN_PANEL_SHOWED, hidden);
381 _content_layout_content_controls_refresh(w, it); 393 _content_layout_content_controls_refresh(w, it);
382 evas_object_lower(hidden);
383 evas_object_data_set(w, DK_MAIN_PANEL_HIDDEN, shown);
384} 394}
385 395
386/* 396/*