aboutsummaryrefslogtreecommitdiff
path: root/libindicator/indicator-object.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-09-19 13:26:01 -0500
committerTed Gould <ted@gould.cx>2010-09-19 13:26:01 -0500
commit982c91ca6c39b7a36a36bb78302e7c95fb50f374 (patch)
tree64739afa4790ed448e40d8cb4b30561514e015d6 /libindicator/indicator-object.c
parentbc8ba95828914624a74299957a58b36bbf769e5a (diff)
parent03641dce0d1c38ef5fb2447b33f88e9d66c6aecf (diff)
downloadlibayatana-indicator-982c91ca6c39b7a36a36bb78302e7c95fb50f374.tar.gz
libayatana-indicator-982c91ca6c39b7a36a36bb78302e7c95fb50f374.tar.bz2
libayatana-indicator-982c91ca6c39b7a36a36bb78302e7c95fb50f374.zip
Adding in the about-to-show signal
Diffstat (limited to 'libindicator/indicator-object.c')
-rw-r--r--libindicator/indicator-object.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/libindicator/indicator-object.c b/libindicator/indicator-object.c
index a5fd740..41484a6 100644
--- a/libindicator/indicator-object.c
+++ b/libindicator/indicator-object.c
@@ -432,3 +432,28 @@ indicator_object_get_location (IndicatorObject * io, IndicatorObjectEntry * entr
return 0;
}
+
+/**
+ indicator_object_entry_activate:
+ @io: #IndicatorObject to query
+ @entry: The #IndicatorObjectEntry whose entry was shown
+ @timestamp: The X11 timestamp of the event
+
+ Used to signal to the indicator that the menu on an entry has
+ been clicked on. This can either be an activate or a showing
+ of the menu. Note, this does not actually show the menu that's
+ left up to the reader.
+*/
+void
+indicator_object_entry_activate (IndicatorObject * io, IndicatorObjectEntry * entry, guint timestamp)
+{
+ g_return_if_fail(INDICATOR_IS_OBJECT(io));
+ IndicatorObjectClass * class = INDICATOR_OBJECT_GET_CLASS(io);
+
+ if (class->entry_activate != NULL) {
+ return class->entry_activate(io, entry, timestamp);
+ }
+
+ return;
+}
+