From a17110ef804bc829df9f6e2275ed3210f7dc1031 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Sun, 9 Jan 2011 15:44:19 -0600 Subject: Adding a virtual function for closing the menu and a wrapper for it. --- libindicator/indicator-object.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'libindicator/indicator-object.c') 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; +} -- cgit v1.2.3 From 2b6655fef97e8d37f0d29b668fdd382692cdaca8 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 10 Jan 2011 10:19:52 -0600 Subject: Fixing doc strings --- libindicator/indicator-object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libindicator/indicator-object.c') diff --git a/libindicator/indicator-object.c b/libindicator/indicator-object.c index f82a7c3..988a8ae 100644 --- a/libindicator/indicator-object.c +++ b/libindicator/indicator-object.c @@ -501,12 +501,12 @@ indicator_object_entry_activate (IndicatorObject * io, IndicatorObjectEntry * en } /** - indicator_object_entry_activate: + indicator_object_entry_close: @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 + Used to tell the indicator that a menu has been closed for the entry that is specified. */ void -- cgit v1.2.3