From b547a7845c48e18477e7d52fb16c1910df96be1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grisez?= Date: Thu, 24 Sep 2015 00:13:14 +0200 Subject: [PATCH] Fix missing bookmark icon in the address bar --- gtk/friendlist.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/friendlist.c b/gtk/friendlist.c index f3a8fbdcc..65a9c73e6 100644 --- a/gtk/friendlist.c +++ b/gtk/friendlist.c @@ -616,6 +616,8 @@ static void linphone_gtk_friend_list_init(GtkWidget *friendlist){ gtk_tree_view_set_search_equal_func(GTK_TREE_VIEW(friendlist),friend_search_func,NULL,NULL); gtk_tree_sortable_set_sort_func(GTK_TREE_SORTABLE(store),FRIEND_NAME,friend_sort,NULL,NULL); gtk_tree_selection_set_mode (select, GTK_SELECTION_SINGLE); + + g_object_set_data(G_OBJECT(friendlist), "friendlist_initialized", (gpointer)TRUE); } void linphone_gtk_show_directory_search(void){ @@ -683,7 +685,7 @@ void linphone_gtk_show_friends(void){ LinphoneChatRoom *cr=NULL; linphone_gtk_show_directory_search(); - if (gtk_tree_view_get_model(GTK_TREE_VIEW(friendlist))==NULL){ + if (!g_object_get_data(G_OBJECT(friendlist), "friendlist_initialized")) { linphone_gtk_friend_list_init(friendlist); }