[nautilus] floating-bar: don't manually draw a background



commit 9563e589bdc86b0c65aca77fb50da59b9e3cb03b
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Aug 28 15:56:41 2014 -0700

    floating-bar: don't manually draw a background
    
    GtkBox does this for us nowadays.

 src/nautilus-floating-bar.c |   25 -------------------------
 1 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/src/nautilus-floating-bar.c b/src/nautilus-floating-bar.c
index 350717e..d32b63c 100644
--- a/src/nautilus-floating-bar.c
+++ b/src/nautilus-floating-bar.c
@@ -213,30 +213,6 @@ nautilus_floating_bar_hide (GtkWidget *widget)
        gtk_spinner_stop (GTK_SPINNER (self->priv->spinner));
 }
 
-static gboolean
-nautilus_floating_bar_draw (GtkWidget *widget,
-                           cairo_t *cr)
-{
-       GtkStyleContext *context;
-
-       context = gtk_widget_get_style_context (widget);
-
-       gtk_style_context_save (context);
-       gtk_style_context_set_state (context, gtk_widget_get_state_flags (widget));
-
-       gtk_render_background (context, cr, 0, 0,
-                              gtk_widget_get_allocated_width (widget),
-                              gtk_widget_get_allocated_height (widget));
-
-       gtk_render_frame (context, cr, 0, 0,
-                         gtk_widget_get_allocated_width (widget),
-                         gtk_widget_get_allocated_height (widget));
-
-       gtk_style_context_restore (context);
-
-       return GTK_WIDGET_CLASS (nautilus_floating_bar_parent_class)->draw (widget, cr);;
-}
-
 static void
 nautilus_floating_bar_constructed (GObject *obj)
 {
@@ -302,7 +278,6 @@ nautilus_floating_bar_class_init (NautilusFloatingBarClass *klass)
        oclass->get_property = nautilus_floating_bar_get_property;
        oclass->finalize = nautilus_floating_bar_finalize;
 
-       wclass->draw = nautilus_floating_bar_draw;
        wclass->show = nautilus_floating_bar_show;
        wclass->hide = nautilus_floating_bar_hide;
        wclass->parent_set = nautilus_floating_bar_parent_set;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]