aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2007-07-03 12:45:33 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2007-07-03 12:45:33 +0800
commit25597a3be248ce035c6efaedfa02fc911e9962b6 (patch)
treeb403b30c9ac17d8eb0d888f361a8bf69888a4135 /shell/e-shell.c
parentfd4ae8279b8efacc3ad9d92ad556e57e5d56c5d5 (diff)
downloadgsoc2013-evolution-25597a3be248ce035c6efaedfa02fc911e9962b6.tar.gz
gsoc2013-evolution-25597a3be248ce035c6efaedfa02fc911e9962b6.tar.zst
gsoc2013-evolution-25597a3be248ce035c6efaedfa02fc911e9962b6.zip
** Added a hook event after the shell is started.
svn path=/trunk/; revision=33742
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r--shell/e-shell.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index c6b380a1ec..915e40d491 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -76,6 +76,7 @@ static void set_line_status_complete(EvolutionListener *el, void *data);
#define PARENT_TYPE bonobo_object_get_type ()
static BonoboObjectClass *parent_class = NULL;
+static gboolean session_started = FALSE;
struct _EShellPrivate {
/* IID for registering the object on OAF. */
@@ -946,6 +947,13 @@ e_shell_create_window (EShell *shell,
set_interactive (shell, TRUE);
+ if (!session_started) {
+ ESEvent *ese;
+
+ session_started = TRUE;
+ ese = es_event_peek();
+ e_event_emit((EEvent *)ese, "started.done", (EEventTarget *)es_event_target_new_shell(ese, shell));
+ }
return window;
}