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/gtkrevealer.c | |
parent | b7869c65a858a52632f9eae3c5f98bdce84fa375 (diff) | |
download | gtk+-4850271ae81f346fb508692f6939c0c2c5883452.tar.gz |
API: Remove gtk_cairo_should_draw_window()
The answer is: Yes.
Diffstat (limited to 'gtk/gtkrevealer.c')
-rw-r--r-- | gtk/gtkrevealer.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/gtk/gtkrevealer.c b/gtk/gtkrevealer.c index ae4f14164b..c9e7693824 100644 --- a/gtk/gtkrevealer.c +++ b/gtk/gtkrevealer.c @@ -100,8 +100,6 @@ static void gtk_revealer_real_size_allocate (GtkWidget GtkAllocation *allocation); static void gtk_revealer_real_map (GtkWidget *widget); static void gtk_revealer_real_unmap (GtkWidget *widget); -static gboolean gtk_revealer_real_draw (GtkWidget *widget, - cairo_t *cr); static void gtk_revealer_measure (GtkWidget *widget, GtkOrientation orientation, int for_size, @@ -220,7 +218,6 @@ gtk_revealer_class_init (GtkRevealerClass *klass) widget_class->size_allocate = gtk_revealer_real_size_allocate; widget_class->map = gtk_revealer_real_map; widget_class->unmap = gtk_revealer_real_unmap; - widget_class->draw = gtk_revealer_real_draw; widget_class->measure = gtk_revealer_measure; container_class->add = gtk_revealer_real_add; @@ -652,19 +649,6 @@ gtk_revealer_real_unmap (GtkWidget *widget) gtk_revealer_stop_animation (revealer); } -static gboolean -gtk_revealer_real_draw (GtkWidget *widget, - cairo_t *cr) -{ - GtkRevealer *revealer = GTK_REVEALER (widget); - GtkRevealerPrivate *priv = gtk_revealer_get_instance_private (revealer); - - if (gtk_cairo_should_draw_window (cr, priv->bin_window)) - GTK_WIDGET_CLASS (gtk_revealer_parent_class)->draw (widget, cr); - - return GDK_EVENT_PROPAGATE; -} - /** * gtk_revealer_set_reveal_child: * @revealer: a #GtkRevealer |