diff options
author | Federico Mena Quintero <federico@gnome.org> | 2011-11-29 15:08:25 -0600 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2011-11-29 15:11:56 -0600 |
commit | 830bc4304ca4a07ead72e614b001f8e42d74541a (patch) | |
tree | ea59fb739e6b4c1bba497407f7414a808c5629a6 | |
parent | 463c98a9d7fccc257cd55e60ef67cad0e27895e1 (diff) | |
download | gtk+-830bc4304ca4a07ead72e614b001f8e42d74541a.tar.gz |
[GtkFileChooserDefault] Don't destroy and re-create the filename entry
This is a leftover from the big rework to remove the expanded/collapsed mode
in Save mode.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
-rw-r--r-- | gtk/gtkfilechooserdefault.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index e83411479a..f5e08c767e 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -4664,21 +4664,18 @@ location_switch_to_filename_entry (GtkFileChooserDefault *impl) impl->operation_mode == OPERATION_MODE_RECENT) return; - if (impl->location_entry) - { - gtk_widget_destroy (impl->location_entry); - impl->location_entry = NULL; - } - /* Box */ gtk_widget_show (impl->location_entry_box); /* Entry */ - location_entry_create (impl); - gtk_box_pack_start (GTK_BOX (impl->location_entry_box), impl->location_entry, TRUE, TRUE, 0); - gtk_label_set_mnemonic_widget (GTK_LABEL (impl->location_label), impl->location_entry); + if (!impl->location_entry) + { + location_entry_create (impl); + gtk_box_pack_start (GTK_BOX (impl->location_entry_box), impl->location_entry, TRUE, TRUE, 0); + gtk_label_set_mnemonic_widget (GTK_LABEL (impl->location_label), impl->location_entry); + } /* Configure the entry */ |