comparison 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
comparison
equal deleted inserted replaced
20289:9b2376dde204 20290:008865326919
428 advanced = FALSE; 428 advanced = FALSE;
429 gtk_tree_model_get(GTK_TREE_MODEL(treemodel), &iter, 429 gtk_tree_model_get(GTK_TREE_MODEL(treemodel), &iter,
430 PIDGIN_MAIL_DATA, &data, -1); 430 PIDGIN_MAIL_DATA, &data, -1);
431 if (data->account == account) { 431 if (data->account == account) {
432 if (clear) { 432 if (clear) {
433 #if GTK_CHECK_VERSION(2,2,0)
433 advanced = gtk_tree_store_remove(treemodel, &iter); 434 advanced = gtk_tree_store_remove(treemodel, &iter);
435 #else
436 gtk_tree_store_remove(treemodel, &iter);
437 advanced = (iter.stamp == 0) ? FALSE : TRUE;
438 #endif
434 purple_notify_close(PURPLE_NOTIFY_EMAILS, data); 439 purple_notify_close(PURPLE_NOTIFY_EMAILS, data);
435 /* We're completely done if we've processed all entries */ 440 /* We're completely done if we've processed all entries */
436 if (!advanced) 441 if (!advanced)
437 return NULL; 442 return NULL;
438 } else if (data->count > 0) { 443 } else if (data->count > 0) {