aboutsummaryrefslogtreecommitdiff
path: root/libindicator/indicator-object.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-01-10 11:55:10 -0600
committerTed Gould <ted@gould.cx>2011-01-10 11:55:10 -0600
commitbd88281f655c76a2696c03a32a71a687fe891067 (patch)
tree70e8651d8dcbc9f4c69cd177f29082b52b2bbf5b /libindicator/indicator-object.c
parent990356c47906309289377b57b5eec0298f30bcb6 (diff)
parent38af4e8e52874d435eb9596f6b8d7fe79e71fe49 (diff)
downloadlibayatana-indicator-bd88281f655c76a2696c03a32a71a687fe891067.tar.gz
libayatana-indicator-bd88281f655c76a2696c03a32a71a687fe891067.tar.bz2
libayatana-indicator-bd88281f655c76a2696c03a32a71a687fe891067.zip
Final GDBus port
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..988a8ae 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_close:
+ @io: #IndicatorObject to query
+ @entry: The #IndicatorObjectEntry whose menu was closed
+ @timestamp: The X11 timestamp of the event
+
+ Used to tell the indicator that a menu has been closed for the
+ 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;
+}