ui: Set toolbar style from glade
authorJens Georg <jensg@openismus.com>
Fri, 10 May 2013 21:20:23 +0000 (23:20 +0200)
committerJens Georg <jensg@openismus.com>
Fri, 14 Jun 2013 17:37:58 +0000 (19:37 +0200)
data/rygel-preferences.ui
src/ui/rygel-preferences-dialog.vala

index 584c96c..b53ecb3 100644 (file)
@@ -82,6 +82,9 @@
                     <property name="can_focus">False</property>
                     <property name="toolbar_style">icons</property>
                     <property name="icon_size">1</property>
+                    <style>
+                      <class name="inline-toolbar"/>
+                    </style>
                     <child>
                       <object class="GtkToolButton" id="add-button">
                         <property name="visible">True</property>
index 184e456..18cbfd9 100644 (file)
@@ -42,10 +42,6 @@ public class Rygel.PreferencesDialog : GLib.Object {
         this.builder = new Builder ();
 
         this.builder.add_from_file (UI_FILE);
-        var toolbar = builder.get_object ("toolbar1") as Widget;
-        var style_context = toolbar.get_style_context ();
-        style_context.set_junction_sides (JunctionSides.TOP);
-        style_context.add_class (STYLE_CLASS_INLINE_TOOLBAR);
 
         this.dialog = (Dialog) this.builder.get_object (DIALOG);
         assert (this.dialog != null);