aboutsummaryrefslogtreecommitdiff
path: root/libindicator
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-01-13 15:25:42 +0100
committerTed Gould <ted@gould.cx>2012-01-13 15:25:42 +0100
commita88097a93dcbd513d2d03d699c396e7b99ed4494 (patch)
treecfdc259b18a661769e061277ba6d92a98ea0ab68 /libindicator
parenta6ed65aead78749086a67f92f53252b82c1bfc3d (diff)
downloadlibayatana-indicator-a88097a93dcbd513d2d03d699c396e7b99ed4494.tar.gz
libayatana-indicator-a88097a93dcbd513d2d03d699c396e7b99ed4494.tar.bz2
libayatana-indicator-a88097a93dcbd513d2d03d699c396e7b99ed4494.zip
Handling the activate_window function and going up the stack
Diffstat (limited to 'libindicator')
-rw-r--r--libindicator/indicator-object.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libindicator/indicator-object.c b/libindicator/indicator-object.c
index e606077..1fad637 100644
--- a/libindicator/indicator-object.c
+++ b/libindicator/indicator-object.c
@@ -557,7 +557,14 @@ indicator_object_get_show_now (IndicatorObject * io, IndicatorObjectEntry * entr
void
indicator_object_entry_activate_window (IndicatorObject * io, IndicatorObjectEntry * entry, guint windowid, guint timestamp)
{
+ g_return_if_fail(INDICATOR_IS_OBJECT(io));
+ IndicatorObjectClass * class = INDICATOR_OBJECT_GET_CLASS(io);
+ if (class->entry_activate_window != NULL) {
+ return class->entry_activate_window(io, entry, windowid, timestamp);
+ } else {
+ indicator_object_entry_activate(io, entry, timestamp);
+ }
return;
}