summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiscomfitor <michael.blumenkrantz@gmail.com>2013-10-20 00:01:50 +0100
committerdiscomfitor <michael.blumenkrantz@gmail.com>2013-10-20 00:01:50 +0100
commit508bb9a8b5b8aab13923e8a4d7a42e5281540d2b (patch)
treeb685c87e87d42f2f429cac270b2f001d24a74f16
parentb14c94396029a36ea682569f1cd9257c7b904f65 (diff)
fix button on naviframe
-rw-r--r--src/utils/erssd-config.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/utils/erssd-config.c b/src/utils/erssd-config.c
index 9775585..1f89577 100644
--- a/src/utils/erssd-config.c
+++ b/src/utils/erssd-config.c
@@ -37,7 +37,6 @@ static Evas_Object *radios[2];
37 37
38static Evas_Object *naviframe; 38static Evas_Object *naviframe;
39static Evas_Object *feed_item_list; 39static Evas_Object *feed_item_list;
40static Elm_Object_Item *feed_item_list_item;
41 40
42static Elm_Genlist_Item_Class feed_itc; 41static Elm_Genlist_Item_Class feed_itc;
43static Elm_Genlist_Item_Class feed_item_itc; 42static Elm_Genlist_Item_Class feed_item_itc;
@@ -85,13 +84,12 @@ _feed_activate(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
85 84
86 evas_object_data_set(feed_item_list, "feed", feed); 85 evas_object_data_set(feed_item_list, "feed", feed);
87 elm_genlist_clear(feed_item_list); 86 elm_genlist_clear(feed_item_list);
88 elm_object_item_text_set(feed_item_list_item, azy_rss_title_get(feed->rss));
89 iter = eina_hash_iterator_data_new(feed->unread_items); 87 iter = eina_hash_iterator_data_new(feed->unread_items);
90 EINA_ITERATOR_FOREACH(iter, item) 88 EINA_ITERATOR_FOREACH(iter, item)
91 elm_genlist_item_sorted_insert(feed_item_list, &feed_item_itc, item, NULL, 0, (Eina_Compare_Cb)_sort_cb, NULL, item); 89 elm_genlist_item_sorted_insert(feed_item_list, &feed_item_itc, item, NULL, 0, (Eina_Compare_Cb)_sort_cb, NULL, item);
92 eina_iterator_free(iter); 90 eina_iterator_free(iter);
93 } 91 }
94 elm_naviframe_item_promote(feed_item_list_item); 92 elm_naviframe_item_push(naviframe, azy_rss_title_get(feed->rss), NULL, NULL, feed_item_list, NULL);
95} 93}
96 94
97static Eina_Error 95static Eina_Error
@@ -552,11 +550,8 @@ main(int argc, char *argv[])
552 elm_scroller_bounce_set(o, EINA_FALSE, EINA_FALSE); 550 elm_scroller_bounce_set(o, EINA_FALSE, EINA_FALSE);
553 elm_scroller_policy_set(o, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_AUTO); 551 elm_scroller_policy_set(o, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_AUTO);
554 elm_genlist_mode_set(o, ELM_LIST_COMPRESS); 552 elm_genlist_mode_set(o, ELM_LIST_COMPRESS);
555 feed_item_list_item = elm_naviframe_item_simple_push(naviframe, o);
556 evas_object_show(o); 553 evas_object_show(o);
557 554
558 elm_naviframe_item_simple_promote(naviframe, vbox);
559
560 evas_object_show(hbox); 555 evas_object_show(hbox);
561 556
562 evas_object_show(vbox); 557 evas_object_show(vbox);