[Xfce4-commits] <design:master> Do not show configure button in compact mode.

Jannis Pohlmann noreply at xfce.org
Tue May 31 20:08:01 CEST 2011


Updating branch refs/heads/master
         to 40bda5ac7af96684177512a87436796b205f713e (commit)
       from 96a13b5fb3255756b675b10467f214dfb75465ad (commit)

commit 40bda5ac7af96684177512a87436796b205f713e
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Tue May 31 20:06:45 2011 +0200

    Do not show configure button in compact mode.

 .../merge-with-xfrun/demo-code/vala/mockup.vala    |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/xfce4-appfinder/merge-with-xfrun/demo-code/vala/mockup.vala b/xfce4-appfinder/merge-with-xfrun/demo-code/vala/mockup.vala
index c4bf5d6..a0913dc 100644
--- a/xfce4-appfinder/merge-with-xfrun/demo-code/vala/mockup.vala
+++ b/xfce4-appfinder/merge-with-xfrun/demo-code/vala/mockup.vala
@@ -171,10 +171,14 @@ public class AppfinderView : HBox {
 
     var configure = new Button.with_mnemonic ("Configur_e");
     configure.set_image (new Image.from_stock (Stock.PREFERENCES, IconSize.BUTTON));
+    configure.set_no_show_all (true);
+    configure.set_visible (expanded ? true : false);
     buttons.pack_start (configure, false, false, 0);
     buttons.set_child_secondary (configure, true);
 
     var close = new Button.from_stock (Stock.CLOSE);
+    configure.set_no_show_all (true);
+    configure.set_visible (expanded ? true : false);
     buttons.pack_start (close, false, true, 0);
 
     close.clicked.connect (Gtk.main_quit);
@@ -188,6 +192,7 @@ public class AppfinderView : HBox {
     notify["expanded"].connect (() => {
       details_view.set_visible (expanded);
       table.set_row_spacings (expanded ? 6 : 3);
+      configure.set_visible (expanded ? true : false);
       entry.set_icon_from_stock (EntryIconPosition.SECONDARY,
                                  expanded ? Stock.GO_UP : Stock.GO_DOWN);
       table.check_resize ();



More information about the Xfce4-commits mailing list