changeset 21411:b089fd1ad059

Hide the description label of the PidginMiniDialog used for signed on elsewhere errors.
author Will Thompson <will.thompson@collabora.co.uk>
date Mon, 05 Nov 2007 01:28:20 +0000
parents 4ccc4ad0a8b0
children 2f818256ae62
files pidgin/gtkblist.c
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkblist.c	Mon Nov 05 01:19:51 2007 +0000
+++ b/pidgin/gtkblist.c	Mon Nov 05 01:28:20 2007 +0000
@@ -4440,8 +4440,8 @@
 		(GCallback)generic_error_destroy_cb,
 		account);
 
+	add_error_dialog(gtkblist, mini_dialog);
 	gtk_widget_show_all(mini_dialog);
-	add_error_dialog(gtkblist, mini_dialog);
 }
 
 static void
@@ -4520,8 +4520,12 @@
 		ignore_elsewhere_accounts, NULL);
 
 	add_error_dialog(gtkblist, GTK_WIDGET(mini_dialog));
-
-	/* Set priv->signed_on_elsewhere to NULL when it is destroyed */
+	gtk_widget_show_all(GTK_WIDGET(mini_dialog));
+
+	/* Hide the description field now that the dialog has been shown. */
+	g_object_set(G_OBJECT(mini_dialog), "description", NULL, NULL);
+
+	/* Set priv->signed_on_elsewhere to NULL when the dialog is destroyed */
 	g_signal_connect(G_OBJECT(mini_dialog), "destroy",
 		(GCallback) gtk_widget_destroyed, &(priv->signed_on_elsewhere));
 }