X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=tests%2Ftesticonview.c;h=325622800b2c578adb12e9e94233d25c544b4d6f;hb=9d0febc9a64a5bfb0fcfc3a88de4757f6c1ff090;hp=8220c9111355aa276f78bd823f910df86dbcd1f6;hpb=2615ebf37e552ad863a5b4c00c1d9bc96a75a557;p=~andy%2Fgtk
diff --git a/tests/testiconview.c b/tests/testiconview.c
index 8220c9111..325622800 100644
--- a/tests/testiconview.c
+++ b/tests/testiconview.c
@@ -12,9 +12,7 @@
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see .
*/
#include
@@ -351,8 +349,7 @@ do_popup_menu (GtkWidget *icon_list,
if (list)
{
path = (GtkTreePath*)list->data;
- g_list_foreach (list->next, (GFunc) gtk_tree_path_free, NULL);
- g_list_free (list);
+ g_list_free_full (list, (GDestroyNotify) gtk_tree_path_free);
}
}
@@ -433,10 +430,10 @@ main (gint argc, gchar **argv)
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_default_size (GTK_WINDOW (window), 700, 400);
- vbox = gtk_vbox_new (FALSE, 0);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (window), vbox);
- paned = gtk_hpaned_new ();
+ paned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
gtk_box_pack_start (GTK_BOX (vbox), paned, TRUE, TRUE, 0);
icon_list = gtk_icon_view_new ();