aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-shell-window.c')
-rw-r--r--shell/e-shell-window.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/shell/e-shell-window.c b/shell/e-shell-window.c
index 788aaf2004..887ced0c87 100644
--- a/shell/e-shell-window.c
+++ b/shell/e-shell-window.c
@@ -36,6 +36,7 @@
#include "e-shell-marshal.h"
#include "e-sidebar.h"
#include "es-menu.h"
+#include "es-event.h"
#include <gtk/gtkbutton.h>
#include <gtk/gtkhbox.h>
@@ -356,6 +357,15 @@ switch_view (EShellWindow *window, ComponentView *component_view)
g_object_unref (gconf_client);
+ /** @Event: Shell component activated or switched to.
+ * @Id: component.activated
+ * @Target: ESEventTargetComponent
+ *
+ * This event is emitted whenever the shell successfully activates component
+ * view.
+ */
+ e_event_emit ((EEvent *) es_event_peek (), "component.activated", (EEventTarget *) es_event_target_new_component (es_event_peek (), component_view->component_id));
+
g_signal_emit (window, signals[COMPONENT_CHANGED], 0);
}