diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-09-01 00:53:52 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-09-01 00:53:52 +0800 |
commit | f5991437c3e620708f1701310bd1e67b40ca3b42 (patch) | |
tree | b8fbe876e5c5eb0dd0e96d6505aabe898b09c6fb /modules/addressbook/autocompletion-config.c | |
parent | cd0112576878cb5de3930835ff09f1562e9f5c10 (diff) | |
download | gsoc2013-evolution-f5991437c3e620708f1701310bd1e67b40ca3b42.tar gsoc2013-evolution-f5991437c3e620708f1701310bd1e67b40ca3b42.tar.gz gsoc2013-evolution-f5991437c3e620708f1701310bd1e67b40ca3b42.tar.bz2 gsoc2013-evolution-f5991437c3e620708f1701310bd1e67b40ca3b42.tar.lz gsoc2013-evolution-f5991437c3e620708f1701310bd1e67b40ca3b42.tar.xz gsoc2013-evolution-f5991437c3e620708f1701310bd1e67b40ca3b42.tar.zst gsoc2013-evolution-f5991437c3e620708f1701310bd1e67b40ca3b42.zip |
Get EConfig and EEvent hooks working again.
There were a number of problems:
- Walk the GType tree to find EPluginHook subclasses, instead of
just registering the immediate children.
- Some EConfig and EEvent subclasses were not being configured
properly (particularly the mail and calendar subclasses).
- Add preference window pages after the main loop starts to make
sure all plugins and plugin hooks are installed first.
Diffstat (limited to 'modules/addressbook/autocompletion-config.c')
-rw-r--r-- | modules/addressbook/autocompletion-config.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/modules/addressbook/autocompletion-config.c b/modules/addressbook/autocompletion-config.c index ac6a7d1860..eb0c802196 100644 --- a/modules/addressbook/autocompletion-config.c +++ b/modules/addressbook/autocompletion-config.c @@ -32,7 +32,6 @@ #include "e-util/e-binding.h" #include "e-util/e-datetime-format.h" -#include "widgets/misc/e-preferences-window.h" static void source_selection_changed_cb (ESourceSelector *source_selector) @@ -129,19 +128,18 @@ add_section (GtkWidget *container, return widget; } -void -autocompletion_config_init (EShell *shell) +GtkWidget * +autocompletion_config_new (EShell *shell) { EShellSettings *shell_settings; ESourceList *source_list; GtkWidget *scrolled_window; GtkWidget *source_selector; - GtkWidget *preferences_window; GtkWidget *itembox; GtkWidget *widget; GtkWidget *vbox; - g_return_if_fail (E_IS_SHELL (shell)); + g_return_val_if_fail (E_IS_SHELL (shell), NULL); shell_settings = e_shell_get_shell_settings (shell); @@ -190,13 +188,5 @@ autocompletion_config_init (EShell *shell) initialize_selection (E_SOURCE_SELECTOR (source_selector)); - preferences_window = e_shell_get_preferences_window (shell); - - e_preferences_window_add_page ( - E_PREFERENCES_WINDOW (preferences_window), - "contacts", - "preferences-autocompletion", - _("Contacts"), - vbox, - 200); + return vbox; } |