[totem] grilo: Disable Ctrl+A when not in select mode
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] grilo: Disable Ctrl+A when not in select mode
- Date: Fri, 17 Jan 2014 09:11:36 +0000 (UTC)
commit 5dd7b08c9cbdcb43cf1cf11b0c54f30d3c429f02
Author: Bastien Nocera <hadess hadess net>
Date: Thu Jan 16 13:30:10 2014 +0100
grilo: Disable Ctrl+A when not in select mode
src/plugins/grilo/totem-grilo.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/grilo/totem-grilo.c b/src/plugins/grilo/totem-grilo.c
index 45ca42c..1fe5cba 100644
--- a/src/plugins/grilo/totem-grilo.c
+++ b/src/plugins/grilo/totem-grilo.c
@@ -1272,10 +1272,17 @@ setup_browse (TotemGriloPlugin *self,
G_CALLBACK (select_all_action_cb), self);
g_action_map_add_action (G_ACTION_MAP (self->priv->totem), G_ACTION (self->priv->select_all_action));
gtk_application_add_accelerator (GTK_APPLICATION (self->priv->totem), "<Primary>A", "app.select-all",
NULL);
+ g_object_bind_property (self->priv->header, "select-mode",
+ self->priv->select_all_action, "enabled",
+ G_BINDING_SYNC_CREATE);
+
self->priv->select_none_action = g_simple_action_new ("select-none", NULL);
g_signal_connect (G_OBJECT (self->priv->select_none_action), "activate",
G_CALLBACK (select_none_action_cb), self);
g_action_map_add_action (G_ACTION_MAP (self->priv->totem), G_ACTION (self->priv->select_none_action));
+ g_object_bind_property (self->priv->header, "select-mode",
+ self->priv->select_none_action, "enabled",
+ G_BINDING_SYNC_CREATE);
g_signal_connect (self->priv->header, "back-clicked",
G_CALLBACK (back_button_clicked_cb), self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]