diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/e-mail-shell-backend.c | 4 | ||||
-rw-r--r-- | mail/e-mail-shell-sidebar.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/mail/e-mail-shell-backend.c b/mail/e-mail-shell-backend.c index 56f7422f5c..0d0521ebc0 100644 --- a/mail/e-mail-shell-backend.c +++ b/mail/e-mail-shell-backend.c @@ -829,7 +829,7 @@ mail_shell_backend_window_created_cb (EShell *shell, if (!E_IS_SHELL_WINDOW (window)) return; - backend_name = G_TYPE_MODULE (shell_backend)->name; + backend_name = E_SHELL_BACKEND_GET_CLASS (shell_backend)->name; e_shell_window_register_new_item_actions ( E_SHELL_WINDOW (window), backend_name, @@ -1012,11 +1012,11 @@ mail_shell_backend_class_init (EMailShellBackendClass *class) object_class->constructed = mail_shell_backend_constructed; shell_backend_class = E_SHELL_BACKEND_CLASS (class); + shell_backend_class->shell_view_type = E_TYPE_MAIL_SHELL_VIEW; shell_backend_class->name = BACKEND_NAME; shell_backend_class->aliases = ""; shell_backend_class->schemes = "mailto:email"; shell_backend_class->sort_order = 200; - shell_backend_class->view_type = E_TYPE_MAIL_SHELL_VIEW; shell_backend_class->start = mail_shell_backend_start; shell_backend_class->is_busy = NULL; shell_backend_class->shutdown = NULL; diff --git a/mail/e-mail-shell-sidebar.c b/mail/e-mail-shell-sidebar.c index d8d591e671..0429cdabf9 100644 --- a/mail/e-mail-shell-sidebar.c +++ b/mail/e-mail-shell-sidebar.c @@ -145,7 +145,7 @@ mail_shell_sidebar_constructed (GObject *object) shell_sidebar = E_SHELL_SIDEBAR (object); shell_view = e_shell_sidebar_get_shell_view (shell_sidebar); shell_backend = e_shell_view_get_shell_backend (shell_view); - mail_shell_backend = E_MAIL_SHELL_BACKEND (mail_shell_backend); + mail_shell_backend = E_MAIL_SHELL_BACKEND (shell_backend); /* Build sidebar widgets. */ |