aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/modules/e-task-shell-module.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2009-01-11 22:20:50 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2009-01-11 22:20:50 +0800
commite0610b2e0cea191f631dc825cdc8023cdcd9433d (patch)
tree239b20ce4632d6538b9c664ddec883b6e19c11b5 /calendar/modules/e-task-shell-module.c
parent59d1f3405c653eb45ca462508d5e6ed968513e42 (diff)
downloadgsoc2013-evolution-e0610b2e0cea191f631dc825cdc8023cdcd9433d.tar.gz
gsoc2013-evolution-e0610b2e0cea191f631dc825cdc8023cdcd9433d.tar.zst
gsoc2013-evolution-e0610b2e0cea191f631dc825cdc8023cdcd9433d.zip
Continue chipping away at EMFolderView and EMFolderBrowser.
Migrate from gnome_url_show() to e_show_uri(). svn path=/branches/kill-bonobo/; revision=37038
Diffstat (limited to 'calendar/modules/e-task-shell-module.c')
-rw-r--r--calendar/modules/e-task-shell-module.c110
1 files changed, 55 insertions, 55 deletions
diff --git a/calendar/modules/e-task-shell-module.c b/calendar/modules/e-task-shell-module.c
index dbcb58104b..80cfc0a61a 100644
--- a/calendar/modules/e-task-shell-module.c
+++ b/calendar/modules/e-task-shell-module.c
@@ -337,38 +337,38 @@ task_module_handle_uri (EShellModule *shell_module,
goto exit;
while (*cp != '\0') {
- gchar *header;
- gchar *content;
- gsize header_len;
- gsize content_len;
-
- header_len = strcspn (cp, "=&");
-
- /* If it's malformed, give up. */
- if (cp[header_len] != '=')
- break;
-
- header = (gchar *) cp;
- header[header_len] = '\0';
- cp += header_len + 1;
-
- content_len = strcspn (cp, "&");
-
- content = g_strndup (cp, content_len);
- if (g_ascii_strcasecmp (header, "source-uid") == 0)
- source_uid = g_strdup (content);
- else if (g_ascii_strcasecmp (header, "comp-uid") == 0)
- comp_uid = g_strdup (content);
- else if (g_ascii_strcasecmp (header, "comp-rid") == 0)
- comp_rid = g_strdup (content);
- g_free (content);
-
- cp += content_len;
- if (*cp == '&') {
- cp++;
- if (strcmp (cp, "amp;") == 0)
- cp += 4;
- }
+ gchar *header;
+ gchar *content;
+ gsize header_len;
+ gsize content_len;
+
+ header_len = strcspn (cp, "=&");
+
+ /* If it's malformed, give up. */
+ if (cp[header_len] != '=')
+ break;
+
+ header = (gchar *) cp;
+ header[header_len] = '\0';
+ cp += header_len + 1;
+
+ content_len = strcspn (cp, "&");
+
+ content = g_strndup (cp, content_len);
+ if (g_ascii_strcasecmp (header, "source-uid") == 0)
+ source_uid = g_strdup (content);
+ else if (g_ascii_strcasecmp (header, "comp-uid") == 0)
+ comp_uid = g_strdup (content);
+ else if (g_ascii_strcasecmp (header, "comp-rid") == 0)
+ comp_rid = g_strdup (content);
+ g_free (content);
+
+ cp += content_len;
+ if (*cp == '&') {
+ cp++;
+ if (strcmp (cp, "amp;") == 0)
+ cp += 4;
+ }
}
if (source_uid != NULL || comp_uid != NULL)
@@ -452,25 +452,25 @@ static void
task_module_window_created (EShellModule *shell_module,
EShellWindow *shell_window)
{
- const gchar *module_name;
+ const gchar *module_name;
- module_name = G_TYPE_MODULE (shell_module)->name;
+ module_name = G_TYPE_MODULE (shell_module)->name;
- e_shell_window_register_new_item_actions (
- shell_window, module_name,
- item_entries, G_N_ELEMENTS (item_entries));
+ e_shell_window_register_new_item_actions (
+ shell_window, module_name,
+ item_entries, G_N_ELEMENTS (item_entries));
- e_shell_window_register_new_source_actions (
- shell_window, module_name,
- source_entries, G_N_ELEMENTS (source_entries));
+ e_shell_window_register_new_source_actions (
+ shell_window, module_name,
+ source_entries, G_N_ELEMENTS (source_entries));
}
static EShellModuleInfo module_info = {
- MODULE_NAME,
- MODULE_ALIASES,
- MODULE_SCHEMES,
- MODULE_SORT_ORDER,
+ MODULE_NAME,
+ MODULE_ALIASES,
+ MODULE_SCHEMES,
+ MODULE_SORT_ORDER,
/* is_busy */ NULL,
/* shutdown */ NULL,
@@ -480,23 +480,23 @@ static EShellModuleInfo module_info = {
void
e_shell_module_init (GTypeModule *type_module)
{
- EShell *shell;
- EShellModule *shell_module;
+ EShell *shell;
+ EShellModule *shell_module;
- shell_module = E_SHELL_MODULE (type_module);
- shell = e_shell_module_get_shell (shell_module);
+ shell_module = E_SHELL_MODULE (type_module);
+ shell = e_shell_module_get_shell (shell_module);
- e_shell_module_set_info (
+ e_shell_module_set_info (
shell_module, &module_info,
e_task_shell_view_get_type (type_module));
task_module_ensure_sources (shell_module);
- g_signal_connect_swapped (
- shell, "handle-uri",
- G_CALLBACK (task_module_handle_uri), shell_module);
+ g_signal_connect_swapped (
+ shell, "handle-uri",
+ G_CALLBACK (task_module_handle_uri), shell_module);
- g_signal_connect_swapped (
- shell, "window-created",
- G_CALLBACK (task_module_window_created), shell_module);
+ g_signal_connect_swapped (
+ shell, "window-created",
+ G_CALLBACK (task_module_window_created), shell_module);
}