[empathy] ev-sidebar: use gtk_list_store_insert_with_values()
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] ev-sidebar: use gtk_list_store_insert_with_values()
- Date: Thu, 29 Mar 2012 13:33:55 +0000 (UTC)
commit b112ea2692ac284cbe3f75ea6e3bbd4b0f9d232f
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Mar 29 15:12:10 2012 +0200
ev-sidebar: use gtk_list_store_insert_with_values()
src/ev-sidebar.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/ev-sidebar.c b/src/ev-sidebar.c
index a507369..a9eca76 100644
--- a/src/ev-sidebar.c
+++ b/src/ev-sidebar.c
@@ -301,8 +301,7 @@ ev_sidebar_add_page (EvSidebar *ev_sidebar,
gtk_widget_show (main_widget);
gtk_notebook_append_page (GTK_NOTEBOOK (ev_sidebar->priv->notebook), main_widget, NULL);
- gtk_list_store_append (GTK_LIST_STORE (model), &iter);
- gtk_list_store_set (GTK_LIST_STORE (model), &iter,
+ gtk_list_store_insert_with_values (GTK_LIST_STORE (model), &iter, -1,
PAGE_COLUMN_ID, page_id,
PAGE_COLUMN_TITLE, title,
-1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]