diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-12-13 06:55:21 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-12-13 06:55:21 +0000 |
commit | c38f75ca2d327c93bba14ff72f14bfe7856609a1 (patch) | |
tree | 22cd7e386bd04a37635d60b52eae69f99e899e95 /src/mainwindow.c | |
parent | aae887a3faf1afb0c8b4760e16fa3480d920e086 (diff) |
implemented page setup.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1420 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r-- | src/mainwindow.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c index 3c37184a..3d630928 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -83,6 +83,7 @@ #include "statusbar.h" #include "inputdialog.h" #include "trayicon.h" +#include "printing.h" #include "utils.h" #include "gtkutils.h" #include "codeconv.h" @@ -235,6 +236,11 @@ static void empty_trash_cb (MainWindow *mainwin, static void save_as_cb (MainWindow *mainwin, guint action, GtkWidget *widget); +#if GTK_CHECK_VERSION(2, 10, 0) +static void page_setup_cb (MainWindow *mainwin, + guint action, + GtkWidget *widget); +#endif static void print_cb (MainWindow *mainwin, guint action, GtkWidget *widget); @@ -511,6 +517,10 @@ static GtkItemFactoryEntry mainwin_entries[] = {N_("/_File/Empty all _trash"), NULL, empty_trash_cb, 0, NULL}, {N_("/_File/---"), NULL, NULL, 0, "<Separator>"}, {N_("/_File/_Save as..."), "<control>S", save_as_cb, 0, NULL}, + {N_("/_File/---"), NULL, NULL, 0, "<Separator>"}, +#if GTK_CHECK_VERSION(2, 10, 0) + {N_("/_File/Page set_up..."), NULL, page_setup_cb, 0, NULL}, +#endif {N_("/_File/_Print..."), NULL, print_cb, 0, NULL}, {N_("/_File/---"), NULL, NULL, 0, "<Separator>"}, {N_("/_File/_Work offline"), NULL, toggle_offline_cb, 0, "<ToggleItem>"}, @@ -2915,6 +2925,13 @@ static void save_as_cb(MainWindow *mainwin, guint action, GtkWidget *widget) summary_save_as(mainwin->summaryview); } +#if GTK_CHECK_VERSION(2, 10, 0) +static void page_setup_cb(MainWindow *mainwin, guint action, GtkWidget *widget) +{ + printing_page_setup_gtk(); +} +#endif + static void print_cb(MainWindow *mainwin, guint action, GtkWidget *widget) { summary_print(mainwin->summaryview); |