GNOME Bugzilla – Bug 325058
invalid_arg_error_dialog not following HIG
Last modified: 2006-01-30 06:06:13 UTC
static void invalid_arg_error_dialog (GtkWindow *parent, @@ -36,48 +36,51 @@ dialog = gtk_message_dialog_new (parent, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, - GTK_BUTTONS_CLOSE, + GTK_BUTTONS_OK, _("Invalid key \"%s\": %s"), key, error_message); - g_signal_connect (dialog, "response", - G_CALLBACK (gtk_widget_destroy), NULL); - - gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE); - - gtk_widget_show (dialog); + + gtk_dialog_run(GTK_DIALOG(dialog)); + gtk_widget_destroy(dialog); }
Thank you very much for the patch. Applied in CVS: 2006-01-30 Fernando Herrera <fherrera@onirica.com> * src/main.c: (invalid_arg_error_dialog): HIGfy error dialog. Patch from Kristof Vansant. Fixes bug #325058.