aboutsummaryrefslogtreecommitdiff
path: root/libindicator/indicator-object.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-01-09 15:44:19 -0600
committerTed Gould <ted@gould.cx>2011-01-09 15:44:19 -0600
commita17110ef804bc829df9f6e2275ed3210f7dc1031 (patch)
treec89afa27a72c40159c9b1534fb87cc31a063a246 /libindicator/indicator-object.c
parentf7b8662cc0e5abd018f11345205536dda7d56646 (diff)
downloadlibayatana-indicator-a17110ef804bc829df9f6e2275ed3210f7dc1031.tar.gz
libayatana-indicator-a17110ef804bc829df9f6e2275ed3210f7dc1031.tar.bz2
libayatana-indicator-a17110ef804bc829df9f6e2275ed3210f7dc1031.zip
Adding a virtual function for closing the menu and a wrapper for it.
Diffstat (limited to 'libindicator/indicator-object.c')
-rw-r--r--libindicator/indicator-object.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/libindicator/indicator-object.c b/libindicator/indicator-object.c
index 7469cb9..f82a7c3 100644
--- a/libindicator/indicator-object.c
+++ b/libindicator/indicator-object.c
@@ -500,3 +500,24 @@ indicator_object_entry_activate (IndicatorObject * io, IndicatorObjectEntry * en
return;
}
+/**
+ indicator_object_entry_activate:
+ @io: #IndicatorObject to query
+ @entry: The #IndicatorObjectEntry whose menu was closed
+ @timestamp: The X11 timestamp of the event
+
+ Used to signal that a menu has been closed for the specific
+ entry that is specified.
+*/
+void
+indicator_object_entry_close (IndicatorObject * io, IndicatorObjectEntry * entry, guint timestamp)
+{
+ g_return_if_fail(INDICATOR_IS_OBJECT(io));
+ IndicatorObjectClass * class = INDICATOR_OBJECT_GET_CLASS(io);
+
+ if (class->entry_close != NULL) {
+ return class->entry_close(io, entry, timestamp);
+ }
+
+ return;
+}