ui: Fix minor issues with toolbar
authorJens Georg <mail@jensge.org>
Mon, 6 Feb 2012 19:03:55 +0000 (20:03 +0100)
committerJens Georg <mail@jensge.org>
Mon, 6 Feb 2012 19:10:08 +0000 (20:10 +0100)
data/rygel-preferences.ui
src/ui/rygel-preferences-dialog.vala

index 3a2aaac..244f3b9 100644 (file)
@@ -98,6 +98,8 @@
                   <object class="GtkToolbar" id="toolbar1">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
+                    <property name="toolbar_style">icons</property>
+                    <property name="icon_size">1</property>
                     <child>
                       <object class="GtkToolButton" id="add-button">
                         <property name="use_action_appearance">False</property>
                     </child>
                     <child>
                       <object class="GtkToolButton" id="remove-button">
-                        <property name="use_action_appearance">False</property>
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <property name="tooltip_text" translatable="yes">Remove a directory from the list of shared directories</property>
                         <property name="use_action_appearance">False</property>
                         <property name="label" translatable="yes">Remove shared directory</property>
-                        <property name="icon_name">list-add-symbolic</property>
+                        <property name="icon_name">list-remove-symbolic</property>
                       </object>
                       <packing>
                         <property name="expand">False</property>
index 85aa9fb..de01eae 100644 (file)
@@ -40,6 +40,10 @@ 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);