Updating branch refs/heads/master to f9926d35447b1a9db1e5724e7dbe713ecb98e2a4 (commit) from 4b76c52a753c1f7b765fb77bc6c1cc26d556f831 (commit)
commit f9926d35447b1a9db1e5724e7dbe713ecb98e2a4 Author: Jannis Pohlmann <jan...@xfce.org> Date: Tue May 31 12:54:58 2011 +0200 Add more items. .../demo-code/custom-view/shortcuts-view.vala | 40 ++++++++++++++++++++ 1 files changed, 40 insertions(+), 0 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 e5b70c1..a0f2c76 100644 --- a/thunar/shortcuts-pane/demo-code/custom-view/shortcuts-view.vala +++ b/thunar/shortcuts-pane/demo-code/custom-view/shortcuts-view.vala @@ -64,11 +64,51 @@ public class ShortcutsView : EventBox { places_expander.set_expanded (true); box.pack_start(places_expander, false, true, 0); + var places_box = new VBox (false, 0); + places_expander.add (places_box); + places_box.show (); + + var home = new ShortcutRow ("jannis", "user-home", false); + places_box.pack_start (home, false, true, 0); + home.show (); + + var desktop = new ShortcutRow ("Desktop", "user-desktop", false); + places_box.pack_start (desktop, false, true, 0); + desktop.show (); + + var trash = new ShortcutRow ("Trash", "user-trash", false); + places_box.pack_start (trash, false, true, 0); + trash.show (); + + var documents = new ShortcutRow ("Documents", "folder-documents", false); + places_box.pack_start (documents, false, true, 0); + documents.show (); + + var downloads = new ShortcutRow ("Downloads", "folder", false); + places_box.pack_start (downloads, false, true, 0); + downloads.show (); + + var thesis = new ShortcutRow ("Thesis", "folder", false); + places_box.pack_start (thesis, false, true, 0); + thesis.show (); + 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); + var network_box = new VBox (false, 0); + network_expander.add (network_box); + network_box.show (); + + var sftpxfce = new ShortcutRow ("s...@xfce.org", "folder-remote", true); + network_box.pack_start (sftpxfce, false, true, 0); + sftpxfce.show (); + + var ftpgezeiten = new ShortcutRow ("f...@gezeiten.org", "folder-remote", false); + network_box.pack_start (ftpgezeiten, false, true, 0); + ftpgezeiten.show (); + show_all (); } } _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits