From 4a413ba412ee3c2ef4be36533b0f48d9848f4857 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Thu, 1 Aug 2019 10:15:21 -0300 Subject: [PATCH] Print dialog now uses the standard error popup. --- src/dialogs/print/convenience.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/dialogs/print/convenience.c b/src/dialogs/print/convenience.c index 197afee..aa2d382 100644 --- a/src/dialogs/print/convenience.c +++ b/src/dialogs/print/convenience.c @@ -29,6 +29,7 @@ #include "private.h" #include + #include #include #include @@ -75,20 +76,13 @@ if(err) { - GtkWidget *popup = gtk_message_dialog_new_with_markup( - GTK_WINDOW(gtk_widget_get_toplevel(widget)), - GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_ERROR,GTK_BUTTONS_CLOSE, - _("Can't print data") + v3270_error_popup( + widget, + NULL, + _("Print operation has failed"), + err->message ); - gtk_window_set_title(GTK_WINDOW(popup),_("Operation has failed")); - - gtk_message_dialog_format_secondary_markup(GTK_MESSAGE_DIALOG(popup),"%s",err->message); - - gtk_dialog_run(GTK_DIALOG(popup)); - gtk_widget_destroy(popup); - g_error_free(err); rc = -1; -- libgit2 0.21.2