aboutsummaryrefslogtreecommitdiff
path: root/src/messageview.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-12-13 06:55:21 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-12-13 06:55:21 +0000
commitc38f75ca2d327c93bba14ff72f14bfe7856609a1 (patch)
tree22cd7e386bd04a37635d60b52eae69f99e899e95 /src/messageview.c
parentaae887a3faf1afb0c8b4760e16fa3480d920e086 (diff)
implemented page setup.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1420 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/messageview.c')
-rw-r--r--src/messageview.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/messageview.c b/src/messageview.c
index 3e707005..dda0a00c 100644
--- a/src/messageview.c
+++ b/src/messageview.c
@@ -89,6 +89,11 @@ static gboolean key_pressed (GtkWidget *widget,
static void save_as_cb (gpointer data,
guint action,
GtkWidget *widget);
+#if GTK_CHECK_VERSION(2, 10, 0)
+static void page_setup_cb (gpointer data,
+ guint action,
+ GtkWidget *widget);
+#endif
static void print_cb (gpointer data,
guint action,
GtkWidget *widget);
@@ -143,6 +148,10 @@ static GtkItemFactoryEntry msgview_entries[] =
{
{N_("/_File"), NULL, NULL, 0, "<Branch>"},
{N_("/_File/_Save as..."), NULL, 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/_Close"), NULL, close_cb, 0, NULL},
@@ -791,6 +800,13 @@ static void save_as_cb(gpointer data, guint action, GtkWidget *widget)
messageview_save_as(messageview);
}
+#if GTK_CHECK_VERSION(2, 10, 0)
+static void page_setup_cb(gpointer data, guint action, GtkWidget *widget)
+{
+ printing_page_setup_gtk();
+}
+#endif
+
static void print_cb(gpointer data, guint action, GtkWidget *widget)
{
MessageView *messageview = (MessageView *)data;