[Xfce4-commits] <design:master> Use an alignment for the item instead of spacing with a frame.

Jannis Pohlmann noreply at xfce.org
Tue May 31 00:14:01 CEST 2011


Updating branch refs/heads/master
         to e78c056a3aece2003848e0312853dd77be3e8e9e (commit)
       from e1584313742d80f0cd41a5653d9153a66ac70fa1 (commit)

commit e78c056a3aece2003848e0312853dd77be3e8e9e
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Tue May 31 00:12:05 2011 +0200

    Use an alignment for the item instead of spacing with a frame.

 .../demo-code/custom-view/shortcuts-view.vala      |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/thunar/shortcuts-pane/demo-code/custom-view/shortcuts-view.vala b/thunar/shortcuts-pane/demo-code/custom-view/shortcuts-view.vala
index db247e1..275dc99 100644
--- a/thunar/shortcuts-pane/demo-code/custom-view/shortcuts-view.vala
+++ b/thunar/shortcuts-pane/demo-code/custom-view/shortcuts-view.vala
@@ -27,7 +27,7 @@ public class ShortcutsView : EventBox {
 
   public ShortcutsView () {
     box = new VBox (false, 6);
-    box.set_border_width (2);
+    box.set_border_width (4);
     add (box);
     box.show ();
 
@@ -37,16 +37,15 @@ public class ShortcutsView : EventBox {
     devices_expander.set_spacing (0);
     box.pack_start(devices_expander, false, true, 0);
 
+    var filesys_align = new Alignment (0.0f, 0.0f, 1.0f, 1.0f);
+    filesys_align.set_padding (0, 0, 14, 0);
+    devices_expander.add (filesys_align);
+    filesys_align.show ();
+
     var filesys_box = new HBox (false, 2);
-    devices_expander.add (filesys_box);
+    filesys_align.add (filesys_box);
     filesys_box.show ();
 
-    var filesys_spacing = new Frame (null);
-    filesys_spacing.set_shadow_type (ShadowType.NONE);
-    filesys_spacing.set_size_request (14, -1);
-    filesys_box.pack_start (filesys_spacing, false, true, 0);
-    filesys_spacing.show ();
-
     var filesys_icon = new Image.from_icon_name ("harddrive", IconSize.MENU);
     filesys_box.pack_start (filesys_icon, false, true, 0);
     filesys_icon.show ();



More information about the Xfce4-commits mailing list