aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-accounts.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-03-23 07:31:44 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-03-23 07:31:44 +0800
commit639d835ec0007d506988b973bf349f544adc5d7e (patch)
tree702643aec6b56c5338b3251c8c8161ff0d03073d /mail/mail-accounts.c
parentbcfe4d37c2b66b657be0126005de1b3b2157885e (diff)
downloadgsoc2013-evolution-639d835ec0007d506988b973bf349f544adc5d7e.tar.gz
gsoc2013-evolution-639d835ec0007d506988b973bf349f544adc5d7e.tar.zst
gsoc2013-evolution-639d835ec0007d506988b973bf349f544adc5d7e.zip
New callback to handle a double-click event in the account clist.
2001-03-22 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (mail_double_click): New callback to handle a double-click event in the account clist. (construct): Setup the double-click event for the account list. svn path=/trunk/; revision=8908
Diffstat (limited to 'mail/mail-accounts.c')
-rw-r--r--mail/mail-accounts.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/mail/mail-accounts.c b/mail/mail-accounts.c
index 9c48df2c00..dfe2a1248f 100644
--- a/mail/mail-accounts.c
+++ b/mail/mail-accounts.c
@@ -210,6 +210,13 @@ mail_edit (GtkButton *button, gpointer data)
}
static void
+mail_double_click (GtkWidget *widget, GdkEventButton *event, gpointer data)
+{
+ if (event->type == GDK_2BUTTON_PRESS)
+ mail_edit (NULL, data);
+}
+
+static void
mail_delete (GtkButton *button, gpointer data)
{
MailAccountsDialog *dialog = data;
@@ -459,6 +466,8 @@ construct (MailAccountsDialog *dialog)
GTK_SIGNAL_FUNC (mail_select), dialog);
gtk_signal_connect (GTK_OBJECT (dialog->mail_accounts), "unselect-row",
GTK_SIGNAL_FUNC (mail_unselect), dialog);
+ gtk_signal_connect (GTK_OBJECT (dialog->mail_accounts), "button_press_event",
+ mail_double_click, dialog);
dialog->mail_add = GTK_BUTTON (glade_xml_get_widget (gui, "cmdMailAdd"));
gtk_signal_connect (GTK_OBJECT (dialog->mail_add), "clicked",
GTK_SIGNAL_FUNC (mail_add), dialog);