summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2014-11-28 11:24:57 +0100
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2014-11-28 11:24:57 +0100
commit1253b83047d40b73e417d3f1895495fa3c5436b5 (patch)
tree2f89008efa69bdcc74dbabb1e91f79b7e1d1f15f
parent11913bd581aa3b7ce1d890232a1699f139cd4537 (diff)
Added logs
-rw-r--r--src/elm_settingspane.c10
-rw-r--r--src/elm_settingspane.h4
2 files changed, 11 insertions, 3 deletions
diff --git a/src/elm_settingspane.c b/src/elm_settingspane.c
index 59c2e9f..2ab0984 100644
--- a/src/elm_settingspane.c
+++ b/src/elm_settingspane.c
@@ -315,6 +315,8 @@ _item_stack_push(Evas_Object *obj, Elm_Settingspane_Item *item)
315 Elm_Settingspane_Item_Data *id = eo_data_scope_get(item, ELM_SETTINGSPANE_ITEM_CLASS); 315 Elm_Settingspane_Item_Data *id = eo_data_scope_get(item, ELM_SETTINGSPANE_ITEM_CLASS);
316 Elm_Settingspane_Data *wd = eo_data_scope_get(id->sw, ELM_SETTINGSPANE_CLASS); 316 Elm_Settingspane_Data *wd = eo_data_scope_get(id->sw, ELM_SETTINGSPANE_CLASS);
317 317
318 DBG("PUSHING");
319
318 wd->stack = eina_list_append(wd->stack, item); 320 wd->stack = eina_list_append(wd->stack, item);
319 if (eina_list_count(wd->stack) > 1) 321 if (eina_list_count(wd->stack) > 1)
320 elm_widget_signal_emit(id->sw, "state,back,enabled", "conf"); 322 elm_widget_signal_emit(id->sw, "state,back,enabled", "conf");
@@ -330,6 +332,8 @@ _item_stack_pop(Evas_Object *obj)
330{ 332{
331 Elm_Settingspane_Data *wd = eo_data_scope_get(obj, ELM_SETTINGSPANE_CLASS); 333 Elm_Settingspane_Data *wd = eo_data_scope_get(obj, ELM_SETTINGSPANE_CLASS);
332 334
335 DBG("POPPING");
336
333 if (eina_list_count(wd->stack) < 1) 337 if (eina_list_count(wd->stack) < 1)
334 return; //trololol lets pop item zero 338 return; //trololol lets pop item zero
335 339
@@ -385,7 +389,7 @@ _elm_settingspane_evas_object_smart_add(Eo *obj, Elm_Settingspane_Data *pd)
385 389
386 if (!elm_layout_file_set(obj, "theme.edj", "/conf/base")) 390 if (!elm_layout_file_set(obj, "theme.edj", "/conf/base"))
387 { 391 {
388 //CRI("Failed to set theme file"); 392 CRI("Failed to set theme file");
389 return; 393 return;
390 } 394 }
391 elm_layout_signal_callback_add(obj, "action,back", "conf", conf_menu_back_cb, obj); 395 elm_layout_signal_callback_add(obj, "action,back", "conf", conf_menu_back_cb, obj);
@@ -515,8 +519,8 @@ elm_settingspane_item_class_new(void)
515{ 519{
516 Elm_Settingspane_Item_Class *result; 520 Elm_Settingspane_Item_Class *result;
517 result = calloc(1, sizeof(Elm_Settingspane_Item_Class)); 521 result = calloc(1, sizeof(Elm_Settingspane_Item_Class));
518 if (!result) { } 522 if (!result)
519// ERR("class allocation failed"); 523 ERR("class allocation failed");
520 return result; 524 return result;
521} 525}
522 526
diff --git a/src/elm_settingspane.h b/src/elm_settingspane.h
index c835022..a63b78a 100644
--- a/src/elm_settingspane.h
+++ b/src/elm_settingspane.h
@@ -5,6 +5,10 @@
5 5
6#include <Elementary.h> 6#include <Elementary.h>
7 7
8#define ERR(...) EINA_LOG_ERR(__VA_ARGS__);
9#define DBG(...) EINA_LOG_ERR(__VA_ARGS__);
10#define CRI(...) EINA_LOG_CRIT(__VA_ARGS__);
11
8typedef enum { 12typedef enum {
9 NORMAL_TEXT, DESCRIPTION_TEXT 13 NORMAL_TEXT, DESCRIPTION_TEXT
10} Elm_Settingspane_Item_Text_Position; 14} Elm_Settingspane_Item_Text_Position;