summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooserdefault.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-11-03 15:12:17 +0100
committerBenjamin Otte <otte@redhat.com>2011-12-16 20:09:11 +0100
commit05398b8f1a62ab1980b01b68fca122785e2a198a (patch)
tree5c7706787869b4621b3d87078b5578e64e5245c0 /gtk/gtkfilechooserdefault.c
parent5aeac0bccb6221b8be08e957349b741b0ca00c4e (diff)
downloadgtk+-05398b8f1a62ab1980b01b68fca122785e2a198a.tar.gz
filechooserentry: Make the filesystem a construct-only argument
This allows simplifications in the code.
Diffstat (limited to 'gtk/gtkfilechooserdefault.c')
-rw-r--r--gtk/gtkfilechooserdefault.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index f5e08c767e..fb3bf66ac7 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -4562,10 +4562,8 @@ static void
location_entry_create (GtkFileChooserDefault *impl)
{
if (!impl->location_entry)
- impl->location_entry = _gtk_file_chooser_entry_new (TRUE);
+ impl->location_entry = _gtk_file_chooser_entry_new (impl->file_system, TRUE);
- _gtk_file_chooser_entry_set_file_system (GTK_FILE_CHOOSER_ENTRY (impl->location_entry),
- impl->file_system);
_gtk_file_chooser_entry_set_local_only (GTK_FILE_CHOOSER_ENTRY (impl->location_entry), impl->local_only);
_gtk_file_chooser_entry_set_action (GTK_FILE_CHOOSER_ENTRY (impl->location_entry), impl->action);
gtk_entry_set_width_chars (GTK_ENTRY (impl->location_entry), 45);