aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-08 21:45:58 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-08 21:45:58 +0800
commit2a54f0a220d86b271901697ce938b30c2f3ca41a (patch)
tree0c94af24604353cbbca4f3904db9b09b2711de5f /shell
parent03fe4bdcbc8a2e644339bbfcd12843da1f766375 (diff)
downloadgsoc2013-evolution-2a54f0a220d86b271901697ce938b30c2f3ca41a.tar
gsoc2013-evolution-2a54f0a220d86b271901697ce938b30c2f3ca41a.tar.gz
gsoc2013-evolution-2a54f0a220d86b271901697ce938b30c2f3ca41a.tar.bz2
gsoc2013-evolution-2a54f0a220d86b271901697ce938b30c2f3ca41a.tar.lz
gsoc2013-evolution-2a54f0a220d86b271901697ce938b30c2f3ca41a.tar.xz
gsoc2013-evolution-2a54f0a220d86b271901697ce938b30c2f3ca41a.tar.zst
gsoc2013-evolution-2a54f0a220d86b271901697ce938b30c2f3ca41a.zip
Adapt calendar to EShellBackend changes.
Diffstat (limited to 'shell')
-rw-r--r--shell/test/e-test-shell-module.c46
-rw-r--r--shell/test/e-test-shell-view.c6
2 files changed, 26 insertions, 26 deletions
diff --git a/shell/test/e-test-shell-module.c b/shell/test/e-test-shell-module.c
index 0098866400..d579f46499 100644
--- a/shell/test/e-test-shell-module.c
+++ b/shell/test/e-test-shell-module.c
@@ -1,5 +1,5 @@
/*
- * e-test-shell-module.c
+ * e-test-shell-backend.c
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -22,7 +22,7 @@
#include <glib/gi18n.h>
#include <e-shell.h>
-#include <e-shell-module.h>
+#include <e-shell-backend.h>
#include <e-shell-window.h>
#include "e-test-shell-view.h"
@@ -33,7 +33,7 @@
#define MODULE_SORT_ORDER 100
/* Module Entry Point */
-void e_shell_module_init (GTypeModule *type_module);
+void e_shell_backend_init (GTypeModule *type_module);
static void
action_test_item_new_cb (GtkAction *action,
@@ -70,13 +70,13 @@ static GtkActionEntry source_entries[] = {
};
static void
-test_module_start (EShellModule *shell_module)
+test_module_start (EShellBackend *shell_backend)
{
g_debug ("%s", G_STRFUNC);
}
static gboolean
-test_module_is_busy (EShellModule *shell_module)
+test_module_is_busy (EShellBackend *shell_backend)
{
g_debug ("%s", G_STRFUNC);
@@ -84,7 +84,7 @@ test_module_is_busy (EShellModule *shell_module)
}
static gboolean
-test_module_shutdown (EShellModule *shell_module)
+test_module_shutdown (EShellBackend *shell_backend)
{
g_debug ("%s", G_STRFUNC);
@@ -92,7 +92,7 @@ test_module_shutdown (EShellModule *shell_module)
}
static gboolean
-test_module_migrate (EShellModule *shell_module,
+test_module_migrate (EShellBackend *shell_backend,
gint major,
gint minor,
gint micro,
@@ -104,7 +104,7 @@ test_module_migrate (EShellModule *shell_module,
}
static gboolean
-test_module_handle_uri_cb (EShellModule *shell_module,
+test_module_handle_uri_cb (EShellBackend *shell_backend,
const gchar *uri)
{
g_debug ("%s (uri=%s)", G_STRFUNC, uri);
@@ -113,14 +113,14 @@ test_module_handle_uri_cb (EShellModule *shell_module,
}
static void
-test_module_send_receive_cb (EShellModule *shell_module,
+test_module_send_receive_cb (EShellBackend *shell_backend,
GtkWindow *parent_window)
{
g_debug ("%s (window=%p)", G_STRFUNC, parent_window);
}
static void
-test_module_window_created_cb (EShellModule *shell_module,
+test_module_window_created_cb (EShellBackend *shell_backend,
GtkWindow *window)
{
const gchar *module_name;
@@ -130,7 +130,7 @@ test_module_window_created_cb (EShellModule *shell_module,
if (!E_IS_SHELL_WINDOW (window))
return;
- module_name = G_TYPE_MODULE (shell_module)->name;
+ module_name = G_TYPE_MODULE (shell_backend)->name;
e_shell_window_register_new_item_actions (
E_SHELL_WINDOW (window), module_name,
@@ -142,12 +142,12 @@ test_module_window_created_cb (EShellModule *shell_module,
}
static void
-test_module_window_destroyed_cb (EShellModule *shell_module)
+test_module_window_destroyed_cb (EShellBackend *shell_backend)
{
g_debug ("%s", G_STRFUNC);
}
-static EShellModuleInfo module_info = {
+static EShellBackendInfo module_info = {
MODULE_NAME,
MODULE_ALIASES,
@@ -162,31 +162,31 @@ static EShellModuleInfo module_info = {
};
void
-e_shell_module_init (GTypeModule *type_module)
+e_shell_backend_init (GTypeModule *type_module)
{
EShell *shell;
- EShellModule *shell_module;
+ EShellBackend *shell_backend;
- shell_module = E_SHELL_MODULE (type_module);
- shell = e_shell_module_get_shell (shell_module);
+ shell_backend = E_SHELL_BACKEND (type_module);
+ shell = e_shell_backend_get_shell (shell_backend);
- e_shell_module_set_info (
- shell_module, &module_info,
+ e_shell_backend_set_info (
+ shell_backend, &module_info,
e_test_shell_view_get_type (type_module));
g_signal_connect_swapped (
shell, "handle-uri",
- G_CALLBACK (test_module_handle_uri_cb), shell_module);
+ G_CALLBACK (test_module_handle_uri_cb), shell_backend);
g_signal_connect_swapped (
shell, "send-receive",
- G_CALLBACK (test_module_send_receive_cb), shell_module);
+ G_CALLBACK (test_module_send_receive_cb), shell_backend);
g_signal_connect_swapped (
shell, "window-created",
- G_CALLBACK (test_module_window_created_cb), shell_module);
+ G_CALLBACK (test_module_window_created_cb), shell_backend);
g_signal_connect_swapped (
shell, "window-destroyed",
- G_CALLBACK (test_module_window_destroyed_cb), shell_module);
+ G_CALLBACK (test_module_window_destroyed_cb), shell_backend);
}
diff --git a/shell/test/e-test-shell-view.c b/shell/test/e-test-shell-view.c
index 9bbffaf4cc..de9d8f38ec 100644
--- a/shell/test/e-test-shell-view.c
+++ b/shell/test/e-test-shell-view.c
@@ -71,7 +71,7 @@ test_shell_view_constructed (GObject *object)
ETestShellViewPrivate *priv;
EShellContent *shell_content;
EShellSidebar *shell_sidebar;
- EShellModule *shell_module;
+ EShellBackend *shell_backend;
EShellView *shell_view;
EActivity *activity;
GtkWidget *widget;
@@ -82,7 +82,7 @@ test_shell_view_constructed (GObject *object)
priv = E_TEST_SHELL_VIEW_GET_PRIVATE (object);
shell_view = E_SHELL_VIEW (object);
- shell_module = e_shell_view_get_shell_module (shell_view);
+ shell_backend = e_shell_view_get_shell_backend (shell_view);
shell_content = e_shell_view_get_shell_content (shell_view);
shell_sidebar = e_shell_view_get_shell_sidebar (shell_view);
@@ -96,7 +96,7 @@ test_shell_view_constructed (GObject *object)
activity = e_activity_new ("Test Activity");
e_activity_set_allow_cancel (activity, TRUE);
- e_shell_module_add_activity (shell_module, activity);
+ e_shell_backend_add_activity (shell_backend, activity);
priv->activity = activity;
}