X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fcheckbox-treeview.c;h=324943ab84364f743040503379d086acdddf9b0e;hb=e89158e8abd2dae27d985e3574eb5aa1d265fc66;hp=de85d18ad52aab45f4b6f8ce5b12e280ad2c144e;hpb=7557c4bf71b244226c7a248177715dade26aabe5;p=pspp diff --git a/src/ui/gui/checkbox-treeview.c b/src/ui/gui/checkbox-treeview.c index de85d18ad5..324943ab84 100644 --- a/src/ui/gui/checkbox-treeview.c +++ b/src/ui/gui/checkbox-treeview.c @@ -1,5 +1,5 @@ /* PSPPIRE - a graphical user interface for PSPP. - Copyright (C) 2007 Free Software Foundation + Copyright (C) 2007, 2012 Free Software Foundation This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -55,7 +55,6 @@ treeview_create_checkbox_model (GtkTreeView *treeview, list = gtk_list_store_new (N_CHECKBOX_COLUMNS, G_TYPE_STRING, G_TYPE_BOOLEAN); - gtk_tree_view_set_model (GTK_TREE_VIEW (treeview), GTK_TREE_MODEL (list)); for (i = 0; i < n_items; i++) { @@ -67,6 +66,9 @@ treeview_create_checkbox_model (GtkTreeView *treeview, (default_items & (1u << i)) != 0, -1); } + + gtk_tree_view_set_model (GTK_TREE_VIEW (treeview), GTK_TREE_MODEL (list)); + g_object_unref (list); } static void