GtkEntry: Should pay attention to :hover state CSS selector
Steps to reproduce
Here's a GJS script:
Object.assign(imports.gi.versions, {Gdk: '3.0', Gtk: '3.0'});
const {Gdk, Gtk} = imports.gi;
Gtk.init(null);
const entry = new Gtk.Entry({
valign: Gtk.Align.CENTER,
primary_icon_name: 'edit-find-symbolic',
});
const w = new Gtk.Window();
w.add(entry);
const css = `
entry { background-color: blue; }
entry:hover { background-color: red; }
entry image { color: green; }
entry image:hover { color: white; }`;
const provider = new Gtk.CssProvider();
provider.load_from_data(css);
Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(), provider,
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
w.connect('destroy', () => Gtk.main_quit());
w.show_all();
Gtk.main();
Current behavior
Hovering over the entry has no effect. Hovering over the icon turns it from green to white as expected.
Expected outcome
Hovering over the entry should turn it from blue to red.
Version information
Tested inside GNOME Flatpak runtime. Info:
Ref: runtime/org.gnome.Sdk/x86_64/master
ID: org.gnome.Sdk
Arch: x86_64
Branch: master
Origin: gnome-nightly
Collection ID:
Date: 2018-03-19 19:51:59 +0000
Subject: build of org.gnome.Sdk, Mon Mar 19 18:04:31 UTC 2018
Commit: ad722135212ca96f2611f839cb1e3ba41ab2c29d5c679737f886e3363851eb69
Parent: 51575bef5f4b620eb02d86142eaf74f45e36f533110b5be8fa88dd0adedc5405
Location: /var/lib/flatpak/runtime/org.gnome.Sdk/x86_64/master/ad722135212ca96f2611f839cb1e3ba41ab2c29d5c679737f886e3363851eb69
Installed size: 1.6 GB