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 135873 - combobox doesn't support separators
combobox doesn't support separators
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkComboBox
2.3.x
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 143747
 
 
Reported: 2004-03-01 20:52 UTC by Matthias Clasen
Modified: 2011-02-04 16:17 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
the patch (3.98 KB, patch)
2004-03-02 03:09 UTC, Matthias Clasen
none Details | Review

Description Matthias Clasen 2004-03-01 20:52:48 UTC
This is a regression against GtkOptionMenu where you could simply add
separators to the menu.
Comment 1 Matthias Clasen 2004-03-01 21:18:37 UTC
If we add api for this, we should probably fix the same issue for tree
views at the same time.
Comment 2 Matthias Clasen 2004-03-02 03:08:50 UTC
Here is a prototype patch for adding separators for file chooser only,
by hardwiring a check for the private GtkCellRendererSepText cell
renderer. It seems to work nicely except for the fact that keynav in
the tree view seems to not really ignore it as it should.
Comment 3 Matthias Clasen 2004-03-02 03:09:30 UTC
Created attachment 25021 [details] [review]
the patch
Comment 4 Matthias Clasen 2004-03-02 10:02:46 UTC
I would be grateful for API proposals how to handle seperators in 
model-view widgets.
Comment 5 Federico Mena Quintero 2004-06-02 21:33:18 UTC
Would this be enough:

void gtk_tree_view_set_separator_column (GtkTreeView *tree_view, gint column);

This would read the nth column from the model, which would yield a boolean
value, and the tree would use that to decide whether a row is a separator.

Likewise for the combo box, something like gtk_combo_box_set_separator_column().

I don't think we need anything more complicated.