aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/calendar/e-cal-shell-content.c2
-rw-r--r--shell/e-shell-window.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/modules/calendar/e-cal-shell-content.c b/modules/calendar/e-cal-shell-content.c
index bffa39a35e..da1a7ced41 100644
--- a/modules/calendar/e-cal-shell-content.c
+++ b/modules/calendar/e-cal-shell-content.c
@@ -204,7 +204,7 @@ cal_shell_content_dispose (GObject *object)
}
if (priv->calendar != NULL) {
- gnome_calendar_dispose (priv->calendar);
+ gnome_calendar_dispose (GNOME_CALENDAR (priv->calendar));
g_object_unref (priv->calendar);
priv->calendar = NULL;
}
diff --git a/shell/e-shell-window.c b/shell/e-shell-window.c
index 283445766c..5513efbe95 100644
--- a/shell/e-shell-window.c
+++ b/shell/e-shell-window.c
@@ -541,8 +541,7 @@ shell_window_create_shell_view (EShellWindow *shell_window,
/* Register the GtkUIManager ID for the shell view. */
id = E_SHELL_VIEW_GET_CLASS (shell_view)->ui_manager_id;
ui_manager = e_shell_window_get_ui_manager (shell_window);
- e_plugin_ui_register_manager (
- E_UI_MANAGER (ui_manager), id, shell_view);
+ e_plugin_ui_register_manager (ui_manager, id, shell_view);
/* Add pages to the various shell window notebooks. */