diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2008-08-23 23:36:32 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2008-08-23 23:36:32 +0800 |
commit | fd6cd9e3a6dc06f9b8e44ec13ac881ebd6793e6e (patch) | |
tree | e97b9ea12c3007cee5933246893d18a63461ce3a /shell/e-shell-registry.c | |
parent | 036bb44de80f86a9fa5d92ce9e8848332f2a9cd2 (diff) | |
download | gsoc2013-evolution-fd6cd9e3a6dc06f9b8e44ec13ac881ebd6793e6e.tar gsoc2013-evolution-fd6cd9e3a6dc06f9b8e44ec13ac881ebd6793e6e.tar.gz gsoc2013-evolution-fd6cd9e3a6dc06f9b8e44ec13ac881ebd6793e6e.tar.bz2 gsoc2013-evolution-fd6cd9e3a6dc06f9b8e44ec13ac881ebd6793e6e.tar.lz gsoc2013-evolution-fd6cd9e3a6dc06f9b8e44ec13ac881ebd6793e6e.tar.xz gsoc2013-evolution-fd6cd9e3a6dc06f9b8e44ec13ac881ebd6793e6e.tar.zst gsoc2013-evolution-fd6cd9e3a6dc06f9b8e44ec13ac881ebd6793e6e.zip |
Progress update:
- Discard libnm-glib method of monitoring network connectivity.
- Decided to make EShell a singleton GObject after all. Makes the
design cleaner, despite having to pass a singleton instance around.
- Make the switcher button style persistent.
svn path=/branches/kill-bonobo/; revision=36043
Diffstat (limited to 'shell/e-shell-registry.c')
-rw-r--r-- | shell/e-shell-registry.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/shell/e-shell-registry.c b/shell/e-shell-registry.c index 14808ebb01..dfab78da83 100644 --- a/shell/e-shell-registry.c +++ b/shell/e-shell-registry.c @@ -44,13 +44,14 @@ shell_registry_insert_items (GHashTable *hash_table, } static void -shell_registry_query_module (const gchar *filename) +shell_registry_query_module (EShell *shell, + const gchar *filename) { EShellModule *shell_module; EShellModuleInfo *info; const gchar *string; - shell_module = e_shell_module_new (filename); + shell_module = e_shell_module_new (shell, filename); if (!g_type_module_use (G_TYPE_MODULE (shell_module))) { g_critical ("Failed to load module: %s", filename); @@ -81,13 +82,14 @@ shell_registry_query_module (const gchar *filename) } void -e_shell_registry_init (void) +e_shell_registry_init (EShell *shell) { GDir *dir; const gchar *dirname; const gchar *basename; GError *error = NULL; + g_return_if_fail (E_IS_SHELL (shell)); g_return_if_fail (loaded_modules == NULL); modules_by_name = g_hash_table_new (g_str_hash, g_str_equal); @@ -109,7 +111,7 @@ e_shell_registry_init (void) continue; filename = g_build_filename (dirname, basename, NULL); - shell_registry_query_module (filename); + shell_registry_query_module (shell, filename); g_free (filename); } |