Temporary fix while we wait for gnome-print to stabilize.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2939 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2000-09-25 06:57:46 +00:00
parent 8acd4960aa
commit 09574f0927

View File

@ -84,7 +84,7 @@ gnc_ui_print_preview_destroy(PrintPreviewDialog * ppd) {
PrintDialog *
gnc_ui_print_dialog_create(PrintSession * ps) {
PrintDialog * pcd = g_new0(PrintDialog, 1);
char * printer_string;
char * printer_string = NULL;
pcd->toplevel = create_Print_Dialog();
pcd->session = ps;
@ -98,6 +98,7 @@ gnc_ui_print_dialog_create(PrintSession * ps) {
gtk_object_set_data(GTK_OBJECT(pcd->toplevel), "print_struct",
pcd);
#if 0
if(ps->printer->driver) {
if(ps->printer->filename) {
printer_string = g_strdup_printf("(%s) %s",
@ -111,9 +112,14 @@ gnc_ui_print_dialog_create(PrintSession * ps) {
else {
printer_string = g_strdup(_("(none)"));
}
#endif
gtk_entry_set_text(GTK_ENTRY(pcd->paper_entry), ps->paper);
#if 0
gtk_entry_set_text(GTK_ENTRY(pcd->printer_entry), printer_string);
#endif
gtk_widget_show_all(pcd->toplevel);
g_free(printer_string);
@ -189,6 +195,7 @@ gnc_ui_print_dialog_select_printer_cb(GtkButton * button, gpointer user_data) {
if(printer) {
pcd->session->printer = printer;
#if 0
if(pcd->session->printer->driver) {
if(pcd->session->printer->filename) {
printer_string = g_strdup_printf("(%s) %s",
@ -205,6 +212,7 @@ gnc_ui_print_dialog_select_printer_cb(GtkButton * button, gpointer user_data) {
gtk_entry_set_text(GTK_ENTRY(pcd->printer_entry), printer_string);
g_free(printer_string);
#endif
}
}
}