[gtk+/wip/baedert/drawing: 51/262] actionbar: Remove css box drawing
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 51/262] actionbar: Remove css box drawing
- Date: Tue, 6 Jun 2017 09:23:59 +0000 (UTC)
commit 4b96f7c4c787281d72130f1bb724a2a26a2871db
Author: Timm Bäder <mail baedert org>
Date: Wed May 3 11:16:38 2017 +0200
actionbar: Remove css box drawing
gtk/gtkactionbar.c | 24 ++++--------------------
1 files changed, 4 insertions(+), 20 deletions(-)
---
diff --git a/gtk/gtkactionbar.c b/gtk/gtkactionbar.c
index bf598b7..c92895d 100644
--- a/gtk/gtkactionbar.c
+++ b/gtk/gtkactionbar.c
@@ -263,30 +263,14 @@ gtk_action_bar_set_child_property (GtkContainer *container,
}
}
-static gboolean
-gtk_action_bar_render (GtkCssGadget *gadget,
- GtkSnapshot *snapshot,
- int x,
- int y,
- int width,
- int height,
- gpointer data)
-{
- GtkActionBar *self = GTK_ACTION_BAR (gtk_css_gadget_get_owner (gadget));
- GtkActionBarPrivate *priv = gtk_action_bar_get_instance_private (GTK_ACTION_BAR (self));
-
- gtk_widget_snapshot_child (GTK_WIDGET (self), priv->revealer, snapshot);
-
- return FALSE;
-}
-
static void
gtk_action_bar_snapshot (GtkWidget *widget,
GtkSnapshot *snapshot)
{
- GtkActionBarPrivate *priv = gtk_action_bar_get_instance_private (GTK_ACTION_BAR (widget));
+ GtkActionBar *self = GTK_ACTION_BAR (widget);
+ GtkActionBarPrivate *priv = gtk_action_bar_get_instance_private (self);
- gtk_css_gadget_snapshot (priv->gadget, snapshot);
+ gtk_widget_snapshot_child (GTK_WIDGET (self), priv->revealer, snapshot);
}
static void
@@ -491,7 +475,7 @@ gtk_action_bar_init (GtkActionBar *action_bar)
GTK_WIDGET (action_bar),
gtk_action_bar_measure,
gtk_action_bar_allocate,
- gtk_action_bar_render,
+ NULL,
NULL,
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]