summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooserdialog.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@novell.com>2006-02-16 18:34:10 +0000
committerFederico Mena Quintero <federico@src.gnome.org>2006-02-16 18:34:10 +0000
commitc60f666378667ff36ad06eda457b0ac201e30573 (patch)
tree90b3ccb045b122728a96e66c87b6fee56df3bc0b /gtk/gtkfilechooserdialog.c
parent2540f8298bcb4ffe7b8f01e510a865c71d1dbb18 (diff)
downloadgtk+-c60f666378667ff36ad06eda457b0ac201e30573.tar.gz
Call ::initial_focus() on the child before calling ::map() on our parent
2006-02-16 Federico Mena Quintero <federico@novell.com> * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_map): Call ::initial_focus() on the child before calling ::map() on our parent class. This will prevent the shortcuts treeview from highlighting its first row as a result of getting assigned focus by gtk_dialog_map().
Diffstat (limited to 'gtk/gtkfilechooserdialog.c')
-rw-r--r--gtk/gtkfilechooserdialog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkfilechooserdialog.c b/gtk/gtkfilechooserdialog.c
index db1e574410..32a9fa9ce3 100644
--- a/gtk/gtkfilechooserdialog.c
+++ b/gtk/gtkfilechooserdialog.c
@@ -488,9 +488,9 @@ gtk_file_chooser_dialog_map (GtkWidget *widget)
if (!GTK_WIDGET_MAPPED (priv->widget))
gtk_widget_map (priv->widget);
- GTK_WIDGET_CLASS (parent_class)->map (widget);
-
_gtk_file_chooser_embed_initial_focus (GTK_FILE_CHOOSER_EMBED (priv->widget));
+
+ GTK_WIDGET_CLASS (parent_class)->map (widget);
}
/* GtkWidget::unmap handler */