aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-cal-shell-view.c
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@novell.com>2010-05-19 22:21:29 +0800
committerMichael Meeks <michael.meeks@novell.com>2010-05-19 22:21:29 +0800
commit2566a8549d7fd878226aeb9269f2d5871a5eddc2 (patch)
tree330571c96508db657a913c9e4af6c66cd4707a7d /modules/calendar/e-cal-shell-view.c
parent115ae99796dd1988fe1ecc0e1fba90b4f982978d (diff)
downloadgsoc2013-evolution-2566a8549d7fd878226aeb9269f2d5871a5eddc2.tar
gsoc2013-evolution-2566a8549d7fd878226aeb9269f2d5871a5eddc2.tar.gz
gsoc2013-evolution-2566a8549d7fd878226aeb9269f2d5871a5eddc2.tar.bz2
gsoc2013-evolution-2566a8549d7fd878226aeb9269f2d5871a5eddc2.tar.lz
gsoc2013-evolution-2566a8549d7fd878226aeb9269f2d5871a5eddc2.tar.xz
gsoc2013-evolution-2566a8549d7fd878226aeb9269f2d5871a5eddc2.tar.zst
gsoc2013-evolution-2566a8549d7fd878226aeb9269f2d5871a5eddc2.zip
hide meeting creation if we have no accounts configured, for Evo
calendar in standalone mode
Diffstat (limited to 'modules/calendar/e-cal-shell-view.c')
-rw-r--r--modules/calendar/e-cal-shell-view.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/calendar/e-cal-shell-view.c b/modules/calendar/e-cal-shell-view.c
index cf356cbc6d..1f719e82c5 100644
--- a/modules/calendar/e-cal-shell-view.c
+++ b/modules/calendar/e-cal-shell-view.c
@@ -283,6 +283,7 @@ cal_shell_view_update_actions (EShellView *shell_view)
GtkAction *action;
GList *list, *iter;
gboolean sensitive;
+ gboolean visible;
guint32 state;
gint n_selected;
@@ -464,6 +465,10 @@ cal_shell_view_update_actions (EShellView *shell_view)
action = ACTION (EVENT_REPLY_ALL);
sensitive = (n_selected == 1) && is_meeting;
gtk_action_set_sensitive (action, sensitive);
+
+ action = ACTION (EVENT_MEETING_NEW);
+ visible = itip_addresses_get_default() != NULL;
+ gtk_action_set_visible (action, visible);
}
static void