? bug121080.patch
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gossip/ChangeLog,v
retrieving revision 1.306
diff -u -b -B -p -r1.306 ChangeLog
--- ChangeLog	10 Feb 2004 13:24:09 -0000	1.306
+++ ChangeLog	14 Feb 2004 18:34:30 -0000
@@ -1,3 +1,9 @@
+2004-02-14  Martyn Russell  <ginxd@btopenworld.com>
+
+	* src/gossip-app.c (app_authentication_cb): 
+	- Added small fix to show a dialog when authentication fails, this
+	is part of bug #121080.
+
 2004-02-10  Richard Hult  <richard@imendio.com>
 
 	* configure.in: Gah, revert the exslt change and really release.
Index: src/gossip-app.c
===================================================================
RCS file: /cvs/gnome/gossip/src/gossip-app.c,v
retrieving revision 1.109
diff -u -b -B -p -r1.109 gossip-app.c
--- src/gossip-app.c	9 Feb 2004 21:31:00 -0000	1.109
+++ src/gossip-app.c	14 Feb 2004 18:34:32 -0000
@@ -669,13 +669,29 @@ app_authentication_cb (LmConnection *con
 		       GossipApp    *app)
 {
 	GossipAppPriv *priv;
+	GtkWidget     *dialog;
 	
 	priv = app->priv;
 
-	if (success) {
-		g_signal_emit (app, signals[CONNECTED], 0);
+	if (!success) {
+		dialog = gossip_hig_dialog_new (GTK_WINDOW (priv->window),
+						GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL,
+						GTK_MESSAGE_ERROR,
+						GTK_BUTTONS_OK,
+						"Unable to Authenticate",
+						"%s\n%s",
+						_("Make sure that your account information is correct."),
+						_("You may have incorrectly typed your password."));
+			
+
+		gtk_dialog_run (GTK_DIALOG (dialog));
+		gtk_widget_destroy (dialog);
+		
+		return;
 	}
 
+	g_signal_emit (app, signals[CONNECTED], 0);
+
 	app_update_conn_dependent_menu_items ();
 	app_update_show ();
 }
