aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2005-01-22 05:05:13 +0800
committerJP Rosevear <jpr@src.gnome.org>2005-01-22 05:05:13 +0800
commitca1b5bd325a2054597548fda181de793aece23e3 (patch)
tree8e33d33aa8a799774ff6f5c984c601559bc344ac /addressbook/gui
parent1963958705b84314e2d2ba785bcadec8caa904e9 (diff)
downloadgsoc2013-evolution-ca1b5bd325a2054597548fda181de793aece23e3.tar
gsoc2013-evolution-ca1b5bd325a2054597548fda181de793aece23e3.tar.gz
gsoc2013-evolution-ca1b5bd325a2054597548fda181de793aece23e3.tar.bz2
gsoc2013-evolution-ca1b5bd325a2054597548fda181de793aece23e3.tar.lz
gsoc2013-evolution-ca1b5bd325a2054597548fda181de793aece23e3.tar.xz
gsoc2013-evolution-ca1b5bd325a2054597548fda181de793aece23e3.tar.zst
gsoc2013-evolution-ca1b5bd325a2054597548fda181de793aece23e3.zip
Fixes #46404
2005-01-21 JP Rosevear <jpr@novell.com> Fixes #46404 * gui/widgets/e-addressbook-view.c (eab_view_print): just show the dialog, not show all (margin settings aren't supposed to be used); use e_print to get the dialog (eab_view_print_preview): use e_print config for previewing * printing/e-contact-print.c (e_contact_print_preview): get the e_print config for previewing (e_contact_print_contact_dialog_new): use e_print to get the print dialog * printing/e-contact-print-envelope.c (e_contact_print_envelope_dialog_new): use e_print to get the print dialog svn path=/trunk/; revision=28496
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/widgets/e-addressbook-view.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c
index 0364f3c005..dd45de4ba0 100644
--- a/addressbook/gui/widgets/e-addressbook-view.c
+++ b/addressbook/gui/widgets/e-addressbook-view.c
@@ -47,6 +47,7 @@
#include "addressbook/gui/widgets/eab-menu.h"
#include "e-util/e-categories-master-list-wombat.h"
+#include "e-util/e-print.h"
#include "libedataserver/e-sexp.h"
#ifdef WITH_ADDRESSBOOK_VIEW_TREEVIEW
@@ -1728,7 +1729,7 @@ eab_view_print(EABView *view)
NULL);
print = e_contact_print_dialog_new(book, query);
g_free(query);
- gtk_widget_show_all(print);
+ gtk_widget_show(print);
}
else if (view->view_type == EAB_VIEW_TABLE) {
GtkWidget *dialog;
@@ -1736,7 +1737,7 @@ eab_view_print(EABView *view)
ETable *etable;
EContactPrintDialogWeakData *weak_data;
- dialog = gnome_print_dialog_new(NULL, "Print cards", GNOME_PRINT_DIALOG_RANGE | GNOME_PRINT_DIALOG_COPIES);
+ dialog = e_print_get_dialog (_("Print cards"), GNOME_PRINT_DIALOG_RANGE | GNOME_PRINT_DIALOG_COPIES);
gnome_print_dialog_construct_range_any(GNOME_PRINT_DIALOG(dialog), GNOME_PRINT_RANGE_ALL | GNOME_PRINT_RANGE_SELECTION,
NULL, NULL, NULL);
@@ -1796,9 +1797,8 @@ eab_view_print_preview(EABView *view)
g_object_ref (printable);
gtk_object_sink (GTK_OBJECT (printable));
- master = gnome_print_job_new(NULL);
- config = gnome_print_job_get_config (master);
- gnome_print_config_set_int (config, GNOME_PRINT_KEY_NUM_COPIES, 1);
+ config = e_print_load_config ();
+ master = gnome_print_job_new (config);
pc = gnome_print_job_get_context( master );
e_printable_reset(printable);
while (e_printable_data_left(printable)) {