Try to preselect source type when creating new source
commit9d6b57ed60ec59ade4f468acf162f2668f301395
authorMilan Crha <mcrha@redhat.com>
Fri, 8 Jun 2018 12:06:28 +0000 (8 14:06 +0200)
committerMilan Crha <mcrha@redhat.com>
Fri, 8 Jun 2018 12:06:28 +0000 (8 14:06 +0200)
tree43e9c7e2daaa7a00fb5c7eead698b5f4c59a3c18
parentd664c1707941efa2c69305e877c5c5b39a8e3028
Try to preselect source type when creating new source

When creating new Address Book, Calendar, Memo List or Task List,
try to preselect the source type based on the currently selected
source in the active view, accounting also the clicked source
in the source selector.

This way, when creating a new calendar in the Calendar view the type
will match the one selected in the source selector, or when called
from the context menu of the source selector and it had been clicked
on the group name, then there will be preselected that group type,
if possible.
12 files changed:
src/e-util/e-source-config.c
src/e-util/e-source-config.h
src/modules/addressbook/e-book-shell-backend.c
src/modules/addressbook/e-book-shell-view-actions.c
src/modules/addressbook/e-book-shell-view.c
src/modules/addressbook/e-book-shell-view.h
src/modules/calendar/e-cal-base-shell-backend.c
src/modules/calendar/e-cal-base-shell-view.c
src/modules/calendar/e-cal-base-shell-view.h
src/modules/calendar/e-cal-shell-view-actions.c
src/modules/calendar/e-memo-shell-view-actions.c
src/modules/calendar/e-task-shell-view-actions.c