diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2007-07-06 22:19:16 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2007-07-06 22:19:16 +0800 |
commit | 4e4d7e38f19498e1840f22e3aa42335ccea5ec45 (patch) | |
tree | 23f545e45f27c594a81bb108a388d99d13026333 /shell | |
parent | 8ee43fc1fb4c9f792116c5502da61cd00d112610 (diff) | |
download | gsoc2013-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')
-rw-r--r-- | shell/ChangeLog | 7 | ||||
-rw-r--r-- | shell/e-shell-window-commands.c | 10 |
2 files changed, 17 insertions, 0 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index 63356b1497..aa968b4a01 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,10 @@ +2007-07-06 Matthew Barnes <mbarnes@redhat.com> + + ** Fixes part of bug #446894 + + * e-shell-window-commands.c (command_page_setup): + Callback for new FilePageSetup verb. + 2007-07-03 Srinivasa Ragavan <sragavan@novell.com> ** Added a hook event after the shell is started. 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), |