# HG changeset patch # User Stu Tomlinson # Date 1176811925 0 # Node ID 7d1847ba34845c76a96d6c9cacbc2ef41205f0a0 # Parent d930a82cda63b28004f7a2e8cdeaa4140e6df10f Fix Gtk+ 2.0 support diff -r d930a82cda63 -r 7d1847ba3484 pidgin/gtklog.c --- a/pidgin/gtklog.c Tue Apr 17 11:40:13 2007 +0000 +++ b/pidgin/gtklog.c Tue Apr 17 12:12:05 2007 +0000 @@ -226,6 +226,7 @@ GtkTreePath *path = gtk_tree_model_get_path(GTK_TREE_MODEL(treestore), iter); gboolean first = !gtk_tree_path_prev(path); +#if GTK_CHECK_VERSION(2,2,0) if (!gtk_tree_store_remove(treestore, iter) && first) { /* iter was the last child at its level */ @@ -237,6 +238,10 @@ } } gtk_tree_path_free(path); +#else + gtk_tree_store_remove(treestore, iter); + gtk_tree_path_free(path); +#endif } delete_log_cleanup_cb(data);