mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
Move it to the right place
This commit is contained in:
parent
097e3b0b1f
commit
1d2eaf4b22
@ -3700,14 +3700,14 @@ gtk_combo_box_list_key_press (GtkWidget *widget,
|
||||
GtkTreeIter iter;
|
||||
GtkTreeModel *model = NULL;
|
||||
|
||||
gtk_combo_box_popdown (combo_box);
|
||||
|
||||
if (combo_box->priv->model)
|
||||
{
|
||||
GtkTreeSelection *sel;
|
||||
|
||||
sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (combo_box->priv->tree_view));
|
||||
|
||||
gtk_combo_box_popdown (combo_box);
|
||||
|
||||
if (gtk_tree_selection_get_selected (sel, &model, &iter))
|
||||
gtk_combo_box_set_active_iter (combo_box, &iter);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user