[gtk+/wip/baedert/drawing: 29/355] paned: Remove css box drawing
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 29/355] paned: Remove css box drawing
- Date: Tue, 11 Jul 2017 16:30:45 +0000 (UTC)
commit 894120dfe4d6357b48ade6dfb4e1f6241998881f
Author: Timm Bäder <mail baedert org>
Date: Wed May 3 11:37:31 2017 +0200
paned: Remove css box drawing
gtk/gtkpaned.c | 23 ++++-------------------
1 files changed, 4 insertions(+), 19 deletions(-)
---
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
index 53eccc7..197931f 100644
--- a/gtk/gtkpaned.c
+++ b/gtk/gtkpaned.c
@@ -1502,22 +1502,9 @@ static void
gtk_paned_snapshot (GtkWidget *widget,
GtkSnapshot *snapshot)
{
- gtk_css_gadget_snapshot (GTK_PANED (widget)->priv->gadget, snapshot);
-}
-
-static gboolean
-gtk_paned_render (GtkCssGadget *gadget,
- GtkSnapshot *snapshot,
- int x,
- int y,
- int width,
- int height,
- gpointer data)
-{
- GtkWidget *widget = gtk_css_gadget_get_owner (gadget);
- GtkPaned *paned = GTK_PANED (widget);
- GtkPanedPrivate *priv = paned->priv;
- GtkAllocation widget_allocation, child_allocation;
+ GtkPanedPrivate *priv = gtk_paned_get_instance_private (GTK_PANED (widget));
+ GtkAllocation widget_allocation;
+ GtkAllocation child_allocation;
gtk_widget_get_allocation (widget, &widget_allocation);
gtk_snapshot_push_clip (snapshot,
@@ -1563,8 +1550,6 @@ gtk_paned_render (GtkCssGadget *gadget,
}
gtk_snapshot_pop (snapshot);
-
- return FALSE;
}
static gboolean
@@ -1684,7 +1669,7 @@ gtk_paned_init (GtkPaned *paned)
GTK_WIDGET (paned),
gtk_paned_measure,
gtk_paned_allocate,
- gtk_paned_render,
+ NULL,
NULL,
NULL);
priv->handle_gadget = gtk_css_custom_gadget_new ("separator",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]