pidgin: dbaa86f7: Close the Pounce dialog when you dismiss...
darkrain42 at pidgin.im
darkrain42 at pidgin.im
Sat Aug 22 14:56:03 EDT 2009
-----------------------------------------------------------------
Revision: dbaa86f7e1344923764e572cebfb30ce7c53ee80
Ancestor: 74fbeb49668ced0a5435a310d7fcb0bb6fb504f5
Author: salinasv at gmail.com
Date: 2009-08-22T18:52:16
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/dbaa86f7e1344923764e572cebfb30ce7c53ee80
Modified files:
pidgin/gtknotify.c
ChangeLog:
Close the Pounce dialog when you dismiss the last pounce.
-------------- next part --------------
============================================================
--- pidgin/gtknotify.c 063b0e7309859bc362161b08a1b26eefffe4cad2
+++ pidgin/gtknotify.c bd6e39618e9b86dcf7576d5a620742cdf0f688eb
@@ -184,10 +184,12 @@ append_to_list(GtkTreeModel *model, GtkT
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 @@ pounce_response_dismiss()
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
More information about the Commits
mailing list