Blob Blame History Raw
diff -up libbonoboui-2.19.6/bonobo/bonobo-ui-util.c.help-error libbonoboui-2.19.6/bonobo/bonobo-ui-util.c
--- libbonoboui-2.19.6/bonobo/bonobo-ui-util.c.help-error	2007-02-27 09:07:59.000000000 -0500
+++ libbonoboui-2.19.6/bonobo/bonobo-ui-util.c	2007-09-08 16:19:23.000000000 -0400
@@ -593,8 +593,20 @@ bonobo_help_display_cb (BonoboUIComponen
 		cl->program, doc_id, doc_id, NULL, &error);
 
 	if (error) {
-		/* FIXME: better error handling ? */
-		g_warning ("Error: '%s'", error->message);
+		GtkWidget *dialog;
+
+		dialog = gtk_message_dialog_new (NULL, 0, 
+                                                 GTK_MESSAGE_ERROR,
+						 GTK_BUTTONS_OK,
+						 _("Could not display help for this application"));
+		gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
+							  error->message);
+		g_signal_connect_swapped (dialog, "response",
+					  G_CALLBACK (gtk_widget_destroy),
+					  dialog);
+
+		gtk_window_present (GTK_WINDOW (dialog));
+
 		g_error_free (error);
 	}
 }