changeset 28412:4b61989ab198

Close the Pounce dialog when you dismiss the last pounce. committer: Paul Aurich <paul@darkrain42.org>
author salinasv@gmail.com
date Sat, 22 Aug 2009 18:52:16 +0000
parents 7115d04c525a
children f1a8a28432f4 299ef6fd1a23
files pidgin/gtknotify.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtknotify.c	Sat Aug 22 18:30:53 2009 +0000
+++ b/pidgin/gtknotify.c	Sat Aug 22 18:52:16 2009 +0000
@@ -184,10 +184,12 @@
 	GList **list = data;
 	*list = g_list_prepend(*list, gtk_tree_path_copy(path));
 }
+
 static void
 pounce_response_dismiss()
 {
 	GtkTreeSelection *selection;
+	GtkTreeIter iter;
 	GList *list = NULL;
 
 	selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(pounce_dialog->treeview));
@@ -203,6 +205,9 @@
 		gtk_tree_path_free(list->data);
 		list = g_list_delete_link(list, list);
 	}
+
+	if (!gtk_tree_model_get_iter_first(GTK_TREE_MODEL(pounce_dialog->treemodel), &iter))
+		pounce_response_close(pounce_dialog);
 }
 
 static void