From 9846fa40159d79b1d9a9a1e8781558d9ecb40e36 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 23 Feb 2005 07:13:46 +0000 Subject: fix argument order to memset. (emae_security_page): fix the non-have_nss 2005-02-22 Not Zed * em-account-editor.c (emae_send_page): fix argument order to memset. (emae_security_page): fix the non-have_nss case. svn path=/trunk/; revision=28865 --- mail/em-account-editor.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'mail/em-account-editor.c') diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c index ac191caef5..614c234195 100644 --- a/mail/em-account-editor.c +++ b/mail/em-account-editor.c @@ -103,6 +103,7 @@ struct _receive_options_item { typedef struct _EMAccountEditorService { EMAccountEditor *emae; /* parent pointer, for callbacks */ + /* NOTE: keep all widgets together, first frame last check_dialog */ struct _GtkWidget *frame; struct _GtkWidget *container; @@ -2016,15 +2017,10 @@ emae_send_page(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct /* no transport options page at all for these types of providers */ if (gui->source.provider && CAMEL_PROVIDER_IS_STORE_AND_TRANSPORT(gui->source.provider)) { - memset(&gui->transport.frame, &gui->transport.check_dialog-&gui->transport.frame, 0); + memset(&gui->transport.frame, 0, ((char *)&gui->transport.check_dialog)-((char *)&gui->transport.frame)); return NULL; } -#if 0 - if (old) - return old; -#endif - xml = glade_xml_new(EVOLUTION_GLADEDIR "/mail-config.glade", item->label, NULL); /* Transport */ @@ -2138,8 +2134,8 @@ emae_security_page(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, st /* Since we don't have NSS, hide the S/MIME config options */ GtkWidget *frame; - frame = glade_xml_get_widget (xml, "smime_vbox"); - gtk_widget_destroy (frame); + frame = glade_xml_get_widget(xml, "smime_vbox"); + gtk_widget_destroy(frame); } #endif /* HAVE_NSS */ -- cgit