diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2017-06-12 04:25:22 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2017-06-12 04:25:22 +0000 |
commit | 2418b18a1b0cdd10baec62c300922b4cf941c28c (patch) | |
tree | 6daf55a3c748cd2b58795aa6c4c30d35ac0151df | |
parent | a933be74bc64d8c4782e3af1f322994450176e28 (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
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | src/printing.c | 16 |
2 files changed, 25 insertions, 0 deletions
@@ -1,3 +1,12 @@ +2017-06-12 + + * version 3.6.0beta1 + +2017-06-12 + + * src/printing.c: disable save/load of printing settings on + GTK+ <= 2.10. + 2017-06-09 * src/printing.c: save/load printing settings and page setup. 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, |