Commit 4a413ba412ee3c2ef4be36533b0f48d9848f4857
1 parent
f7f94da0
Exists in
master
and in
1 other branch
Print dialog now uses the standard error popup.
Showing
1 changed file
with
6 additions
and
12 deletions
Show diff stats
src/dialogs/print/convenience.c
| ... | ... | @@ -29,6 +29,7 @@ |
| 29 | 29 | |
| 30 | 30 | #include "private.h" |
| 31 | 31 | #include <sys/param.h> |
| 32 | + #include <v3270/dialogs.h> | |
| 32 | 33 | #include <terminal.h> |
| 33 | 34 | #include <lib3270/selection.h> |
| 34 | 35 | |
| ... | ... | @@ -75,20 +76,13 @@ |
| 75 | 76 | |
| 76 | 77 | if(err) |
| 77 | 78 | { |
| 78 | - GtkWidget *popup = gtk_message_dialog_new_with_markup( | |
| 79 | - GTK_WINDOW(gtk_widget_get_toplevel(widget)), | |
| 80 | - GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT, | |
| 81 | - GTK_MESSAGE_ERROR,GTK_BUTTONS_CLOSE, | |
| 82 | - _("Can't print data") | |
| 79 | + v3270_error_popup( | |
| 80 | + widget, | |
| 81 | + NULL, | |
| 82 | + _("Print operation has failed"), | |
| 83 | + err->message | |
| 83 | 84 | ); |
| 84 | 85 | |
| 85 | - gtk_window_set_title(GTK_WINDOW(popup),_("Operation has failed")); | |
| 86 | - | |
| 87 | - gtk_message_dialog_format_secondary_markup(GTK_MESSAGE_DIALOG(popup),"%s",err->message); | |
| 88 | - | |
| 89 | - gtk_dialog_run(GTK_DIALOG(popup)); | |
| 90 | - gtk_widget_destroy(popup); | |
| 91 | - | |
| 92 | 86 | g_error_free(err); |
| 93 | 87 | |
| 94 | 88 | rc = -1; | ... | ... |