[totem] main: Hide close button when in selection mode



commit c31e7592e3257426fcb9389f21f71b035d22f227
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Feb 4 18:03:46 2014 +0100

    main: Hide close button when in selection mode

 src/totem-grilo.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/totem-grilo.c b/src/totem-grilo.c
index 18039c6..631d8df 100644
--- a/src/totem-grilo.c
+++ b/src/totem-grilo.c
@@ -1967,6 +1967,9 @@ setup_browse (TotemGrilo *self)
        g_object_bind_property (self->priv->header, "select-mode",
                                self->priv->browser, "selection-mode",
                                G_BINDING_BIDIRECTIONAL);
+       g_object_bind_property (self->priv->header, "select-mode",
+                               self->priv->header, "show-close-button",
+                               G_BINDING_INVERT_BOOLEAN);
 
        g_signal_connect (self->priv->browser, "view-selection-changed",
                          G_CALLBACK (view_selection_changed_cb), self);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]