Mercurial > pidgin.yaz
diff pidgin/gtknotify.c @ 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 | 6f4defb6f399 |
children | 15f61e6b15cd |
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)