[rygel] ui: Set toolbar style from glade



commit 1d4eb29cb0cbf76af4258232d92d2e2332657ca4
Author: Jens Georg <jensg openismus com>
Date:   Fri May 10 23:20:23 2013 +0200

    ui: Set toolbar style from glade

 data/rygel-preferences.ui            |    3 +++
 src/ui/rygel-preferences-dialog.vala |    4 ----
 2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/data/rygel-preferences.ui b/data/rygel-preferences.ui
index 584c96c..b53ecb3 100644
--- a/data/rygel-preferences.ui
+++ b/data/rygel-preferences.ui
@@ -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>
diff --git a/src/ui/rygel-preferences-dialog.vala b/src/ui/rygel-preferences-dialog.vala
index 184e456..18cbfd9 100644
--- a/src/ui/rygel-preferences-dialog.vala
+++ b/src/ui/rygel-preferences-dialog.vala
@@ -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);


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