After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 301193 - ComboBoxEntry dropdown is useless when empty
ComboBoxEntry dropdown is useless when empty
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkComboBox
2.6.x
Other Linux
: Normal enhancement
: Small API
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2005-04-19 14:48 UTC by Murray Cumming
Modified: 2018-05-02 14:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to add "always-show-arrow" property to the combo box (18.50 KB, patch)
2011-03-01 21:07 UTC, Tristan Van Berkom
none Details | Review

Description Murray Cumming 2005-04-19 14:48:13 UTC
It would be nice if the GtkComboBoxEntry did not show the drop-down menu arrow
when there are no items for it to show. This would allow me to use a
GtkComboBoxEntry for data that may, or may not, have a list of possible values,
without sometimes changing the widget temporarily to a GtkEntry.
Comment 1 Tristan Van Berkom 2011-03-01 21:07:59 UTC
Created attachment 182212 [details] [review]
Patch to add "always-show-arrow" property to the combo box

This patch adds a property to allow the user to create combo boxes who's
dropdown indicator disappears when there is no model or the model is empty.

By default (for backwards compatibility), the "always-show-arrow" property
is TRUE.

Furthermore, this patch still enforces that the height of the combo-box
be at least the height required to fit the dropdown indicator (this is
to avoid awkward resizing of the combobox while it toggles it's empty
state).

The patch includes an elaboration to tests/testcombochange.c, fire up
the test to see the new behavior of combo boxes while adding/removing
data (it includes a new control to disable "always-show-arrow").
Comment 2 GNOME Infrastructure Team 2018-05-02 14:08:36 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/246.