diff options
author | Not Zed <NotZed@Ximian.com> | 2004-10-25 12:46:18 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-10-25 12:46:18 +0800 |
commit | 0ea79651b85c4acdb49ddd6b5c9bc0c021e977e3 (patch) | |
tree | 30a5b6551fd0ad8b732bd1b266bda20bc26ad408 /shell/main.c | |
parent | 47f9f8c3e78916409320a7fcdd0fe05ab83bd352 (diff) | |
download | gsoc2013-evolution-0ea79651b85c4acdb49ddd6b5c9bc0c021e977e3.tar gsoc2013-evolution-0ea79651b85c4acdb49ddd6b5c9bc0c021e977e3.tar.gz gsoc2013-evolution-0ea79651b85c4acdb49ddd6b5c9bc0c021e977e3.tar.bz2 gsoc2013-evolution-0ea79651b85c4acdb49ddd6b5c9bc0c021e977e3.tar.lz gsoc2013-evolution-0ea79651b85c4acdb49ddd6b5c9bc0c021e977e3.tar.xz gsoc2013-evolution-0ea79651b85c4acdb49ddd6b5c9bc0c021e977e3.tar.zst gsoc2013-evolution-0ea79651b85c4acdb49ddd6b5c9bc0c021e977e3.zip |
register event hook.
2004-10-25 Not Zed <NotZed@Ximian.com>
* main.c (main): register event hook.
* e-shell.c (offline_procedure_finished_cb, e_shell_go_online):
emit new state changed event.
* main.c (main): register the menu hook.
(): only define DEVELOPMENT if not already.
* e-shell-window.c (init): setup menu manager.
(e_shell_window_new): activate menu manager.
(update_offline_toggle_status): update the menu manager when the
offline state changes (currently only state which requires it)
* es-menu.[ch]: Shell plugin menu manager.
svn path=/trunk/; revision=27712
Diffstat (limited to 'shell/main.c')
-rw-r--r-- | shell/main.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/shell/main.c b/shell/main.c index c3f9cde841..94f25b89c8 100644 --- a/shell/main.c +++ b/shell/main.c @@ -33,6 +33,7 @@ #include "e-shell-constants.h" #include "e-shell.h" +#include "es-menu.h" #include <libxml/xmlmemory.h> #include <libxml/parser.h> @@ -86,8 +87,9 @@ #include "e-util/e-plugin-mono.h" #endif -#define DEVELOPMENT - +#ifndef DEVELOPMENT +#define DEVELOPMENT (1) +#endif static EShell *shell = NULL; @@ -591,6 +593,8 @@ main (int argc, char **argv) e_plugin_register_type(e_plugin_mono_get_type()); #endif e_plugin_register_type(e_plugin_lib_get_type()); + e_plugin_hook_register_type(es_menu_hook_get_type()); + e_plugin_hook_register_type(es_event_hook_get_type()); e_plugin_load_plugins(); } |