[almanah] Use GTK_PRINT_SETTINGS_OUTPUT_BASENAME only if defined when	compiled
- From: Milan Crha <mcrha src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [almanah] Use GTK_PRINT_SETTINGS_OUTPUT_BASENAME only if defined when	compiled
 
- Date: Mon, 10 Sep 2012 06:16:48 +0000 (UTC)
 
commit 0d3dd10e560063d996a0924ceacd7f1f61fe7422
Author: Milan Crha <mcrha redhat com>
Date:   Mon Sep 10 08:16:11 2012 +0200
    Use GTK_PRINT_SETTINGS_OUTPUT_BASENAME only if defined when compiled
 src/main-window.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/main-window.c b/src/main-window.c
index 45d18f9..1db8e66 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -299,8 +299,11 @@ almanah_main_window_new (AlmanahApplication *application)
 
 	/* Set up printing objects */
 	priv->print_settings = gtk_print_settings_new ();
+
+#ifdef GTK_PRINT_SETTINGS_OUTPUT_BASENAME
 	/* Translators: This is the default name of the PDF/PS/SVG file the diary is printed to if "Print to File" is chosen. */
 	gtk_print_settings_set (priv->print_settings, GTK_PRINT_SETTINGS_OUTPUT_BASENAME, _("Diary"));
+#endif
 
 	priv->page_setup = gtk_page_setup_new ();
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]