=?utf-8?q?=5Balmanah=5D_core=3A_Set_basename_of_output_file_when_doing_?= =?utf-8?b?4oCcUHJpbnQgdG8gRmlsZeKAnQ==?=



commit 9241763ec34fb6d2d859970140fb5e5460971df8
Author: Philip Withnall <philip tecnocode co uk>
Date:   Fri Aug 24 00:29:31 2012 +0100

    core: Set basename of output file when doing âPrint to Fileâ
    
    This bumps Almanahâs GTK+ dependency to 3.3.20 (it was: 3.0).
    
    See: https://live.gnome.org/GnomeGoals/PrintToFile

 configure.ac      |    2 +-
 src/main-window.c |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index dba644f..8718d6c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -78,7 +78,7 @@ dnl Dependencies
 dnl ***************************************************************************
 
 dnl Required dependencies
-PKG_CHECK_MODULES(STANDARD, glib-2.0 gtk+-3.0 >= 3.0.0 gmodule-2.0 gthread-2.0 gio-2.0 >= 2.28.0 sqlite3 cairo atk)
+PKG_CHECK_MODULES(STANDARD, glib-2.0 gtk+-3.0 >= 3.3.20 gmodule-2.0 gthread-2.0 gio-2.0 >= 2.28.0 sqlite3 cairo atk)
 AC_SUBST(STANDARD_CFLAGS)
 AC_SUBST(STANDARD_LIBS)
 
diff --git a/src/main-window.c b/src/main-window.c
index a940787..45d18f9 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -299,6 +299,9 @@ almanah_main_window_new (AlmanahApplication *application)
 
 	/* Set up printing objects */
 	priv->print_settings = gtk_print_settings_new ();
+	/* 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"));
+
 	priv->page_setup = gtk_page_setup_new ();
 
 	/* Set up the toolbar */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]