https://github.com/BestImageViewer/geeqie/issues/160
Ensure print dialog has a parent window
Eliminate run-time error
fd = (ct->click_info) ? ct->click_info->fd : NULL;
- print_window_new(fd, collection_table_selection_get_list(ct), collection_table_get_list(ct), ct->listview);
+ print_window_new(fd, collection_table_selection_get_list(ct), collection_table_get_list(ct), gtk_widget_get_toplevel(ct->listview));
}
static void collection_table_popup_show_names_cb(GtkWidget *widget, gpointer data)
pw->source_selection = file_data_process_groups_in_selection(selection, FALSE, NULL);
pw->text_fields = options->printer.text_fields;
+ if (print_layout_page_count(pw) == 0)
+ {
+ return;
+ }
+
vbox = gtk_vbox_new(FALSE, 0);
gtk_container_set_border_width(GTK_CONTAINER(vbox), PREF_PAD_BORDER);
gtk_widget_show(vbox);