[gtk+/gtk-3-2] [GtkFileChooserDefault] Don't destroy and re-create the filename entry
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-2] [GtkFileChooserDefault] Don't destroy and re-create the filename entry
- Date: Tue, 29 Nov 2011 21:11:05 +0000 (UTC)
commit bdd163d4ea03373ac437e2b211b9d1110c29e579
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Nov 29 15:08:25 2011 -0600
[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>
gtk/gtkfilechooserdefault.c | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index 2db15e3..7a3bf3d 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -4660,21 +4660,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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]