diff options
author | Ted Gould <ted@gould.cx> | 2010-09-21 15:53:41 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-09-21 15:53:41 -0500 |
commit | b91aaa92453fbab73397019070d86c0a9b6fa7ce (patch) | |
tree | 202964318d3dbf46edef77a10b7029c3e0752a17 /libindicator/indicator-object.c | |
parent | b675da761008a640e02b90aa6b99e345875bd00d (diff) | |
parent | 558a37d1ad6479d912c8af6f209f7ba3b7cdc823 (diff) | |
download | libayatana-indicator-b91aaa92453fbab73397019070d86c0a9b6fa7ce.tar.gz libayatana-indicator-b91aaa92453fbab73397019070d86c0a9b6fa7ce.tar.bz2 libayatana-indicator-b91aaa92453fbab73397019070d86c0a9b6fa7ce.zip |
Import upstream version 0.3.14
Diffstat (limited to 'libindicator/indicator-object.c')
-rw-r--r-- | libindicator/indicator-object.c | 25 |
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; +} + |