[Xfce4-commits] <design:master> Tweak alignment and padding.
Jannis Pohlmann
noreply at xfce.org
Tue May 31 01:10:02 CEST 2011
Updating branch refs/heads/master
to 0f779dca328f61b7301956e744a5edfbf681eb31 (commit)
from fc40bdd7d8d5876946024ab44d526f430b64cfc3 (commit)
commit 0f779dca328f61b7301956e744a5edfbf681eb31
Author: Jannis Pohlmann <jannis at xfce.org>
Date: Tue May 31 01:08:55 2011 +0200
Tweak alignment and padding.
.../demo-code/custom-view/shortcut-row.vala | 2 +-
.../demo-code/custom-view/shortcuts-view.vala | 10 ++++++++--
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/thunar/shortcuts-pane/demo-code/custom-view/shortcut-row.vala b/thunar/shortcuts-pane/demo-code/custom-view/shortcut-row.vala
index 0592155..e8f8ef9 100644
--- a/thunar/shortcuts-pane/demo-code/custom-view/shortcut-row.vala
+++ b/thunar/shortcuts-pane/demo-code/custom-view/shortcut-row.vala
@@ -36,7 +36,7 @@ public class ShortcutRow : EventBox {
set_sensitive (true);
var align = new Alignment (0.0f, 0.0f, 1.0f, 1.0f);
- align.set_padding (0, 0, 14, 0);
+ align.set_padding (0, 0, 14, 4);
add (align);
align.show ();
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 547fe82..e5b70c1 100644
--- a/thunar/shortcuts-pane/demo-code/custom-view/shortcuts-view.vala
+++ b/thunar/shortcuts-pane/demo-code/custom-view/shortcuts-view.vala
@@ -23,15 +23,21 @@ using Gtk;
public class ShortcutsView : EventBox {
+ private Alignment alignment { get; set; }
private VBox box { get; set; }
public ShortcutsView () {
+ alignment = new Alignment (0.0f, 0.0f, 1.0f, 1.0f);
+ alignment.set_padding (4, 4, 0, 0);
+ add (alignment);
+
box = new VBox (false, 6);
- box.set_border_width (4);
- add (box);
+ box.set_border_width (0);
+ alignment.add (box);
box.show ();
var devices_expander = new Expander ("<span size='medium' weight='bold' color='#353535'>DEVICES</span>");
+ devices_expander.set_border_width (0);
devices_expander.set_use_markup (true);
devices_expander.set_expanded (true);
devices_expander.set_spacing (0);
More information about the Xfce4-commits
mailing list