comparison src/print.c @ 2831:29231f01f36c

Bug fix #160: Replace print dialog by standard GTK dialog https://github.com/BestImageViewer/geeqie/issues/160 Ensure print dialog has a parent window Eliminate run-time error
author Colin Clark <colin.clark@cclark.uk>
date Fri, 21 Sep 2018 10:59:56 +0100
parents 5d88a8dfa364
children ac46f4e545a4
comparison
equal deleted inserted replaced
2830:5d88a8dfa364 2831:29231f01f36c
489 pw = g_new0(PrintWindow, 1); 489 pw = g_new0(PrintWindow, 1);
490 490
491 pw->source_selection = file_data_process_groups_in_selection(selection, FALSE, NULL); 491 pw->source_selection = file_data_process_groups_in_selection(selection, FALSE, NULL);
492 pw->text_fields = options->printer.text_fields; 492 pw->text_fields = options->printer.text_fields;
493 493
494 if (print_layout_page_count(pw) == 0)
495 {
496 return;
497 }
498
494 vbox = gtk_vbox_new(FALSE, 0); 499 vbox = gtk_vbox_new(FALSE, 0);
495 gtk_container_set_border_width(GTK_CONTAINER(vbox), PREF_PAD_BORDER); 500 gtk_container_set_border_width(GTK_CONTAINER(vbox), PREF_PAD_BORDER);
496 gtk_widget_show(vbox); 501 gtk_widget_show(vbox);
497 502
498 print_text_menu(vbox, pw); 503 print_text_menu(vbox, pw);