diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-02-14 12:25:11 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2009-02-14 12:25:11 +0800 |
commit | 9c28e70fb0e7dc3eea887938651ef66cceb68e05 (patch) | |
tree | 425dad2507095fea467d0a1e61f12741d9c950ec /e-util | |
parent | 286124a8306b749c1b0d084d2eec8f0317b772fb (diff) | |
download | gsoc2013-evolution-9c28e70fb0e7dc3eea887938651ef66cceb68e05.tar gsoc2013-evolution-9c28e70fb0e7dc3eea887938651ef66cceb68e05.tar.gz gsoc2013-evolution-9c28e70fb0e7dc3eea887938651ef66cceb68e05.tar.bz2 gsoc2013-evolution-9c28e70fb0e7dc3eea887938651ef66cceb68e05.tar.lz gsoc2013-evolution-9c28e70fb0e7dc3eea887938651ef66cceb68e05.tar.xz gsoc2013-evolution-9c28e70fb0e7dc3eea887938651ef66cceb68e05.tar.zst gsoc2013-evolution-9c28e70fb0e7dc3eea887938651ef66cceb68e05.zip |
** Fixes part of bug #564229
2009-02-13 Matthew Barnes <mbarnes@redhat.com>
** Fixes part of bug #564229
* e-util/e-plugin-ui.c (plugin_ui_hook_class_init):
Initialize the EPluginUI registry during class initialization,
so that it's sure to be there when we need it.
* plugins/email-custom-header/email-custom-header.c:
(e_plugin_lib_get_configure_widget):
Do not use uninitialized variable.
svn path=/trunk/; revision=37265
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/ChangeLog | 8 | ||||
-rw-r--r-- | e-util/e-plugin-ui.c | 11 |
2 files changed, 13 insertions, 6 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog index 5fc6526a85..a817d0d033 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,11 @@ +2009-02-13 Matthew Barnes <mbarnes@redhat.com> + + ** Fixes part of bug #564229 + + * e-plugin-ui.c (plugin_ui_hook_class_init): + Initialize the EPluginUI registry during class initialization, + so that it's sure to be there when we need it. + 2009-01-15 Milan Crha <mcrha@redhat.com> * e-plugin.c: (epl_construct): Compiler warning fix. diff --git a/e-util/e-plugin-ui.c b/e-util/e-plugin-ui.c index 0b28adda5d..c192ece939 100644 --- a/e-util/e-plugin-ui.c +++ b/e-util/e-plugin-ui.c @@ -83,12 +83,6 @@ plugin_ui_registry_insert (EPluginUIHook *hook, { GHashTable *hash_table; - if (registry == NULL) - registry = g_hash_table_new_full ( - g_direct_hash, g_direct_equal, - (GDestroyNotify) NULL, - (GDestroyNotify) g_hash_table_destroy); - hash_table = g_hash_table_lookup (registry, hook); if (hash_table == NULL) { hash_table = g_hash_table_new (g_direct_hash, g_direct_equal); @@ -325,6 +319,11 @@ plugin_ui_hook_class_init (EPluginUIHookClass *class) plugin_hook_class->id = E_PLUGIN_UI_HOOK_CLASS_ID; plugin_hook_class->construct = plugin_ui_hook_construct; plugin_hook_class->enable = plugin_ui_hook_enable; + + registry = g_hash_table_new_full ( + g_direct_hash, g_direct_equal, + (GDestroyNotify) NULL, + (GDestroyNotify) g_hash_table_destroy); } static void |