[gtk+/wip/matthiasc/gsk-renderer] Convert GtkSpinner to indirect rendering
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/gsk-renderer] Convert GtkSpinner to indirect rendering
- Date: Sat, 20 Aug 2016 01:48:50 +0000 (UTC)
commit b99ed180a1199ecc49c5968d2cebfc5e48819866
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Aug 18 17:25:41 2016 -0400
Convert GtkSpinner to indirect rendering
gtk/gtkspinner.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkspinner.c b/gtk/gtkspinner.c
index 0f410e0..97d8e58 100644
--- a/gtk/gtkspinner.c
+++ b/gtk/gtkspinner.c
@@ -123,13 +123,13 @@ gtk_spinner_size_allocate (GtkWidget *widget,
gtk_widget_set_clip (widget, &clip);
}
-static gboolean
-gtk_spinner_draw (GtkWidget *widget,
- cairo_t *cr)
+static GskRenderNode *
+gtk_spinner_get_render_node (GtkWidget *widget,
+ GskRenderer *renderer)
{
- gtk_css_gadget_draw (GTK_SPINNER (widget)->priv->gadget, cr);
-
- return FALSE;
+ return gtk_css_gadget_get_render_node (GTK_SPINNER (widget)->priv->gadget,
+ renderer,
+ FALSE);
}
static void
@@ -204,7 +204,7 @@ gtk_spinner_class_init (GtkSpinnerClass *klass)
widget_class = GTK_WIDGET_CLASS(klass);
widget_class->size_allocate = gtk_spinner_size_allocate;
- widget_class->draw = gtk_spinner_draw;
+ widget_class->get_render_node = gtk_spinner_get_render_node;
widget_class->get_preferred_width = gtk_spinner_get_preferred_width;
widget_class->get_preferred_height = gtk_spinner_get_preferred_height;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]