aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-account-gui.c
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-08-17 12:29:11 +0800
committerIain Holmes <iain@src.gnome.org>2001-08-17 12:29:11 +0800
commit4e60b7d947fc081958acc7b4e17dfdf4e62ec08b (patch)
tree08b84d5b30af9b675acec8c133acf72ec57e14ef /mail/mail-account-gui.c
parentdad6d45018fb264dbb94031775b6c4589951e50a (diff)
downloadgsoc2013-evolution-4e60b7d947fc081958acc7b4e17dfdf4e62ec08b.tar
gsoc2013-evolution-4e60b7d947fc081958acc7b4e17dfdf4e62ec08b.tar.gz
gsoc2013-evolution-4e60b7d947fc081958acc7b4e17dfdf4e62ec08b.tar.bz2
gsoc2013-evolution-4e60b7d947fc081958acc7b4e17dfdf4e62ec08b.tar.lz
gsoc2013-evolution-4e60b7d947fc081958acc7b4e17dfdf4e62ec08b.tar.xz
gsoc2013-evolution-4e60b7d947fc081958acc7b4e17dfdf4e62ec08b.tar.zst
gsoc2013-evolution-4e60b7d947fc081958acc7b4e17dfdf4e62ec08b.zip
Startup assistant stuff
svn path=/trunk/; revision=12145
Diffstat (limited to 'mail/mail-account-gui.c')
-rw-r--r--mail/mail-account-gui.c27
1 files changed, 15 insertions, 12 deletions
diff --git a/mail/mail-account-gui.c b/mail/mail-account-gui.c
index 7117eacf47..2ee1fa01e5 100644
--- a/mail/mail-account-gui.c
+++ b/mail/mail-account-gui.c
@@ -414,7 +414,7 @@ transport_type_changed (GtkWidget *widget, gpointer user_data)
provider = gtk_object_get_data (GTK_OBJECT (widget), "provider");
gui->transport.provider = provider;
-
+
frame = glade_xml_get_widget (gui->xml, "transport_frame");
if (CAMEL_PROVIDER_ALLOWS (provider, CAMEL_URL_PART_HOST) ||
(CAMEL_PROVIDER_ALLOWS (provider, CAMEL_URL_PART_AUTH) &&
@@ -1427,7 +1427,6 @@ mail_account_gui_setup (MailAccountGui *gui, GtkWidget *top)
fstore = item;
hstore = si;
}
-
/* set the menus on the optionmenus */
gtk_option_menu_remove_menu (gui->source.type);
gtk_option_menu_set_menu (gui->source.type, stores);
@@ -1456,31 +1455,33 @@ mail_account_gui_setup (MailAccountGui *gui, GtkWidget *top)
gtk_widget_set_usize (GTK_WIDGET (gui->transport.authtype),
size_req.width, -1);
}
-
- gtk_widget_show_all (top);
+
+ if (top != NULL) {
+ gtk_widget_show_all (top);
+ }
/* Force some other elements to keep their current sizes even if
* widgets are hidden
*/
item = glade_xml_get_widget (gui->xml, "source_frame");
- gtk_widget_set_usize (item, -1, item->allocation.height);
+ gtk_widget_hide (item);
item = glade_xml_get_widget (gui->xml, "source_auth_frame");
- gtk_widget_set_usize (item, -1, item->allocation.height);
+ gtk_widget_hide (item);
item = glade_xml_get_widget (gui->xml, "source_vbox");
- gtk_widget_set_usize (item, -1, item->allocation.height);
+ gtk_widget_hide (item);
item = glade_xml_get_widget (gui->xml, "transport_frame");
- gtk_widget_set_usize (item, -1, item->allocation.height);
+ gtk_widget_hide (item);
item = glade_xml_get_widget (gui->xml, "transport_auth_frame");
- gtk_widget_set_usize (item, -1, item->allocation.height);
+ gtk_widget_hide (item);
item = glade_xml_get_widget (gui->xml, "transport_vbox");
- gtk_widget_set_usize (item, -1, item->allocation.height);
-
+ gtk_widget_hide (item);
+
if (fstore)
gtk_signal_emit_by_name (GTK_OBJECT (fstore), "activate", gui);
if (ftransport)
gtk_signal_emit_by_name (GTK_OBJECT (ftransport), "activate", gui);
-
+
if (source_proto) {
setup_service (&gui->source, gui->account->source);
gui->source.provider_type = CAMEL_PROVIDER_STORE;
@@ -1498,6 +1499,8 @@ mail_account_gui_setup (MailAccountGui *gui, GtkWidget *top)
gui->transport.provider_type = CAMEL_PROVIDER_TRANSPORT;
g_free (transport_proto);
}
+
+
}
static void