summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooserbutton.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2013-03-07 13:50:34 -0600
committerFederico Mena Quintero <federico@gnome.org>2013-03-07 20:45:58 -0600
commitbbf915118bd3ff3a871a8c8014514352037f6d10 (patch)
treeec902f699df55207071f0eef9b643e2c33caae53 /gtk/gtkfilechooserbutton.c
parent32aa7f0582febb614c41e4130ad34ac44ef6efd2 (diff)
downloadgtk+-bbf915118bd3ff3a871a8c8014514352037f6d10.tar.gz
filechooserbutton: Update the button/combo at construction time
This way the internal labels will show the correct selection even if nothing has been selected programmatically. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Diffstat (limited to 'gtk/gtkfilechooserbutton.c')
-rw-r--r--gtk/gtkfilechooserbutton.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c
index 1bea89bca7..ec5449fede 100644
--- a/gtk/gtkfilechooserbutton.c
+++ b/gtk/gtkfilechooserbutton.c
@@ -946,6 +946,9 @@ gtk_file_chooser_button_constructor (GType type,
g_signal_connect (priv->fs, "bookmarks-changed",
G_CALLBACK (fs_bookmarks_changed_cb), object);
+ update_label_and_image (button);
+ update_combo_box (button);
+
return object;
}