aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorJim Ramsay <i.am@jimramsay.com>2010-04-28 22:46:15 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-05-19 05:34:35 +0800
commitc6c287d275f761e88c37bb7dbcf4676bf1363602 (patch)
treeaf08053787ba9a2e3bb07ea3e15ae2ae48292674 /calendar/gui
parentaac6a371630b0b28f1b9476123f1c1a54b24c654 (diff)
downloadgsoc2013-evolution-c6c287d275f761e88c37bb7dbcf4676bf1363602.tar
gsoc2013-evolution-c6c287d275f761e88c37bb7dbcf4676bf1363602.tar.gz
gsoc2013-evolution-c6c287d275f761e88c37bb7dbcf4676bf1363602.tar.bz2
gsoc2013-evolution-c6c287d275f761e88c37bb7dbcf4676bf1363602.tar.lz
gsoc2013-evolution-c6c287d275f761e88c37bb7dbcf4676bf1363602.tar.xz
gsoc2013-evolution-c6c287d275f761e88c37bb7dbcf4676bf1363602.tar.zst
gsoc2013-evolution-c6c287d275f761e88c37bb7dbcf4676bf1363602.zip
Bug 594153 (3/3) - Allow setting alarms on any meeting
By tying the attachment view "editable" action group to comp-editor "individual" group, these add/remove actions are marked sensitive / insensitive in sync with the existing "Insert" menu items which are already in the "individual" group. Though not introduced with the other symptoms of this bug (0597b877c5bf4d21ac4048742ddf6b11e24877ba), the descreptency fixed here is integrally related.
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/dialogs/comp-editor.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c
index 6718d8f690..0b1701de6f 100644
--- a/calendar/gui/dialogs/comp-editor.c
+++ b/calendar/gui/dialogs/comp-editor.c
@@ -36,6 +36,7 @@
#include <glib/gstdio.h>
#include <gdk/gdkkeysyms.h>
#include <e-util/e-util.h>
+#include <e-util/e-binding.h>
#include <e-util/e-dialog-utils.h>
#include <e-util/e-util-private.h>
#include <e-util/gconf-bridge.h>
@@ -1587,6 +1588,7 @@ comp_editor_init (CompEditor *editor)
GtkTargetList *target_list;
GtkTargetEntry *targets;
GtkActionGroup *action_group;
+ GtkActionGroup *action_group_2;
GtkAction *action;
GtkWidget *container;
GtkWidget *widget;
@@ -1808,6 +1810,13 @@ comp_editor_init (CompEditor *editor)
gtk_window_set_type_hint (
GTK_WINDOW (editor), GDK_WINDOW_TYPE_HINT_NORMAL);
+ action_group = comp_editor_get_action_group (editor, "individual");
+ action_group_2 = e_attachment_view_get_action_group (view, "editable");
+
+ e_binding_new (
+ action_group, "sensitive",
+ action_group_2, "sensitive");
+
/* Listen for attachment store changes. */
store = e_attachment_view_get_store (view);