diff options
author | Benjamin Otte <otte@redhat.com> | 2016-11-22 19:31:03 +0100 |
---|---|---|
committer | Benjamin Otte <lvs@localhost.localdomain> | 2016-11-23 18:48:38 +0100 |
commit | 4850271ae81f346fb508692f6939c0c2c5883452 (patch) | |
tree | d0931c79656e98ea11300a1362eba73447f14607 /gtk/gtklayout.c | |
parent | b7869c65a858a52632f9eae3c5f98bdce84fa375 (diff) | |
download | gtk+-4850271ae81f346fb508692f6939c0c2c5883452.tar.gz |
API: Remove gtk_cairo_should_draw_window()
The answer is: Yes.
Diffstat (limited to 'gtk/gtklayout.c')
-rw-r--r-- | gtk/gtklayout.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/gtk/gtklayout.c b/gtk/gtklayout.c index 28b72d00ad..f505278ecf 100644 --- a/gtk/gtklayout.c +++ b/gtk/gtklayout.c @@ -132,8 +132,6 @@ static void gtk_layout_measure (GtkWidget *widget, int *natural_baseline); static void gtk_layout_size_allocate (GtkWidget *widget, GtkAllocation *allocation); -static gint gtk_layout_draw (GtkWidget *widget, - cairo_t *cr); static void gtk_layout_add (GtkContainer *container, GtkWidget *widget); static void gtk_layout_remove (GtkContainer *container, @@ -603,7 +601,6 @@ gtk_layout_class_init (GtkLayoutClass *class) widget_class->map = gtk_layout_map; widget_class->measure = gtk_layout_measure; widget_class->size_allocate = gtk_layout_size_allocate; - widget_class->draw = gtk_layout_draw; container_class->add = gtk_layout_add; container_class->remove = gtk_layout_remove; @@ -899,19 +896,6 @@ gtk_layout_size_allocate (GtkWidget *widget, gtk_layout_set_vadjustment_values (layout); } -static gboolean -gtk_layout_draw (GtkWidget *widget, - cairo_t *cr) -{ - GtkLayout *layout = GTK_LAYOUT (widget); - GtkLayoutPrivate *priv = layout->priv; - - if (gtk_cairo_should_draw_window (cr, priv->bin_window)) - GTK_WIDGET_CLASS (gtk_layout_parent_class)->draw (widget, cr); - - return FALSE; -} - /* Container methods */ static void |