[gtk+] snapshot: Convert GtkSeparator
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] snapshot: Convert GtkSeparator
- Date: Tue, 15 Nov 2016 16:58:12 +0000 (UTC)
commit 9c1da58ad1cff54969a7b71e61a9a8579ed31a48
Author: Benjamin Otte <otte redhat com>
Date: Tue Nov 15 16:21:14 2016 +0100
snapshot: Convert GtkSeparator
gtk/gtkseparator.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtkseparator.c b/gtk/gtkseparator.c
index ef211f3..5744d6f 100644
--- a/gtk/gtkseparator.c
+++ b/gtk/gtkseparator.c
@@ -146,6 +146,13 @@ gtk_separator_size_allocate (GtkWidget *widget,
}
static void
+gtk_separator_snapshot (GtkWidget *widget,
+ GtkSnapshot *snapshot)
+{
+ gtk_css_gadget_snapshot (GTK_SEPARATOR (widget)->priv->gadget, snapshot);
+}
+
+static void
gtk_separator_init (GtkSeparator *separator)
{
GtkCssNode *widget_node;
@@ -176,14 +183,6 @@ gtk_separator_finalize (GObject *object)
G_OBJECT_CLASS (gtk_separator_parent_class)->finalize (object);
}
-static GskRenderNode *
-gtk_separator_get_render_node (GtkWidget *widget, GskRenderer *renderer)
-{
- return gtk_css_gadget_get_render_node (GTK_SEPARATOR (widget)->priv->gadget,
- renderer,
- FALSE);
-}
-
static void
gtk_separator_class_init (GtkSeparatorClass *class)
{
@@ -196,7 +195,8 @@ gtk_separator_class_init (GtkSeparatorClass *class)
widget_class->measure = gtk_separator_measure;
widget_class->size_allocate = gtk_separator_size_allocate;
- widget_class->get_render_node = gtk_separator_get_render_node;
+
+ widget_class->snapshot = gtk_separator_snapshot;
g_object_class_override_property (object_class, PROP_ORIENTATION, "orientation");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]