aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/modules/e-memo-shell-module.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-04-26 07:37:21 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-04-26 07:37:21 +0800
commitd261d0b2e46d4793c2d54540782552846535eb60 (patch)
tree5e37dd30639f8ae27c298ccdbbe4cb18d79b0830 /calendar/modules/e-memo-shell-module.c
parentdc7efb1311d23c32a76a9a8092f734223ce3207e (diff)
downloadgsoc2013-evolution-d261d0b2e46d4793c2d54540782552846535eb60.tar
gsoc2013-evolution-d261d0b2e46d4793c2d54540782552846535eb60.tar.gz
gsoc2013-evolution-d261d0b2e46d4793c2d54540782552846535eb60.tar.bz2
gsoc2013-evolution-d261d0b2e46d4793c2d54540782552846535eb60.tar.lz
gsoc2013-evolution-d261d0b2e46d4793c2d54540782552846535eb60.tar.xz
gsoc2013-evolution-d261d0b2e46d4793c2d54540782552846535eb60.tar.zst
gsoc2013-evolution-d261d0b2e46d4793c2d54540782552846535eb60.zip
Begin migrating calendar settings to EShellSettings.
Begin dismantling calendar-config.c and migrating calendar settings to EShellSettings. EShellSettings utilizes GObject properties instead of separate get/set/notify functions for each setting.
Diffstat (limited to 'calendar/modules/e-memo-shell-module.c')
-rw-r--r--calendar/modules/e-memo-shell-module.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/calendar/modules/e-memo-shell-module.c b/calendar/modules/e-memo-shell-module.c
index 873bdb26d0..913d5b3a26 100644
--- a/calendar/modules/e-memo-shell-module.c
+++ b/calendar/modules/e-memo-shell-module.c
@@ -213,11 +213,15 @@ memo_module_cal_opened_cb (ECal *cal,
ECalendarStatus status,
GtkAction *action)
{
+ EShell *shell;
ECalComponent *comp;
CompEditor *editor;
CompEditorFlags flags = 0;
const gchar *action_name;
+ /* FIXME Pass this in. */
+ shell = e_shell_get_default ();
+
/* XXX Handle errors better. */
if (status != E_CALENDAR_STATUS_OK)
return;
@@ -230,7 +234,7 @@ memo_module_cal_opened_cb (ECal *cal,
flags |= COMP_EDITOR_USER_ORG;
}
- editor = memo_editor_new (cal, flags);
+ editor = memo_editor_new (cal, shell, flags);
comp = cal_comp_memo_new_with_defaults (cal);
comp_editor_edit_comp (editor, comp);
@@ -319,6 +323,7 @@ static gboolean
memo_module_handle_uri_cb (EShellModule *shell_module,
const gchar *uri)
{
+ EShell *shell;
CompEditor *editor;
CompEditorFlags flags = 0;
ECal *client;
@@ -336,6 +341,7 @@ memo_module_handle_uri_cb (EShellModule *shell_module,
GError *error = NULL;
source_type = E_CAL_SOURCE_TYPE_JOURNAL;
+ shell = e_shell_module_get_shell (shell_module);
if (strncmp (uri, "memo:", 5) != 0)
return FALSE;
@@ -431,7 +437,7 @@ memo_module_handle_uri_cb (EShellModule *shell_module,
if (itip_organizer_is_user (comp, client))
flags |= COMP_EDITOR_USER_ORG;
- editor = memo_editor_new (client, flags);
+ editor = memo_editor_new (client, shell, flags);
comp_editor_edit_comp (editor, comp);
g_object_unref (comp);