[nautilus] floating-bar: add "floating-bar" style class
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] floating-bar: add "floating-bar" style class
- Date: Sat, 11 Feb 2012 22:09:24 +0000 (UTC)
commit 47778be25cf65fbcd0151093fc7e2b3aa14b229c
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Feb 11 17:09:05 2012 -0500
floating-bar: add "floating-bar" style class
src/nautilus-floating-bar.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-floating-bar.c b/src/nautilus-floating-bar.c
index c99c2d1..e37a81a 100644
--- a/src/nautilus-floating-bar.c
+++ b/src/nautilus-floating-bar.c
@@ -248,8 +248,13 @@ nautilus_floating_bar_constructed (GObject *obj)
static void
nautilus_floating_bar_init (NautilusFloatingBar *self)
{
+ GtkStyleContext *context;
+
self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, NAUTILUS_TYPE_FLOATING_BAR,
NautilusFloatingBarDetails);
+
+ context = gtk_widget_get_style_context (GTK_WIDGET (self));
+ gtk_style_context_add_class (context, "floating-bar");
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]