[nemiver] Apply the GNOME 3 style on the toolbar



commit e446bc8a0e1b2fe55911a51fa2b65df93e80074d
Author: Fabien Parent <parent f gmail com>
Date:   Sat Jul 30 10:53:30 2011 +0200

    Apply the GNOME 3 style on the toolbar
    
    	* src/persp/dbgperspective/nmv-dbg-perspective.cc
    	(DBGPerspective::init_toolbar): Apply the GNOME 3 style on the toolbar

 src/persp/dbgperspective/nmv-dbg-perspective.cc |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/persp/dbgperspective/nmv-dbg-perspective.cc b/src/persp/dbgperspective/nmv-dbg-perspective.cc
index c6f8e80..783a088 100644
--- a/src/persp/dbgperspective/nmv-dbg-perspective.cc
+++ b/src/persp/dbgperspective/nmv-dbg-perspective.cc
@@ -3944,6 +3944,11 @@ DBGPerspective::init_toolbar ()
     Gtk::Toolbar *glade_toolbar = dynamic_cast<Gtk::Toolbar*>
             (workbench ().get_ui_manager ()->get_widget ("/ToolBar"));
     THROW_IF_FAIL (glade_toolbar);
+    Glib::RefPtr<Gtk::StyleContext> style_context =
+            glade_toolbar->get_style_context ();
+    if (style_context) {
+        style_context->add_class (GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
+    }
     Gtk::SeparatorToolItem *sep = Gtk::manage (new Gtk::SeparatorToolItem);
     gtk_separator_tool_item_set_draw (sep->gobj (), false);
     sep->set_expand (true);



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