GtkSearchEntry sometimes assigns a width/height of < 0 to its image
Steps to reproduce
- Clone git repo https://github.com/Cogitri/gtk-bug-1779
- Build & run application:
cargo run
- Click on "Click me" and type something in the GtkSearchEntry
Sorry that the test repo isn't in C, I hope Rust works for you :)
Current behavior
When you type something into the GtkSearchBar the following warning appears and the SearchEntry flashes for a few frames:
(.:25379): Gtk-WARNING **: 12:22:40.339: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node image owner GtkSearchEntry)
This only happens the first time something is typed into the SearchEntry during the program's runtime
Expected outcome
No warning should occur, the SearchEntry shouldn't flash
Version information
GTK+3 Version: 3.24.7 OS: Void Linux Configuration as per Autotools:
GTK+ 3.24.7
===========
GDK backends: x11 broadway wayland
X11 extensions: XKB Xinerama XI2.2 XRANDR XFIXES Composite DAMAGE
Print backends: file lpr cups
Dynamic modules: yes
Included immodules: none
colord support: yes
Introspection: yes
Debugging: minimum
Documentation: no