aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-window-commands.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2007-07-06 22:19:16 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2007-07-06 22:19:16 +0800
commit4e4d7e38f19498e1840f22e3aa42335ccea5ec45 (patch)
tree23f545e45f27c594a81bb108a388d99d13026333 /shell/e-shell-window-commands.c
parent8ee43fc1fb4c9f792116c5502da61cd00d112610 (diff)
downloadgsoc2013-evolution-4e4d7e38f19498e1840f22e3aa42335ccea5ec45.tar.gz
gsoc2013-evolution-4e4d7e38f19498e1840f22e3aa42335ccea5ec45.tar.zst
gsoc2013-evolution-4e4d7e38f19498e1840f22e3aa42335ccea5ec45.zip
** Fixes bug #446894
2007-07-06 Matthew Barnes <mbarnes@redhat.com> ** 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
Diffstat (limited to 'shell/e-shell-window-commands.c')
-rw-r--r--shell/e-shell-window-commands.c10
1 files changed, 10 insertions, 0 deletions
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"
@@ -96,6 +97,14 @@ command_import (BonoboUIComponent *uih,
}
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,
const char *path)
@@ -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),