pidgin: b0c790d3: Close the mail dialog at signoff if it's...
darkrain42 at pidgin.im
darkrain42 at pidgin.im
Fri Jul 3 00:31:38 EDT 2009
-----------------------------------------------------------------
Revision: b0c790d3f728d16ba5b6ec946aa3550c1adc849d
Ancestor: 8dbc98739d1e6fdb0b097c4bce889455922c1012
Author: darkrain42 at pidgin.im
Date: 2009-07-03T02:51:20
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/b0c790d3f728d16ba5b6ec946aa3550c1adc849d
Modified files:
pidgin/gtknotify.c
ChangeLog:
Close the mail dialog at signoff if it's empty. Closes #9345.
-------------- next part --------------
============================================================
--- pidgin/gtknotify.c b41bdecc68c52a91847502e863731a9c3c70422c
+++ pidgin/gtknotify.c eccbaf14339a33d5ab7035379e00a4ed16eb8143
@@ -1561,8 +1561,15 @@ signed_off_cb(PurpleConnection *gc, gpoi
static void
signed_off_cb(PurpleConnection *gc, gpointer unused)
{
+ GtkTreeIter iter;
+
/* Clear any pending emails for this account */
pidgin_notify_emails(gc, 0, FALSE, NULL, NULL, NULL, NULL);
+
+ if (mail_dialog != NULL &&
+ !gtk_tree_model_get_iter_first(GTK_TREE_MODEL(mail_dialog->treemodel), &iter)) {
+ reset_mail_dialog(NULL);
+ }
}
static void*
More information about the Commits
mailing list