Hello community,

here is the log from the commit of package gtk2 for openSUSE:13.1 checked in at 
2013-10-31 16:03:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:13.1/gtk2 (Old)
 and      /work/SRC/openSUSE:13.1/.gtk2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gtk2"

Changes:
--------
--- /work/SRC/openSUSE:13.1/gtk2/gtk2.changes   2013-10-14 09:28:04.000000000 
+0200
+++ /work/SRC/openSUSE:13.1/.gtk2.new/gtk2.changes      2013-10-31 
16:03:25.000000000 +0100
@@ -1,0 +2,6 @@
+Wed Oct 30 20:56:50 UTC 2013 - [email protected]
+
+- Add gtk2-print-to-file.patch: fix printing to file with no
+  directory specified (bnc#839089).
+ 
+-------------------------------------------------------------------

New:
----
  gtk2-print-to-file.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gtk2.spec ++++++
--- /var/tmp/diff_new_pack.X2N7hB/_old  2013-10-31 16:03:25.000000000 +0100
+++ /var/tmp/diff_new_pack.X2N7hB/_new  2013-10-31 16:03:25.000000000 +0100
@@ -51,6 +51,8 @@
 # be here instead.
 # PATCH-FIX-OPENSUSE gtk-path-local.patch Search in /usr/local/%{_lib} by 
default. bnc369696 bgo534474
 Patch53:        gtk-path-local.patch
+# PATCH-FIX-UPSTREAM gtk2-print-to-file.patch bnc#839089 bgo#710746 bgo#711177 
[email protected] -- Fix printing to file with no directory specified. bnc839089 
bgo711177
+Patch54:        gtk2-print-to-file.patch
 BuildRequires:  atk-devel
 BuildRequires:  cairo-devel
 BuildRequires:  cups-devel
@@ -327,6 +329,7 @@
 %patch23 -p1
 %patch24 -p1
 %patch53
+%patch54 -p1
 gnome-patch-translation-update
 
 %build

++++++ gtk2-print-to-file.patch ++++++
>From 2ce26e146b7b8fad6de7d4087479a4b69941aa5e Mon Sep 17 00:00:00 2001
From: Mike Gorse <[email protected]>
Date: Wed, 30 Oct 2013 15:42:09 -0500
Subject: [PATCH] Print to a file in the current directory by default

When printing to a file, the filename was not being propagated if a
directory was not specified.

https://bugzilla.gnome.org/show_bug.cgi?id=711177
---
 gtk/gtkprinteroptionwidget.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gtk/gtkprinteroptionwidget.c b/gtk/gtkprinteroptionwidget.c
index 2f43edf..12fdd6f 100644
--- a/gtk/gtkprinteroptionwidget.c
+++ b/gtk/gtkprinteroptionwidget.c
@@ -521,7 +521,13 @@ filesave_changed_cb (GtkWidget              *button,
       if (g_uri_parse_scheme (file) != NULL)
         uri = g_strdup (file);
       else
-        uri = g_build_path ("/", gtk_file_chooser_get_uri (GTK_FILE_CHOOSER 
(priv->combo)), file, NULL);
+        {
+          const gchar *chooser_uri = gtk_file_chooser_get_uri 
(GTK_FILE_CHOOSER (priv->combo));
+          if (chooser_uri)
+            uri = g_build_path ("/", chooser_uri, file, NULL);
+          else
+            uri = g_filename_to_uri (file, NULL, NULL);
+        }
     }
  
   if (uri)
-- 
1.8.4

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to