forked from AuroraMiddleware/gtk
combobox: Don’t select active item if it’s hidden
I hope no one ever actually brings such a silly item into this world, but this achieves symmetry with the similar checks immediately after.
This commit is contained in:
parent
ac4e1625f5
commit
dfe89a381f
@ -2179,7 +2179,7 @@ gtk_combo_box_menu_popup (GtkComboBox *combo_box,
|
||||
GList *i;
|
||||
GtkWidget *child;
|
||||
|
||||
if (!active)
|
||||
if (!(active && gtk_widget_get_visible (active)))
|
||||
{
|
||||
for (i = GTK_MENU_SHELL (priv->popup_widget)->priv->children; i && !active; i = i->next)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user