Re: [patch]: Bugzilla bug 95836



Hi Dennis,

It would be nice if FMPropertiesWindow derived from GtkDialog for
consistency reasons.

> +	if (error) {
> +		dialog = gtk_message_dialog_new (GTK_WINDOW (property_window),
> +						 GTK_DIALOG_DESTROY_WITH_PARENT,
> +						 GTK_MESSAGE_ERROR,
> +						 GTK_BUTTONS_CLOSE,
> +						 _("There was an error displaying help: \n%s"),
> +						 error->message);
> +
> +		g_signal_connect (G_OBJECT (dialog),
> +				  "response", G_CALLBACK (gtk_widget_destroy),
> +				  NULL);
> +		gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
> +		gtk_widget_show (dialog);

You should be able to use eel_show_error_dialog() here.

-dave




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]