aboutsummaryrefslogtreecommitdiffstats
path: root/shell/es-event.h
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.h
parentd4ec8ecc409c339e0a2e7777965cfa1596e38655 (diff)
downloadgsoc2013-evolution-0732374acc936f29afb4bb9c2fb731bf5054f6a5.tar
gsoc2013-evolution-0732374acc936f29afb4bb9c2fb731bf5054f6a5.tar.gz
gsoc2013-evolution-0732374acc936f29afb4bb9c2fb731bf5054f6a5.tar.bz2
gsoc2013-evolution-0732374acc936f29afb4bb9c2fb731bf5054f6a5.tar.lz
gsoc2013-evolution-0732374acc936f29afb4bb9c2fb731bf5054f6a5.tar.xz
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.h')
-rw-r--r--shell/es-event.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/shell/es-event.h b/shell/es-event.h
index 518fd44e52..10b74ef163 100644
--- a/shell/es-event.h
+++ b/shell/es-event.h
@@ -41,7 +41,8 @@ typedef struct _ESEventClass ESEventClass;
enum _es_event_target_t {
ES_EVENT_TARGET_STATE,
ES_EVENT_TARGET_UPGRADE,
- ES_EVENT_TARGET_SHELL
+ ES_EVENT_TARGET_SHELL,
+ ES_EVENT_TARGET_COMPONENT
};
/* Flags that qualify TARGET_STATE */
@@ -53,6 +54,7 @@ enum {
typedef struct _ESEventTargetState ESEventTargetState;
typedef struct _ESEventTargetUpgrade ESEventTargetUpgrade;
typedef struct _ESEventTargetShell ESEventTargetShell;
+typedef struct _ESEventTargetComponent ESEventTargetComponent;
struct _ESEventTargetShell {
EEventTarget target;
@@ -74,6 +76,12 @@ struct _ESEventTargetUpgrade {
int revision;
};
+struct _ESEventTargetComponent {
+ EEventTarget target;
+
+ const char *id;
+};
+
typedef struct _EEventItem ESEventItem;
/* The object */
@@ -94,6 +102,7 @@ ESEvent *es_event_peek(void);
ESEventTargetState *es_event_target_new_state(ESEvent *emp, int state);
ESEventTargetShell *es_event_target_new_shell(ESEvent *eme, struct _EShell *shell);
ESEventTargetUpgrade *es_event_target_new_upgrade(ESEvent *emp, int major, int minor, int revision);
+ESEventTargetComponent *es_event_target_new_component(ESEvent *eme, const char *id);
/* ********************************************************************** */