aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-03-29 21:12:10 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-03-29 21:25:03 +0800
commitb112ea2692ac284cbe3f75ea6e3bbd4b0f9d232f (patch)
tree0627ea3e8d8708562923daabfaa461c75e244163
parent813daa2a8e1e5c46afbf01c12d5c989ae74efa34 (diff)
downloadgsoc2013-empathy-b112ea2692ac284cbe3f75ea6e3bbd4b0f9d232f.tar
gsoc2013-empathy-b112ea2692ac284cbe3f75ea6e3bbd4b0f9d232f.tar.gz
gsoc2013-empathy-b112ea2692ac284cbe3f75ea6e3bbd4b0f9d232f.tar.bz2
gsoc2013-empathy-b112ea2692ac284cbe3f75ea6e3bbd4b0f9d232f.tar.lz
gsoc2013-empathy-b112ea2692ac284cbe3f75ea6e3bbd4b0f9d232f.tar.xz
gsoc2013-empathy-b112ea2692ac284cbe3f75ea6e3bbd4b0f9d232f.tar.zst
gsoc2013-empathy-b112ea2692ac284cbe3f75ea6e3bbd4b0f9d232f.zip
ev-sidebar: use gtk_list_store_insert_with_values()
-rw-r--r--src/ev-sidebar.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ev-sidebar.c b/src/ev-sidebar.c
index a50736982..a9eca76d9 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);