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)
This commit is contained in:
Matthias Clasen
2005-05-16 21:07:02 +00:00
committed by Matthias Clasen
parent 5c2b9dfb60
commit edd7c7ee5c
4 changed files with 24 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
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)
2005-05-16 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkpango.c (gdk_pango_renderer_get_default): Fix a typo

View File

@@ -1,3 +1,9 @@
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)
2005-05-16 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkpango.c (gdk_pango_renderer_get_default): Fix a typo

View File

@@ -1,3 +1,9 @@
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)
2005-05-16 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkpango.c (gdk_pango_renderer_get_default): Fix a typo

View File

@@ -678,8 +678,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",
@@ -711,7 +715,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))
{