[gnome-calendar/calendar-management] source-manager: do not allow readonly calendars be selected as default
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/calendar-management] source-manager: do not allow readonly calendars be selected as default
- Date: Wed, 4 Feb 2015 02:10:04 +0000 (UTC)
commit 41be9e4fefc5196e87d08d0409a3726eaaf1886f
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Feb 4 00:09:46 2015 -0200
source-manager: do not allow readonly calendars be selected as default
src/gcal-source-manager-dialog.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-source-manager-dialog.c b/src/gcal-source-manager-dialog.c
index df5d97f..be60250 100644
--- a/src/gcal-source-manager-dialog.c
+++ b/src/gcal-source-manager-dialog.c
@@ -613,6 +613,7 @@ update_action_states (GcalSourceManagerDialog *dialog,
action = g_action_map_lookup_action (G_ACTION_MAP (priv->action_group), "default");
g_action_change_state (action, g_variant_new_boolean (is_default));
+ g_simple_action_set_enabled (G_SIMPLE_ACTION (action), !gcal_manager_is_client_writable (priv->manager,
source));
}
GtkWidget *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]