GNOME Bugzilla – Bug 763488
ui: Suppress CSS warnings for GTK+ 3.20
Last modified: 2019-02-22 11:58:47 UTC
-- Running gcr-viewer from jhbuild shell, I get warnings like: (lt-gcr-viewer:7409): Gtk-WARNING **: State 36 for GcrDisplayView 0xd62540 doesn't match state 224 set via gtk_style_context_set_state () (lt-gcr-viewer:7409): Gtk-WARNING **: State 36 for GcrDisplayView 0xd62540 doesn't match state 224 set via gtk_style_context_set_state () (lt-gcr-viewer:7409): Gtk-WARNING **: State 36 for GcrDisplayView 0xd62540 doesn't match state 224 set via gtk_style_context_set_state ()
Created attachment 323678 [details] [review] ui: Suppress CSS warnings for GTK+ 3.20 If STATE argument of gtk_style_context_get*() doesn't match with the CONTEXT's state, it shows warnings like: State 36 for GcrDisplayView 0xd62540 doesn't match state 160 set via gtk_style_context_set_state () To suppress those warnings, add gtk_style_context_save() and _restore() around the calls. Based on the information from: http://feaneron.com/2016/01/04/quick-guide-to-port-an-app-for-gtk-3-20/
Thanks. Merged into master. Attachment 323678 [details] pushed as 5db6fe1 - ui: Suppress CSS warnings for GTK+ 3.20