summaryrefslogtreecommitdiff
path: root/gtk/inspector
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-10-09 23:30:06 -0400
committerMatthias Clasen <mclasen@redhat.com>2022-10-12 15:35:00 -0400
commitee8c2a235fafb7fe8d2abadb7a406130367332b4 (patch)
treedc3e5c4c03eabd759adb2c6ff088ff47b5e99b6c /gtk/inspector
parent299fbfd72211f168a1c8d9b46a651e01ea0d0403 (diff)
downloadgtk+-ee8c2a235fafb7fe8d2abadb7a406130367332b4.tar.gz
stylecontext: Deprecate most apis
The notable exception here are the global provider apis, which are needed in some form and don't have a replacement yet. Move them to gtkstyleprovider.[hc], so we can wholly deprecated gtkstylecontext.[hc].
Diffstat (limited to 'gtk/inspector')
-rw-r--r--gtk/inspector/css-editor.c1
-rw-r--r--gtk/inspector/graphrenderer.c4
-rw-r--r--gtk/inspector/window.c1
3 files changed, 3 insertions, 3 deletions
diff --git a/gtk/inspector/css-editor.c b/gtk/inspector/css-editor.c
index 8047545b62..b1dc9bf701 100644
--- a/gtk/inspector/css-editor.c
+++ b/gtk/inspector/css-editor.c
@@ -28,7 +28,6 @@
#include "gtkcssprovider.h"
#include "gtkstyleprovider.h"
-#include "gtkstylecontext.h"
#include "gtktextview.h"
#include "gtkmessagedialog.h"
#include "gtkfilechooserdialog.h"
diff --git a/gtk/inspector/graphrenderer.c b/gtk/inspector/graphrenderer.c
index 6ade21e5b2..595f82213e 100644
--- a/gtk/inspector/graphrenderer.c
+++ b/gtk/inspector/graphrenderer.c
@@ -22,7 +22,7 @@
#include "graphdata.h"
#include "gtksnapshot.h"
-#include "gtkstylecontext.h"
+#include "deprecated/gtkstylecontext.h"
enum {
PROP_0,
@@ -155,8 +155,10 @@ 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
cr = gtk_snapshot_append_cairo (snapshot,
&GRAPHENE_RECT_INIT (
diff --git a/gtk/inspector/window.c b/gtk/inspector/window.c
index 1364f34d3f..8c55db19a0 100644
--- a/gtk/inspector/window.c
+++ b/gtk/inspector/window.c
@@ -63,7 +63,6 @@
#include "gtkrevealer.h"
#include "gtklayoutmanager.h"
#include "gtkcssprovider.h"
-#include "gtkstylecontext.h"
#include "gtkwidgetprivate.h"