Make folder selection for print-to-file work

svn path=/trunk/; revision=17354
This commit is contained in:
Matthias Clasen 2007-02-26 14:56:11 +00:00
parent e2a74a9bd9
commit 2854c2bdf6
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2007-02-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprinteroptionwidget.c: Make the folder selection for
print-to-file work. Reported by Ian Collier.
2007-02-26 Chris Wilson <chris@chris-wilson.co.uk>
Bug 409101 invalid read to gtkicontheme.c insert_theme(), might cause gnome-panel crash

View File

@ -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: