Skip to content

Commit

Permalink
StyleContext: Don't advise using invalidate()
Browse files Browse the repository at this point in the history
It's deprecated. Also, set_screen() is not used/needed in the demo cited
  • Loading branch information
db-src committed May 21, 2018
1 parent abcc477 commit a7cd208
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions gtk/gtkstylecontext.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,8 @@
*
* If you are using the theming layer standalone, you will need to set a
* widget path and a screen yourself to the created style context through
* gtk_style_context_set_path() and gtk_style_context_set_screen(), as well
* as updating the context yourself using gtk_style_context_invalidate()
* whenever any of the conditions change, such as a change in the
* #GtkSettings:gtk-theme-name setting or a hierarchy change in the rendered
* widget. See the “Foreign drawing“ example in gtk3-demo.
* gtk_style_context_set_path() and possibly gtk_style_context_set_screen(). See
* the “Foreign drawing“ example in gtk3-demo.
*
* # Style Classes # {#gtkstylecontext-classes}
*
Expand Down

0 comments on commit a7cd208

Please sign in to comment.