combobox: Avoid extra queue_resize()
authorIvan Molodetskikh <yalterz@gmail.com>
Tue, 7 Mar 2023 17:51:32 +0000 (09:51 -0800)
committerIvan Molodetskikh <yalterz@gmail.com>
Tue, 7 Mar 2023 17:55:30 +0000 (09:55 -0800)
commit55faea104694599298a6ca1b9f2e7a1b46bad45a
treea78eee793680c1094d91ce22c0cfefaf5c8f4b6d
parent0fa1e71ef0c01a1e09993c3e6c368fd8eba15e66
combobox: Avoid extra queue_resize()

width-request already ensures it's above the minimum width, so avoid an
extra queue_resize() when setting size request to (-1, -1).

This is the same way as GtkDropDown works. This also unbreaks
GtkComboBox after the recent allocation fix in
75a417e33708dab2bdb2f784a8952e085a12bf03.

Incidentally, this also makes GtkComboBox actually resize its popup as
intended (that was broken before).

I don't think this is ultimately the final fix, sometimes I still get
allocation warnings. But the proper fix will probably involve changing
some more allocation machinery around popovers. This is good enough for
now.
gtk/deprecated/gtkcombobox.c