Mercurial > pidgin.yaz
changeset 20290:008865326919
Fix building on very old gtk where gtk_tree_store_remove didn't return a
value
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 29 Sep 2007 15:06:23 +0000 |
parents | 9b2376dde204 |
children | 3971a4d2552c |
files | pidgin/gtknotify.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtknotify.c Sat Sep 29 14:51:00 2007 +0000 +++ b/pidgin/gtknotify.c Sat Sep 29 15:06:23 2007 +0000 @@ -430,7 +430,12 @@ PIDGIN_MAIL_DATA, &data, -1); if (data->account == account) { if (clear) { +#if GTK_CHECK_VERSION(2,2,0) advanced = gtk_tree_store_remove(treemodel, &iter); +#else + gtk_tree_store_remove(treemodel, &iter); + advanced = (iter.stamp == 0) ? FALSE : TRUE; +#endif purple_notify_close(PURPLE_NOTIFY_EMAILS, data); /* We're completely done if we've processed all entries */ if (!advanced)