aboutsummaryrefslogtreecommitdiffstats
path: root/shell/es-event.c
diff options
context:
space:
mode:
authorOndrej Jirman <megous@megous.com>2008-04-07 17:55:11 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-04-07 17:55:11 +0800
commit0732374acc936f29afb4bb9c2fb731bf5054f6a5 (patch)
tree7d149e5f77dce2e496d01a53adec3a30c655aa2e /shell/es-event.c
parentd4ec8ecc409c339e0a2e7777965cfa1596e38655 (diff)
downloadgsoc2013-evolution-0732374acc936f29afb4bb9c2fb731bf5054f6a5.tar.gz
gsoc2013-evolution-0732374acc936f29afb4bb9c2fb731bf5054f6a5.tar.zst
gsoc2013-evolution-0732374acc936f29afb4bb9c2fb731bf5054f6a5.zip
** Fix for bug #525238
2008-04-07 Ondrej Jirman <megous@megous.com> ** Fix for bug #525238 * e-shell-window.c: (switch_view): * es-event.c: * es-event.h: Add new "component.activated" event. Event is emitted whenever component is activated. ESEventTargetComponent contains an id of the component being activated. svn path=/trunk/; revision=35332
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 5d4c5366d8..78b601092e 100644
--- a/shell/es-event.c
+++ b/shell/es-event.c
@@ -152,6 +152,16 @@ es_event_target_new_upgrade(ESEvent *eme, int major, int minor, int revision)
return t;
}
+ESEventTargetComponent *
+es_event_target_new_component (ESEvent *eme, const char *id)
+{
+ ESEventTargetComponent *t = e_event_target_new (&eme->event, ES_EVENT_TARGET_COMPONENT, sizeof (*t));
+
+ t->id = id;
+
+ return t;
+}
+
/* ********************************************************************** */
static void *emeh_parent_class;
@@ -167,6 +177,7 @@ 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 },
+ { "component", ES_EVENT_TARGET_COMPONENT, NULL },
{ NULL }
};