Updating branch refs/heads/master to e1584313742d80f0cd41a5653d9153a66ac70fa1 (commit) from 3d3b59a7f404455b8e7a57939413bb6b0808e49a (commit)
commit e1584313742d80f0cd41a5653d9153a66ac70fa1 Author: Jannis Pohlmann <jan...@xfce.org> Date: Mon May 30 23:57:36 2011 +0200 Add a filesystem item to demonstrate the layout we want to achieve. .../demo-code/custom-view/shortcuts-view.vala | 40 ++++++++++++++++++-- 1 files changed, 36 insertions(+), 4 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 30e9254..db247e1 100644 --- a/thunar/shortcuts-pane/demo-code/custom-view/shortcuts-view.vala +++ b/thunar/shortcuts-pane/demo-code/custom-view/shortcuts-view.vala @@ -26,18 +26,50 @@ public class ShortcutsView : EventBox { private VBox box { get; set; } public ShortcutsView () { - box = new VBox (false, 2); + box = new VBox (false, 6); box.set_border_width (2); add (box); box.show (); - var devices_expander = new Expander ("DEVICES"); + var devices_expander = new Expander ("<span size='medium' weight='bold' color='#353535'>DEVICES</span>"); + devices_expander.set_use_markup (true); + devices_expander.set_expanded (true); + devices_expander.set_spacing (0); box.pack_start(devices_expander, false, true, 0); - var places_expander = new Expander ("PLACES"); + var filesys_box = new HBox (false, 2); + devices_expander.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 (); + + var filesys_label = new Label ("File System"); + filesys_label.set_alignment (0.0f, 0.5f); + filesys_box.add (filesys_label); + filesys_label.show (); + + var filesys_button = new Button (); + filesys_button.set_relief (ReliefStyle.NONE); + filesys_button.set_image (new Image.from_icon_name ("media-eject", IconSize.MENU)); + filesys_box.pack_start (filesys_button, false, true, 0); + filesys_button.show (); + + var places_expander = new Expander ("<span size='medium' weight='bold' color='#353535'>PLACES</span>"); + places_expander.set_use_markup (true); + places_expander.set_expanded (true); box.pack_start(places_expander, false, true, 0); - var network_expander = new Expander ("NETWORK"); + var network_expander = new Expander ("<span size='medium' weight='bold' color='#353535'>NETWORK</span>"); + network_expander.set_use_markup (true); + network_expander.set_expanded (true); box.pack_start(network_expander, false, true, 0); show_all (); _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits