[gtk+/wip/baedert/drawing: 168/188] paned: Remove css box drawing
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 168/188] paned: Remove css box drawing
- Date: Thu, 4 May 2017 07:50:01 +0000 (UTC)
commit a6c425da34442540a69cc22cc04776d82c395e65
Author: Timm Bäder <mail baedert org>
Date: Wed May 3 11:37:31 2017 +0200
paned: Remove css box drawing
gtk/gtkpaned.c | 20 ++------------------
1 files changed, 2 insertions(+), 18 deletions(-)
---
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
index 9014875..54e515e 100644
--- a/gtk/gtkpaned.c
+++ b/gtk/gtkpaned.c
@@ -1643,21 +1643,7 @@ 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;
+ GtkPanedPrivate *priv = gtk_paned_get_instance_private (GTK_PANED (widget));
GtkAllocation widget_allocation;
int window_x, window_y;
@@ -1695,8 +1681,6 @@ gtk_paned_render (GtkCssGadget *gadget,
gtk_widget_snapshot_child (widget, priv->child2, snapshot);
gtk_snapshot_pop (snapshot);
}
-
- return FALSE;
}
static gboolean
@@ -1816,7 +1800,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]