aboutsummaryrefslogtreecommitdiffstats
path: root/shell/es-event.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/es-event.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/es-event.c')
-rw-r--r--shell/es-event.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/shell/es-event.c b/shell/es-event.c
index 72a05931bd..f48e0c6270 100644
--- a/shell/es-event.c
+++ b/shell/es-event.c
@@ -129,6 +129,16 @@ es_event_target_new_state(ESEvent *eme, int state)
return t;
}
+ESEventTargetShell *
+es_event_target_new_shell(ESEvent *eme, EShell *shell)
+{
+ ESEventTargetShell *t = e_event_target_new(&eme->event, ES_EVENT_TARGET_SHELL, sizeof(*t));
+
+ t->shell = shell;
+
+ return t;
+}
+
ESEventTargetUpgrade *
es_event_target_new_upgrade(ESEvent *eme, int major, int minor, int revision)
{
@@ -155,6 +165,7 @@ static const EEventHookTargetMask emeh_state_masks[] = {
static const EEventHookTargetMap emeh_targets[] = {
{ "state", ES_EVENT_TARGET_STATE, emeh_state_masks },
{ "upgrade", ES_EVENT_TARGET_UPGRADE, NULL },
+ { "shell", ES_EVENT_TARGET_SHELL, NULL },
{ 0 }
};