aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog4
-rw-r--r--mail/mail-account-gui.c44
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;
}
}