GNOME Bugzilla – Bug 733979
Combobox is styled like the last child if linked class applied, even if it's the first child
Last modified: 2014-08-18 08:35:52 UTC
Created attachment 282064 [details] Image of the issue, see the combobox which is the first child in this screenshot When adding the linked class to the parent widget of a combobox, the combobox gets styled like it's the last child even if it's the first child.
The screenshot doesn't seem like 3.13, it *should* work with the latest version (untested btw)
I have tried with gtk 3.13.6 and I still have this issue.
I can confirm the issue with gtk 3.13.6 + git
Is there something I can test the style against? That would be really helpfull to fix this
unfortunatelly this is not a theme problem, playing with glade with the combination combobox+entry in a gtkbox, I can select the combo with say ".linked .button:last-child {}", so clearly it picks the wrong style from the theme. Reassigning to GtkStyleContext.
I've posted a $35 bounty on the issue in BountySource: https://www.bountysource.com/issues/3444113-combobox-is-styled-like-the-last-child-if-linked-class-applied-even-if-it-s-the-first-child The code we're experiencing the bug in can be found here: http://bazaar.launchpad.net/~khampal/taxi/trunk/view/head:/src/Widgets/ConnectBox.vala
I think this can actually be worked around within the theme, but I'm not that confortable in doing that. Let's say if we don't get a fix for the final gtk+ release *and* I get thumbs up from Matthias, I'll add the "fix" in Adwaita.
(In reply to comment #5) > unfortunatelly this is not a theme problem, playing with glade with the > combination combobox+entry in a gtkbox, I can select the combo with say > ".linked .button:last-child {}", so clearly it picks the wrong style from the > theme. Reassigning to GtkStyleContext. I don't think thats true, really. The problem here is that the combobox has inner structure, I think. And the button inside is not a direct child of the .linked style box. Try this: .linked > GtkComboBox:first-child > .button { border-radius: 3px 0 0 3px; border-left-style: solid; }
I've added an example of linked comboboxes to widget-factory
Matthias I can confirm that your fix works! Thanks :)
Nice
Daniel, if you want to send that $35 bounty to the GNOME foundation, that would be perfectly fine with me. Same for any other bugs I close that might have a bounty associated.
Please can you close this bug so the bounty can be claimed?