aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-window.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/e-shell-window.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/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);
}