diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-07-10 07:56:52 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-07-10 07:56:52 +0800 |
commit | 01b400424b0554f947c2d1acda104ffaf8b5aedc (patch) | |
tree | 0acb3527425ea5d3541a5e6dd3549ec40358a603 /mail | |
parent | 439bc7a3ec18635897c63d572e46288775fd5594 (diff) | |
download | gsoc2013-evolution-01b400424b0554f947c2d1acda104ffaf8b5aedc.tar gsoc2013-evolution-01b400424b0554f947c2d1acda104ffaf8b5aedc.tar.gz gsoc2013-evolution-01b400424b0554f947c2d1acda104ffaf8b5aedc.tar.bz2 gsoc2013-evolution-01b400424b0554f947c2d1acda104ffaf8b5aedc.tar.lz gsoc2013-evolution-01b400424b0554f947c2d1acda104ffaf8b5aedc.tar.xz gsoc2013-evolution-01b400424b0554f947c2d1acda104ffaf8b5aedc.tar.zst gsoc2013-evolution-01b400424b0554f947c2d1acda104ffaf8b5aedc.zip |
Handle application/pgp using the text/plain handler.
2001-07-09 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (setup_mime_tables): Handle application/pgp using
the text/plain handler.
* mail-account-gui.c (get_focused_widget): New function to
determine which widget is focused.
svn path=/trunk/; revision=10940
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 4 | ||||
-rw-r--r-- | mail/mail-account-gui.c | 44 |
2 files changed, 24 insertions, 24 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index bf5971477c..860313a61d 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -3,8 +3,8 @@ * mail-format.c (setup_mime_tables): Handle application/pgp using the text/plain handler. - * mail-account-gui.c (get_sensitive_widget): New function to determine - which widget is focused. + * mail-account-gui.c (get_focused_widget): New function to + determine which widget is focused. * mail-account-editor.c (apply_changes): Not only flip to the notebook page that wasn't finished, but also grab the focus of the diff --git a/mail/mail-account-gui.c b/mail/mail-account-gui.c index c922ff0f93..ae0b0eae9a 100644 --- a/mail/mail-account-gui.c +++ b/mail/mail-account-gui.c @@ -62,7 +62,7 @@ is_email (const char *address) } static GtkWidget * -get_sensitive_widget (GtkWidget *def, ...) +get_focused_widget (GtkWidget *def, ...) { GtkWidget *widget, *ret = NULL; va_list args; @@ -93,18 +93,18 @@ mail_account_gui_identity_complete (MailAccountGui *gui, GtkWidget **incomplete) text = gtk_entry_get_text (gui->full_name); if (!text || !*text) { if (incomplete) - *incomplete = get_sensitive_widget (GTK_WIDGET (gui->full_name), - GTK_WIDGET (gui->email_address), - NULL); + *incomplete = get_focused_widget (GTK_WIDGET (gui->full_name), + GTK_WIDGET (gui->email_address), + NULL); return FALSE; } text = gtk_entry_get_text (gui->email_address); if (!text || !is_email (text)) { if (incomplete) - *incomplete = get_sensitive_widget (GTK_WIDGET (gui->email_address), - GTK_WIDGET (gui->full_name), - NULL); + *incomplete = get_focused_widget (GTK_WIDGET (gui->email_address), + GTK_WIDGET (gui->full_name), + NULL); return FALSE; } @@ -124,10 +124,10 @@ service_complete (MailAccountGuiService *service, GtkWidget **incomplete) text = gtk_entry_get_text (service->hostname); if (!text || !*text) { if (incomplete) - *incomplete = get_sensitive_widget (GTK_WIDGET (service->hostname), - GTK_WIDGET (service->username), - GTK_WIDGET (service->path), - NULL); + *incomplete = get_focused_widget (GTK_WIDGET (service->hostname), + GTK_WIDGET (service->username), + GTK_WIDGET (service->path), + NULL); return FALSE; } } @@ -136,10 +136,10 @@ service_complete (MailAccountGuiService *service, GtkWidget **incomplete) text = gtk_entry_get_text (service->username); if (!text || !*text) { if (incomplete) - *incomplete = get_sensitive_widget (GTK_WIDGET (service->username), - GTK_WIDGET (service->path), - GTK_WIDGET (service->hostname), - NULL); + *incomplete = get_focused_widget (GTK_WIDGET (service->username), + GTK_WIDGET (service->path), + GTK_WIDGET (service->hostname), + NULL); return FALSE; } } @@ -148,10 +148,10 @@ service_complete (MailAccountGuiService *service, GtkWidget **incomplete) text = gtk_entry_get_text (service->path); if (!text || !*text) { if (incomplete) - *incomplete = get_sensitive_widget (GTK_WIDGET (service->path), - GTK_WIDGET (service->hostname), - GTK_WIDGET (service->username), - NULL); + *incomplete = get_focused_widget (GTK_WIDGET (service->path), + GTK_WIDGET (service->hostname), + GTK_WIDGET (service->username), + NULL); return FALSE; } } @@ -178,9 +178,9 @@ mail_account_gui_transport_complete (MailAccountGui *gui, GtkWidget **incomplete if (!text || !*text) { if (incomplete) - *incomplete = get_sensitive_widget (GTK_WIDGET (gui->transport.username), - GTK_WIDGET (gui->transport.hostname), - NULL); + *incomplete = get_focused_widget (GTK_WIDGET (gui->transport.username), + GTK_WIDGET (gui->transport.hostname), + NULL); return FALSE; } } |