summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooserbutton.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-05-16 21:07:16 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-05-16 21:07:16 +0000
commit382fa5c38210f1c4d0444a0c8084fd21c894b560 (patch)
treee3ae242f379f6ad9ee1be41928c7dcfc83f6d2d5 /gtk/gtkfilechooserbutton.c
parent8610171ecff09f86c0a9480b56377c06ab68ecd3 (diff)
downloadgtk+-382fa5c38210f1c4d0444a0c8084fd21c894b560.tar.gz
Make sure the action of the button and the dialog are in sync, when the
2005-05-16 Matthias Clasen <mclasen@redhat.com> * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_constructor): Make sure the action of the button and the dialog are in sync, when the dialog is provided by the app. (#303987, David A Knight)
Diffstat (limited to 'gtk/gtkfilechooserbutton.c')
-rw-r--r--gtk/gtkfilechooserbutton.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c
index 5c6794b2df..f0fe1630d0 100644
--- a/gtk/gtkfilechooserbutton.c
+++ b/gtk/gtkfilechooserbutton.c
@@ -679,8 +679,12 @@ gtk_file_chooser_button_constructor (GType type,
combo_box_row_separator_func,
NULL, NULL);
- update_label_and_image (GTK_FILE_CHOOSER_BUTTON (object));
- update_combo_box (GTK_FILE_CHOOSER_BUTTON (object));
+ /* set up the action for a user-provided dialog, this also updates
+ * the label, image and combobox
+ */
+ g_object_set (object,
+ "action", gtk_file_chooser_get_action (GTK_FILE_CHOOSER (priv->dialog)),
+ NULL);
priv->fs_volumes_changed_id =
g_signal_connect (priv->fs, "volumes-changed",
@@ -712,7 +716,6 @@ gtk_file_chooser_button_set_property (GObject *object,
gtk_file_chooser_button_set_width_chars (GTK_FILE_CHOOSER_BUTTON (object),
g_value_get_int (value));
break;
-
case GTK_FILE_CHOOSER_PROP_ACTION:
switch (g_value_get_enum (value))
{