# HG changeset patch # User salinasv@gmail.com # Date 1250967136 0 # Node ID 4b61989ab1987ea02575e7fcfd349fed82a52f04 # Parent 7115d04c525a616fa8a708557e1840074b7d106f Close the Pounce dialog when you dismiss the last pounce. committer: Paul Aurich diff -r 7115d04c525a -r 4b61989ab198 pidgin/gtknotify.c --- 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