aboutsummaryrefslogtreecommitdiffstats
path: root/shell/es-event.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/es-event.c')
-rw-r--r--shell/es-event.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/shell/es-event.c b/shell/es-event.c
index 5740d585c7..c647827586 100644
--- a/shell/es-event.c
+++ b/shell/es-event.c
@@ -91,11 +91,10 @@ es_event_get_type(void)
/**
* es_event_peek:
- * @void:
*
* Get the singular instance of the shell event handler.
*
- * Return value:
+ * Return: the shell event handler
**/
ESEvent *es_event_peek(void)
{
@@ -112,6 +111,14 @@ ESEvent *es_event_peek(void)
return es_event;
}
+ESEventTargetShell *
+es_event_target_new (ESEvent *eme)
+{
+ return e_event_target_new (
+ &eme->event, ES_EVENT_TARGET_SHELL,
+ sizeof (ESEventTargetShell));
+}
+
ESEventTargetState *
es_event_target_new_state(ESEvent *eme, gint state)
{
@@ -130,16 +137,6 @@ es_event_target_new_state(ESEvent *eme, gint 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, gint major, gint minor, gint revision)
{