aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2017-06-12 04:25:22 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2017-06-12 04:25:22 +0000
commit2418b18a1b0cdd10baec62c300922b4cf941c28c (patch)
tree6daf55a3c748cd2b58795aa6c4c30d35ac0151df /src
parenta933be74bc64d8c4782e3af1f322994450176e28 (diff)
disable save/load of printing settings at GTK+ 2.10.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3558 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r--src/printing.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/printing.c b/src/printing.c
index c55bdbe2..bc285a0d 100644
--- a/src/printing.c
+++ b/src/printing.c
@@ -432,6 +432,7 @@ static void draw_page(GtkPrintOperation *operation, GtkPrintContext *context,
static gboolean printing_load_settings(void)
{
+#if GTK_CHECK_VERSION(2, 12, 0)
gchar *file;
GtkPrintSettings *new_settings;
@@ -456,10 +457,14 @@ static gboolean printing_load_settings(void)
settings = new_settings;
return TRUE;
+#else
+ return FALSE;
+#endif /* GTK_CHECK_VERSION(2, 12, 0) */
}
static gboolean printing_save_settings(void)
{
+#if GTK_CHECK_VERSION(2, 12, 0)
gchar *file;
gboolean ret = TRUE;
@@ -475,10 +480,14 @@ static gboolean printing_save_settings(void)
g_free(file);
return ret;
+#else
+ return FALSE;
+#endif /* GTK_CHECK_VERSION(2, 12, 0) */
}
static gboolean printing_load_page_setup(void)
{
+#if GTK_CHECK_VERSION(2, 12, 0)
gchar *file;
GtkPageSetup *new_setup;
@@ -503,10 +512,14 @@ static gboolean printing_load_page_setup(void)
page_setup = new_setup;
return TRUE;
+#else
+ return FALSE;
+#endif /* GTK_CHECK_VERSION(2, 12, 0) */
}
static gboolean printing_save_page_setup(void)
{
+#if GTK_CHECK_VERSION(2, 12, 0)
gchar *file;
gboolean ret = TRUE;
@@ -522,6 +535,9 @@ static gboolean printing_save_page_setup(void)
g_free(file);
return ret;
+#else
+ return FALSE;
+#endif /* GTK_CHECK_VERSION(2, 12, 0) */
}
gint printing_print_messages_gtk(GSList *mlist, MimeInfo *partinfo,