diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-10-12 14:52:57 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-10-12 15:35:00 -0400 |
commit | 812a879ec2b7506c08a179691ec15a1eaaa280f8 (patch) | |
tree | be10bce8afb6dc4c6a4199ff785f95783b866bb2 /gtk/inspector | |
parent | 5627542d7cd70d74423d8da79cfa2aa85ff1966e (diff) | |
download | gtk+-812a879ec2b7506c08a179691ec15a1eaaa280f8.tar.gz |
inspector: Use gtk_widget_get_style_color
The graph renderer in the statistics page needs
the CSS foreground color to draw the graph. Use
the just introduced api for it.
Diffstat (limited to 'gtk/inspector')
-rw-r--r-- | gtk/inspector/graphrenderer.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gtk/inspector/graphrenderer.c b/gtk/inspector/graphrenderer.c index 595f82213e..0fb1f0d427 100644 --- a/gtk/inspector/graphrenderer.c +++ b/gtk/inspector/graphrenderer.c @@ -22,7 +22,6 @@ #include "graphdata.h" #include "gtksnapshot.h" -#include "deprecated/gtkstylecontext.h" enum { PROP_0, @@ -131,7 +130,6 @@ graph_renderer_snapshot (GtkWidget *widget, GtkSnapshot *snapshot) { GraphRenderer *self = GRAPH_RENDERER (widget); - GtkStyleContext *context; double minimum, maximum, diff; double x, y, width, height; cairo_t *cr; @@ -155,10 +153,7 @@ graph_renderer_snapshot (GtkWidget *widget, diff = maximum - minimum; -G_GNUC_BEGIN_IGNORE_DEPRECATIONS - context = gtk_widget_get_style_context (widget); - gtk_style_context_get_color (context, &color); -G_GNUC_END_IGNORE_DEPRECATIONS + gtk_widget_get_style_color (widget, &color); cr = gtk_snapshot_append_cairo (snapshot, &GRAPHENE_RECT_INIT ( |