Bug 343478 - Gtk.ComboBox unresponsive in Gtk.Dialog with oxygen-gtk
Summary: Gtk.ComboBox unresponsive in Gtk.Dialog with oxygen-gtk
Status: RESOLVED UPSTREAM
Alias: None
Product: Oxygen
Classification: Plasma
Component: gtk3-engine (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Hugo Pereira Da Costa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-28 19:59 UTC by Vojtech Trefny
Modified: 2015-01-29 10:01 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vojtech Trefny 2015-01-28 19:59:12 UTC
It is not possible to select items from Gtk.ComboBox menu inside Gtk.Dialog using mouse (works with keyboard navigation).

Reproducible: Always

Steps to Reproduce:
1. Run this simple example -- https://gist.github.com/vojtechtrefny/ed5ac485585484483b6c
2. Click on "Open dialog".
3. Click on combo box inside dialog window.
4. Try to select something with your mouse.

Actual Results:  
It is not possible to select any item from the drop down menu with mouse.


Happens only with oxygen-gtk.
Tested in Fedora 21, oxygen-gtk version: 1.4.1, gtk version: 3.14.6
Comment 1 Hugo Pereira Da Costa 2015-01-28 20:32:47 UTC
not sure whether you are using the oxygen-gtk version for gtk2 or for gtk3 

In any case this is most probably yet another occurence of an upstream (known) bug with gtk/glib, that is a consequence of the (not well supported) "appears-as-list=1" option.

For gtk2, could you try again by adding
    GtkComboBox::appears-as-list = 0
either in your local .gtkrc file, or in 
/usr/share/themes/oxygen-gtk/gtk-2.0/gtkrc

For gtk3,  by adding 
    -GtkComboBox-appears-as-list: 0;
in either your local gtk.css ($HOME/.config/gtk-3.0/gtk.css)
or in /usr/share/themes/oxygen-gtk/gtk-3.0/gtk.css

One of the two should fix this, and if yes, this is definitly upstream.
Comment 2 Hugo Pereira Da Costa 2015-01-28 20:33:51 UTC
Alternatively, you could try with another widget theme, 
do the 'inverse' of the change above (using 1 instead of 0), to local files, and see if the problem also appears, which, here also, would confirm it is upstream.
Comment 3 Vojtech Trefny 2015-01-28 22:14:39 UTC
Ok, editing /usr/share/themes/oxygen-gtk/gtk-3.0/gtk.css helps but it doesn't solve my problem. My problem is I'm a developer and my Gtk application is unusable in KDE -- what should I do? Is this problem of Fedora build of oxygen-gtk? Or what "upstream" do you refer to -- KDE project is not upstream for oxygen-gtk?
Comment 4 Hugo Pereira Da Costa 2015-01-28 22:35:01 UTC
First, a double check: could you try use say "adwaita", edit "/usr/share/themes/Adwaita/gtk-3.0/gtk.css" to set appears-as-list = 1, and see if the problem reappears.

If it does, it definitly is a gtk issue, and gtk is upstream of oxygen-gtk, (by definition, since this is the toolkit we use).

They have had problems with appears-as-list=1 for ages now (some other applications simply crash).
From there you can either 
- post a bug report to gtk devs (possibly linking this one)
- propose a patch to Fedora on oxygen-gtk3's file to alter the option.

We: we will not change it because appear-as-list=1 is how we want it to look (for being consistent with the rest of kde). Besides, for some reasons, not all applications shows the issue. (see for instance oxygen-gtk3-demo)

Last but not least: oxygen-gtk3 will not be loaded anymore by future versions of the gtk3 toolkit due to rather drastic api changes, so that development on oxygen-gtk3 is pretty much done (not my fault, please understand my frustration).

See for instance: https://bugs.kde.org/show_bug.cgi?id=340288 and references therein
Comment 5 Vojtech Trefny 2015-01-29 10:01:30 UTC
Just tested this with Adwaita and even in pure GNOME setting appears-as-list to 1 breaks the combo box... Thanks for your help, i'm going to report this against gtk.