diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-03-06 02:25:51 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-03-06 02:25:51 +0800 |
commit | 944083d8b9805f6d352dac2f09c04f641b84fbc9 (patch) | |
tree | e8994f08ca3a6a7c5abfc6a24b2e8023b2d421d8 /mail/mail-account-editor.c | |
parent | 6daf98ee0a7c0de9de5a713b2a529b811e945d06 (diff) | |
download | gsoc2013-evolution-944083d8b9805f6d352dac2f09c04f641b84fbc9.tar gsoc2013-evolution-944083d8b9805f6d352dac2f09c04f641b84fbc9.tar.gz gsoc2013-evolution-944083d8b9805f6d352dac2f09c04f641b84fbc9.tar.bz2 gsoc2013-evolution-944083d8b9805f6d352dac2f09c04f641b84fbc9.tar.lz gsoc2013-evolution-944083d8b9805f6d352dac2f09c04f641b84fbc9.tar.xz gsoc2013-evolution-944083d8b9805f6d352dac2f09c04f641b84fbc9.tar.zst gsoc2013-evolution-944083d8b9805f6d352dac2f09c04f641b84fbc9.zip |
Don't access the `active` data member of a GtkToggleButton directly - bad
2001-03-05 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c: Don't access the `active` data member of a
GtkToggleButton directly - bad programming, shame on me.
* mail-account-editor.c: Same here.
* mail-accounts.c: And here too.
* mail-callbacks.c (empty_subject_destroyed): And finally here.
* mail-crypto.c (pgp_mime_part_sign): Correcty set the mime type
for the multipart. Hmmm, still doesn't wrap correctly. NotZed?
Ideas?
(pgp_mime_part_encrypt): Here too.
svn path=/trunk/; revision=8560
Diffstat (limited to 'mail/mail-account-editor.c')
-rw-r--r-- | mail/mail-account-editor.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mail/mail-account-editor.c b/mail/mail-account-editor.c index 526f0b57c2..89f6057949 100644 --- a/mail/mail-account-editor.c +++ b/mail/mail-account-editor.c @@ -194,15 +194,15 @@ apply_changes (MailAccountEditor *editor) str = gtk_entry_get_text (editor->source_path); source_url->path = str && *str ? g_strdup (str) : NULL; - account->source->save_passwd = GTK_TOGGLE_BUTTON (editor->save_passwd)->active; - account->source->keep_on_server = GTK_TOGGLE_BUTTON (editor->keep_on_server)->active; + account->source->save_passwd = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (editor->save_passwd)); + account->source->keep_on_server = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (editor->keep_on_server)); - account->source->enabled = GTK_TOGGLE_BUTTON (editor->source_enabled)->active; - account->source->auto_check = GTK_TOGGLE_BUTTON (editor->source_auto_check)->active; + account->source->enabled = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (editor->source_enabled)); + account->source->auto_check = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (editor->source_auto_check)); account->source->auto_check_time = gtk_spin_button_get_value_as_int (editor->source_auto_timeout); if (editor->source_ssl) - account->source->use_ssl = GTK_TOGGLE_BUTTON (editor->source_ssl)->active; + account->source->use_ssl = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (editor->source_ssl)); /* set the new source url */ g_free (account->source->url); @@ -237,7 +237,7 @@ apply_changes (MailAccountEditor *editor) transport_url->port = port; if (editor->transport_ssl) - account->transport->use_ssl = GTK_TOGGLE_BUTTON (editor->transport_ssl)->active; + account->transport->use_ssl = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (editor->transport_ssl)); /* set the new transport url */ g_free (account->transport->url); @@ -550,7 +550,7 @@ auto_check_toggled (GtkToggleButton *button, gpointer data) { MailAccountEditor *editor = data; - gtk_widget_set_sensitive (GTK_WIDGET (editor->source_auto_timeout), button->active); + gtk_widget_set_sensitive (GTK_WIDGET (editor->source_auto_timeout), gtk_toggle_button_get_active (button)); } static void |