[gtk+/wip/baedert/drawing: 21/359] actionbar: Remove css box drawing
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 21/359] actionbar: Remove css box drawing
- Date: Thu, 13 Jul 2017 14:29:32 +0000 (UTC)
commit 6d65122249d707bc865d913c4e9a55909fe949e0
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]