summaryrefslogtreecommitdiff
path: root/src/nautilus-floating-bar.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2014-08-28 15:56:41 -0700
committerCosimo Cecchi <cosimoc@gnome.org>2014-08-28 16:02:09 -0700
commit9563e589bdc86b0c65aca77fb50da59b9e3cb03b (patch)
treec9e133f15793316e750c7e8dfc1e0def338f4d09 /src/nautilus-floating-bar.c
parent9791d42e4fc90a5ad6bcc54295bb27326045911e (diff)
downloadnautilus-9563e589bdc86b0c65aca77fb50da59b9e3cb03b.tar.gz
floating-bar: don't manually draw a background
GtkBox does this for us nowadays.
Diffstat (limited to 'src/nautilus-floating-bar.c')
-rw-r--r--src/nautilus-floating-bar.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/nautilus-floating-bar.c b/src/nautilus-floating-bar.c
index 350717e30..d32b63cd9 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;