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 745622 - Selected text not highlighted in GtkInfoBar
Selected text not highlighted in GtkInfoBar
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Themes
3.20.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2015-03-04 16:37 UTC by Peter Bloomfield
Modified: 2016-05-31 17:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test case (1.15 KB, text/x-csrc)
2015-03-04 16:37 UTC, Peter Bloomfield
  Details
Adwaita: selected labels inside infobars (2.63 KB, patch)
2015-03-05 10:41 UTC, Jakub Steiner
none Details | Review

Description Peter Bloomfield 2015-03-04 16:37:24 UTC
Created attachment 298551 [details]
Test case

When a GtkLabel is packed in a GtkInfoBar and made selectable, any selected text is not highlighted. Dragging shows that it is indeed selected, but there's no visual cue.

The attached test case has one label packed in a GtkInfoBar, and another packed simply in the containing GtkBox. The latter verifies that the selection is usually highlighted.
Comment 1 Jakub Steiner 2015-03-05 10:41:03 UTC
Created attachment 298618 [details] [review]
Adwaita: selected labels inside infobars
Comment 2 Jakub Steiner 2015-03-05 10:41:31 UTC
Thanks for the report and particularly the test case.
Comment 3 Peter Bloomfield 2015-03-05 15:47:26 UTC
(In reply to Jakub Steiner from comment #2)
> Thanks for the report and particularly the test case.

You're welcome--thanks for the quick fix!
Comment 4 Sébastien Wilmet 2016-05-22 13:53:46 UTC
In GTK+ 3.20 and git master, this is broken again.
Comment 5 Lapo Calamandrei 2016-05-30 12:05:10 UTC
...and this is fixed again in gtk-3-20 branch with commit 5c763e97c4d6e2191f2088684a4e0be22f9bc9ff and in master with f54e28177c51c663100a2eb8e0401fd17cc0556c ;-)
Comment 6 Peter Bloomfield 2016-05-30 14:36:13 UTC
Confirmed that it's fixed (tested only in master)--thanks!
Comment 7 Sébastien Wilmet 2016-05-31 10:39:01 UTC
Thanks. There is another bug with the GtkInfoBar with the context menu, maybe related to this one: filed as bug #767058.
Comment 8 Lapo Calamandrei 2016-05-31 17:49:15 UTC
Yeah, pretty much related, menu being a child of the selection now, makes it inherits the color, I think, I'll take a look asap.