Mercurial > pidgin.yaz
changeset 19316:c5898e7d70fa
Open emails by doubleclicking the row.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 17 Aug 2007 18:57:22 +0000 |
parents | 6a7f4242fabf |
children | 94635ef0d772 a5843f3b70f3 |
files | pidgin/gtknotify.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtknotify.c Fri Aug 17 18:32:53 2007 +0000 +++ b/pidgin/gtknotify.c Fri Aug 17 18:57:22 2007 +0000 @@ -151,6 +151,10 @@ mail_dialog = NULL; } +static void email_row_activated_cb(GtkTreeView *tv, GtkTreePath *path, GtkTreeViewColumn *col, gpointer data) { + email_response_cb(GTK_DIALOG(mail_dialog->dialog), GTK_RESPONSE_YES, mail_dialog); +} + static void reset_mail_dialog(GtkDialog *dialog) { @@ -377,6 +381,7 @@ G_CALLBACK(email_response_cb), mail_dialog); g_signal_connect(G_OBJECT(gtk_tree_view_get_selection(GTK_TREE_VIEW(mail_dialog->treeview))), "changed", G_CALLBACK(selection_changed_cb), mail_dialog); + g_signal_connect(G_OBJECT(mail_dialog->treeview), "row-activated", G_CALLBACK(email_row_activated_cb), NULL); gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(mail_dialog->treeview), FALSE); gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(mail_dialog->treeview), TRUE);