diff options
author | Milan Crha <mcrha@redhat.com> | 2009-07-27 23:43:02 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-08-11 07:12:42 +0800 |
commit | 741d49c900ecc01002513060826b43dc26d4e55d (patch) | |
tree | 049009930e6e006534e6471153aa45a3198d4acb /calendar/gui/calendar-commands.c | |
parent | 5e5e1de764de6b705c12275dc652b1a36ba98fdd (diff) | |
download | gsoc2013-evolution-741d49c900ecc01002513060826b43dc26d4e55d.tar.gz gsoc2013-evolution-741d49c900ecc01002513060826b43dc26d4e55d.tar.zst gsoc2013-evolution-741d49c900ecc01002513060826b43dc26d4e55d.zip |
Bug #203853 - Cut/Copy key bindings don't work in day and week views
Diffstat (limited to 'calendar/gui/calendar-commands.c')
-rw-r--r-- | calendar/gui/calendar-commands.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c index e849bf2e0b..32bf54ea85 100644 --- a/calendar/gui/calendar-commands.c +++ b/calendar/gui/calendar-commands.c @@ -209,7 +209,7 @@ sensitize_items(BonoboUIComponent *uic, struct _sensitize_item *items, guint32 m } static struct _sensitize_item taskpad_sensitize_table[] = { - { "Cut", E_CAL_MENU_SELECT_EDITABLE }, + { "Cut", E_CAL_MENU_SELECT_EDITABLE | E_CAL_MENU_SELECT_ANY }, { "Copy", E_CAL_MENU_SELECT_ANY }, { "Paste", E_CAL_MENU_SELECT_EDITABLE }, { "Delete", E_CAL_MENU_SELECT_EDITABLE }, @@ -245,7 +245,7 @@ sensitize_taskpad_commands (GnomeCalendar *gcal, BonoboControl *control, gboolea t = e_cal_menu_target_new_select(menu, model, events); if (!enable) - t->target.mask = ~0; + t->target.mask = ~((~t->target.mask) & E_CAL_MENU_SELECT_EDITABLE); sensitize_items(uic, taskpad_sensitize_table, t->target.mask); } |