Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:13.1:Update
gtk2.2971
gtk2-print-to-file.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gtk2-print-to-file.patch of Package gtk2.2971
From 5ae4ef471d732cd5937c67829eec677b477cb8ed Mon Sep 17 00:00:00 2001 From: Mike Gorse <mgorse@suse.com> 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 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gtk/gtkprinteroptionwidget.c b/gtk/gtkprinteroptionwidget.c index 2f43edf..08c2aff 100644 --- a/gtk/gtkprinteroptionwidget.c +++ b/gtk/gtkprinteroptionwidget.c @@ -521,7 +521,16 @@ 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); + { + gchar *chooser_uri = gtk_file_chooser_get_uri (GTK_FILE_CHOOSER (priv->combo)); + if (chooser_uri) + { + uri = g_build_path ("/", chooser_uri, file, NULL); + g_free (chooser_uri); + } + else + uri = g_filename_to_uri (file, NULL, NULL); + } } if (uri) -- 1.8.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor