[gtk+/wip/baedert/drawing: 111/301] headerbar: Remove css box drawing
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 111/301] headerbar: Remove css box drawing
- Date: Fri, 26 May 2017 10:43:18 +0000 (UTC)
commit 883bf37a848853d0c19511c044faefbcf148d1e4
Author: Timm Bäder <mail baedert org>
Date: Wed May 3 10:24:43 2017 +0200
headerbar: Remove css box drawing
gtk/gtkheaderbar.c | 29 +----------------------------
1 files changed, 1 insertions(+), 28 deletions(-)
---
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index 9aa401f..c325b0b 100644
--- a/gtk/gtkheaderbar.c
+++ b/gtk/gtkheaderbar.c
@@ -1806,31 +1806,6 @@ gtk_header_bar_set_child_property (GtkContainer *container,
}
static void
-gtk_header_bar_snapshot (GtkWidget *widget,
- GtkSnapshot *snapshot)
-{
- GtkHeaderBarPrivate *priv = gtk_header_bar_get_instance_private (GTK_HEADER_BAR (widget));
-
- gtk_css_gadget_snapshot (priv->gadget, snapshot);
-}
-
-static gboolean
-gtk_header_bar_render_contents (GtkCssGadget *gadget,
- GtkSnapshot *snapshot,
- int x,
- int y,
- int width,
- int height,
- gpointer unused)
-{
- GtkWidget *widget = gtk_css_gadget_get_owner (gadget);
-
- GTK_WIDGET_CLASS (gtk_header_bar_parent_class)->snapshot (widget, snapshot);
-
- return FALSE;
-}
-
-static void
gtk_header_bar_realize (GtkWidget *widget)
{
GtkSettings *settings;
@@ -1913,7 +1888,6 @@ gtk_header_bar_class_init (GtkHeaderBarClass *class)
widget_class->destroy = gtk_header_bar_destroy;
widget_class->size_allocate = gtk_header_bar_size_allocate;
widget_class->measure = gtk_header_bar_measure;
- widget_class->snapshot = gtk_header_bar_snapshot;
widget_class->realize = gtk_header_bar_realize;
widget_class->unrealize = gtk_header_bar_unrealize;
widget_class->hierarchy_changed = gtk_header_bar_hierarchy_changed;
@@ -2070,10 +2044,9 @@ gtk_header_bar_init (GtkHeaderBar *bar)
GTK_WIDGET (bar),
gtk_header_bar_get_content_size,
gtk_header_bar_allocate_contents,
- gtk_header_bar_render_contents,
+ NULL,
NULL,
NULL);
-
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]