summaryrefslogtreecommitdiff
path: root/gtk/gtkcheckbutton.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-11-14 21:55:03 +0100
committerBenjamin Otte <otte@redhat.com>2016-11-15 17:48:45 +0100
commitab47479045a6437c07f7b05b4208623fca870c5e (patch)
tree2481870380d0e2e92b05c8fad2bff620c882f61a /gtk/gtkcheckbutton.c
parent4c9033b62de3c14680eb119e390678c132714768 (diff)
downloadgtk+-ab47479045a6437c07f7b05b4208623fca870c5e.tar.gz
snapshot: Convert GtkButton and subclasses
Diffstat (limited to 'gtk/gtkcheckbutton.c')
-rw-r--r--gtk/gtkcheckbutton.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c
index 5d0d8af01c..167095a63e 100644
--- a/gtk/gtkcheckbutton.c
+++ b/gtk/gtkcheckbutton.c
@@ -80,9 +80,8 @@
static void gtk_check_button_size_allocate (GtkWidget *widget,
GtkAllocation *allocation);
-static GskRenderNode *gtk_check_button_get_render_node (GtkWidget *widget,
- GskRenderer *renderer);
-
+static void gtk_check_button_snapshot (GtkWidget *widget,
+ GtkSnapshot *snapshot);
typedef struct {
GtkCssGadget *gadget;
@@ -210,7 +209,7 @@ gtk_check_button_class_init (GtkCheckButtonClass *class)
widget_class->measure = gtk_check_button_measure;
widget_class->size_allocate = gtk_check_button_size_allocate;
- widget_class->get_render_node = gtk_check_button_get_render_node;
+ widget_class->snapshot = gtk_check_button_snapshot;
widget_class->state_flags_changed = gtk_check_button_state_flags_changed;
widget_class->direction_changed = gtk_check_button_direction_changed;
@@ -382,18 +381,16 @@ gtk_check_button_size_allocate (GtkWidget *widget,
}
}
-static GskRenderNode *
-gtk_check_button_get_render_node (GtkWidget *widget,
- GskRenderer *renderer)
+static void
+gtk_check_button_snapshot (GtkWidget *widget,
+ GtkSnapshot *snapshot)
{
GtkCheckButtonPrivate *priv = gtk_check_button_get_instance_private (GTK_CHECK_BUTTON (widget));
if (!gtk_toggle_button_get_mode (GTK_TOGGLE_BUTTON (widget)))
- return GTK_WIDGET_CLASS (gtk_check_button_parent_class)->get_render_node (widget, renderer);
+ GTK_WIDGET_CLASS (gtk_check_button_parent_class)->snapshot (widget, snapshot);
else
- return gtk_css_gadget_get_render_node (priv->gadget,
- renderer,
- gtk_widget_has_visible_focus (widget));
+ gtk_css_gadget_snapshot (priv->gadget, snapshot);
}
GtkCssNode *