diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-03-23 07:31:44 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-03-23 07:31:44 +0800 |
commit | 639d835ec0007d506988b973bf349f544adc5d7e (patch) | |
tree | 702643aec6b56c5338b3251c8c8161ff0d03073d /mail | |
parent | bcfe4d37c2b66b657be0126005de1b3b2157885e (diff) | |
download | gsoc2013-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')
-rw-r--r-- | mail/ChangeLog | 25 | ||||
-rw-r--r-- | mail/mail-accounts.c | 9 | ||||
-rw-r--r-- | mail/mail-callbacks.c | 17 |
3 files changed, 32 insertions, 19 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 1679f25074..ae7bf1a4e4 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +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. + 2001-03-22 Radek Doulik <rodo@ximian.com> * mail-display.c (mail_display_new): connect to button_press_event @@ -6,9 +12,8 @@ address fields and on links, later we should add popups for images and maybe some more? any ideas? (html_iframe_created): new signal handler, takes care of - connecting to button_press_event of all iframes - : plus bunch of empty methods for popup menu items - to be - implemented + connecting to button_press_event of all iframes : plus bunch of + empty methods for popup menu items - to be implemented (html_motion_notify_event): new handler, highlights addresses by underline (html_enter_notify_event): take care of enter event @@ -32,25 +37,25 @@ 0-part messages * mail-config-druid.c (incoming_check, incoming_type_changed, - transport_check, transport_type_changed): - * mail-account-editor.c (transport_type_changed, source_check): - Use the new URL part macros + transport_check, transport_type_changed): * mail-account-editor.c + (transport_type_changed, source_check): Use the new URL part + macros * mail-config.c (check_service_check): Use provider authtype list if not connecting. 2001-03-20 Miguel de Icaza <miguel@ximian.com> - * folder-browser-factory.c: Added new icons. + * folder-browser-factory.c: Added new icons. 2001-03-18 Miguel de Icaza <miguel@ximian.com> - * folder-browser-factory.c: Remove duplicated verb. + * folder-browser-factory.c: Remove duplicated verb. 2001-03-20 Iain Holmes <iain@ximian.com> - * importers/evolution-mbox-importer.c (process_item_fn): Step the parser - so that it will import more than one message. + * importers/evolution-mbox-importer.c (process_item_fn): Step the + parser so that it will import more than one message. 2001-03-20 JP Rosevear <jpr@ximian.com> 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); diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index dbaa80a822..9ee434d16c 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -1199,21 +1199,21 @@ expunge_folder (BonoboUIComponent *uih, void *user_data, const char *path) } static void -filter_druid_clicked (GtkWidget *w, int button, FolderBrowser *fb) +filter_druid_clicked (GtkWidget *dialog, int button, FolderBrowser *fb) { FilterContext *fc; if (button == 0) { char *user; - fc = gtk_object_get_data (GTK_OBJECT (w), "context"); + fc = gtk_object_get_data (GTK_OBJECT (dialog), "context"); user = g_strdup_printf ("%s/filters.xml", evolution_dir); rule_context_save ((RuleContext *)fc, user); g_free (user); } if (button != -1) { - gnome_dialog_close (GNOME_DIALOG (w)); + gnome_dialog_close (GNOME_DIALOG (dialog)); } } @@ -1229,7 +1229,7 @@ filter_edit (BonoboUIComponent *uih, void *user_data, const char *path) FolderBrowser *fb = FOLDER_BROWSER (user_data); FilterContext *fc; char *user, *system; - GtkWidget *w; + GtkWidget *dialog; fc = filter_context_new (); user = g_strdup_printf ("%s/filters.xml", evolution_dir); @@ -1239,7 +1239,6 @@ filter_edit (BonoboUIComponent *uih, void *user_data, const char *path) g_free (system); if (((RuleContext *)fc)->error) { - GtkWidget *dialog; gchar *err; err = g_strdup_printf (_("Error loading filter information:\n%s"), @@ -1251,10 +1250,10 @@ filter_edit (BonoboUIComponent *uih, void *user_data, const char *path) return; } - w = (GtkWidget *)filter_editor_new(fc, filter_source_names); - gtk_object_set_data_full (GTK_OBJECT (w), "context", fc, (GtkDestroyNotify)gtk_object_unref); - gtk_signal_connect (GTK_OBJECT (w), "clicked", filter_druid_clicked, fb); - gtk_widget_show (GTK_WIDGET (w)); + dialog = (GtkWidget *)filter_editor_new (fc, filter_source_names); + gtk_object_set_data_full (GTK_OBJECT (dialog), "context", fc, (GtkDestroyNotify)gtk_object_unref); + gtk_signal_connect (GTK_OBJECT (dialog), "clicked", filter_druid_clicked, fb); + gtk_widget_show (GTK_WIDGET (dialog)); } void |