GNOME Bugzilla – Bug 760314
gtkimcontextime.c: Silence gtk_style_context_set_state() warnings
Last modified: 2016-01-08 15:40:55 UTC
Hi, Since 3.19.x the GTK+ CSS APIs have been updated, which will require an update so that the the state passed into GtkStyleContext would be in line with what it expects. Not doing so would cause a warning like the following be displayed when one is using a text-related widget (such as GtkEntry or GtkTextView) and is running the program on Windows with CJK IME installed and running: (gtk3-demo-application.exe:47152): Gtk-WARNING **: State 0 for GtkTextView 0000000002BD2AA0 doesn't match state 160 set via gtk_style_context_set_state () I will attach a patch to remedy this. With blessings, thank you!
Created attachment 318474 [details] [review] Windows/CJK IME (gtkimcontextime.c): Silence gtk_style_context_set_state() warnings Hi, Here comes the patch, as I am hit by this warning, as a CJK Windows user... With blessings, thank you!
Created attachment 318476 [details] [review] Windows/CJK IME (gtkimcontextime.c): Silence gtk_style_context_set_state() warnings oops, not exactly the correct patch I have in mind :|
Review of attachment 318476 [details] [review]: Looks good.
Hi Nacho, Thanks for the really quick review, I have pushed the patch as d07f00d. With blessings, thank you!