From 4e4d7e38f19498e1840f22e3aa42335ccea5ec45 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 6 Jul 2007 14:19:16 +0000 Subject: ** Fixes bug #446894 2007-07-06 Matthew Barnes ** Fixes bug #446894 * ui/evolution.xml: Add a filepagesetup command, and a corresponding menu item within the print place holder. net result is to add a "file -> page setup" menu item to all components, just above the print menu items. * shell/e-shell-window-commands.c (command_page_setup): Callback for new FilePageSetup verb. * mail/em-format-html-print.c: Use new gtk_html_print_operation_run() function in GtkHTML. * e-util/e-print.c (load_page_setup): Extract GtkPageSetup properties from a GtkPrintSettings object. * e-util/e-print.c (save_page_setup): Merge GtkPageSetup properties into a GtkPrintSettings object. * e-util/e-print.[ch] (e_print_run_page_setup_dialog): New function runs a preconfigured Page Setup dialog and saves the configuration to GConf (/apps/evolution/shell/printing). svn path=/trunk/; revision=33762 --- shell/e-shell-window-commands.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'shell/e-shell-window-commands.c') diff --git a/shell/e-shell-window-commands.c b/shell/e-shell-window-commands.c index 010e229775..03ee4cdae5 100644 --- a/shell/e-shell-window-commands.c +++ b/shell/e-shell-window-commands.c @@ -44,6 +44,7 @@ #include "e-util/e-icon-factory.h" #include "e-util/e-dialog-utils.h" #include "e-util/e-error.h" +#include "e-util/e-print.h" #include "e-util/e-util-private.h" #include "e-shell-window-commands.h" @@ -95,6 +96,14 @@ command_import (BonoboUIComponent *uih, e_shell_importer_start_import (window); } +static void +command_page_setup (BonoboUIComponent *uih, + EShellWindow *window, + const char *path) +{ + e_print_run_page_setup_dialog (GTK_WINDOW (window)); +} + static void command_close (BonoboUIComponent *uih, EShellWindow *window, @@ -717,6 +726,7 @@ command_pilot_settings (BonoboUIComponent *uih, static BonoboUIVerb file_verbs [] = { BONOBO_UI_VERB ("FileImporter", (BonoboUIVerbFn) command_import), + BONOBO_UI_VERB ("FilePageSetup", (BonoboUIVerbFn) command_page_setup), BONOBO_UI_VERB ("FileClose", (BonoboUIVerbFn) command_close), BONOBO_UI_VERB ("FileExit", (BonoboUIVerbFn) command_quit), -- cgit v1.2.3