Mercurial > pidgin.yaz
changeset 16231:7d1847ba3484
Fix Gtk+ 2.0 support
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Tue, 17 Apr 2007 12:12:05 +0000 |
parents | d930a82cda63 |
children | c4818bf183a6 |
files | pidgin/gtklog.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);