summaryrefslogtreecommitdiff
path: root/gtk/gtkroot.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2019-02-10 01:06:39 +0100
committerBenjamin Otte <otte@redhat.com>2019-02-15 06:53:17 +0100
commit694d7c378b23bbe79acd0a2a848c343e11fff76f (patch)
treefcff6a998398b8cd2084650054453b28207af74e /gtk/gtkroot.c
parent446713fb8b03ec058833e2380c52637a48f9ff1c (diff)
downloadgtk+-694d7c378b23bbe79acd0a2a848c343e11fff76f.tar.gz
root: Move the renderer to the root
Diffstat (limited to 'gtk/gtkroot.c')
-rw-r--r--gtk/gtkroot.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gtk/gtkroot.c b/gtk/gtkroot.c
index d94dd2e273..1907786e95 100644
--- a/gtk/gtkroot.c
+++ b/gtk/gtkroot.c
@@ -43,6 +43,12 @@ gtk_root_default_get_display (GtkRoot *self)
return gdk_display_get_default ();
}
+static GskRenderer *
+gtk_root_default_get_renderer (GtkRoot *self)
+{
+ return NULL;
+}
+
static void
gtk_root_default_get_surface_transform (GtkRoot *self,
int *x,
@@ -56,6 +62,7 @@ static void
gtk_root_default_init (GtkRootInterface *iface)
{
iface->get_display = gtk_root_default_get_display;
+ iface->get_renderer = gtk_root_default_get_renderer;
iface->get_surface_transform = gtk_root_default_get_surface_transform;
}
@@ -70,6 +77,16 @@ gtk_root_get_display (GtkRoot *self)
return iface->get_display (self);
}
+GskRenderer *
+gtk_root_get_renderer (GtkRoot *self)
+{
+ GtkRootInterface *iface;
+
+ g_return_val_if_fail (GTK_IS_ROOT (self), NULL);
+
+ iface = GTK_ROOT_GET_IFACE (self);
+ return iface->get_renderer (self);
+}
void
gtk_root_get_surface_transform (GtkRoot *self,