From 2854c2bdf663fe32baeea79cbbf827d7692d760d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 26 Feb 2007 14:56:11 +0000 Subject: [PATCH] Make folder selection for print-to-file work svn path=/trunk/; revision=17354 --- ChangeLog | 5 +++++ gtk/gtkprinteroptionwidget.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index e41da540c5..ffdcf09b63 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-02-26 Matthias Clasen + + * gtk/gtkprinteroptionwidget.c: Make the folder selection for + print-to-file work. Reported by Ian Collier. + 2007-02-26 Chris Wilson Bug 409101 – invalid read to gtkicontheme.c insert_theme(), might cause gnome-panel crash diff --git a/gtk/gtkprinteroptionwidget.c b/gtk/gtkprinteroptionwidget.c index e639abf952..3e977687be 100644 --- a/gtk/gtkprinteroptionwidget.c +++ b/gtk/gtkprinteroptionwidget.c @@ -480,7 +480,7 @@ filesave_changed_cb (GtkWidget *button, { gchar *directory; - directory = gtk_file_chooser_get_current_folder (GTK_FILE_CHOOSER (priv->combo)); + directory = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (priv->combo)); path = g_build_filename (directory, file, NULL); g_free (directory); @@ -490,7 +490,7 @@ filesave_changed_cb (GtkWidget *button, g_free (path); } - + if (uri) gtk_printer_option_set (priv->source, uri); @@ -812,7 +812,7 @@ construct_widgets (GtkPrinterOptionWidget *widget) g_signal_connect (priv->entry, "changed", G_CALLBACK (filesave_changed_cb), widget); - g_signal_connect (priv->combo, "current-folder-changed", G_CALLBACK (filesave_changed_cb), widget); + g_signal_connect (priv->combo, "selection-changed", G_CALLBACK (filesave_changed_cb), widget); } break; default: