2006-01-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentrycompletion.c (_gtk_entry_completion_popup):
Prevent the first row being focused on map. (#137351,
Niklas Knutsson)
+2006-01-09 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup):
+ Prevent the first row being focused on map. (#137351,
+ Niklas Knutsson)
+
2006-01-09 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtk.symbols:
+2006-01-09 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup):
+ Prevent the first row being focused on map. (#137351,
+ Niklas Knutsson)
+
2006-01-09 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtk.symbols:
if (GTK_IS_WINDOW (toplevel))
gtk_window_group_add_window (_gtk_window_get_group (GTK_WINDOW (toplevel)),
GTK_WINDOW (completion->priv->popup_window));
+
+ /* prevent the first row being focused */
+ gtk_widget_grab_focus (completion->priv->tree_view);
+
+ gtk_tree_selection_unselect_all (gtk_tree_view_get_selection (GTK_TREE_VIEW (completion->priv->tree_view)));
+ gtk_tree_selection_unselect_all (gtk_tree_view_get_selection (GTK_TREE_VIEW (completion->priv->action_view)));
+
gtk_widget_show (completion->priv->popup_window);
gtk_grab_add (completion->priv->popup_window);