aboutsummaryrefslogtreecommitdiff
path: root/libindicator/indicator-object.c
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2011-07-21 12:30:30 -0400
committerKen VanDine <ken.vandine@canonical.com>2011-07-21 12:30:30 -0400
commit7c76a871e64f4a64de9cac1f6a544fce51ee76bf (patch)
tree16689fe4b5854159b2883e012989070ae5232781 /libindicator/indicator-object.c
parent69b82366649b0fc6063cb058025694dab23c184f (diff)
parent23239f8bdd4e54e98169edb1bad01b89f84f53ce (diff)
downloadlibayatana-indicator-7c76a871e64f4a64de9cac1f6a544fce51ee76bf.tar.gz
libayatana-indicator-7c76a871e64f4a64de9cac1f6a544fce51ee76bf.tar.bz2
libayatana-indicator-7c76a871e64f4a64de9cac1f6a544fce51ee76bf.zip
* New upstream release.
* Adding support for a secondary activate signal
Diffstat (limited to 'libindicator/indicator-object.c')
-rw-r--r--libindicator/indicator-object.c21
1 files changed, 19 insertions, 2 deletions
diff --git a/libindicator/indicator-object.c b/libindicator/indicator-object.c
index a563ebe..bd056f0 100644
--- a/libindicator/indicator-object.c
+++ b/libindicator/indicator-object.c
@@ -63,6 +63,7 @@ enum {
MENU_SHOW,
SHOW_NOW_CHANGED,
ACCESSIBLE_DESC_UPDATE,
+ SECONDARY_ACTIVATE,
LAST_SIGNAL
};
@@ -149,8 +150,7 @@ indicator_object_class_init (IndicatorObjectClass *klass)
NULL, NULL,
_indicator_object_marshal_VOID__POINTER_UINT_UINT,
G_TYPE_NONE, 3, G_TYPE_POINTER, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_NONE);
-
-/**
+ /**
IndicatorObject::entry-scrolled:
@arg0: The #IndicatorObject object
@arg1: A pointer to the #IndicatorObjectEntry that
@@ -169,6 +169,23 @@ indicator_object_class_init (IndicatorObjectClass *klass)
_indicator_object_marshal_VOID__POINTER_UINT_ENUM,
G_TYPE_NONE, 3, G_TYPE_POINTER, G_TYPE_UINT,
INDICATOR_OBJECT_TYPE_SCROLL_DIRECTION);
+ /**
+ IndicatorObject::secondary-activate:
+ @arg0: The #IndicatorObject object
+ @arg1: A pointer to the #IndicatorObjectEntry that
+ receives the secondary activate event.
+ @arg2: The timestamp of the event
+
+ When the indicator receives a secondary activation event
+ from the user, this signal is emitted.
+ */
+ signals[SECONDARY_ACTIVATE] = g_signal_new (INDICATOR_OBJECT_SIGNAL_SECONDARY_ACTIVATE,
+ G_TYPE_FROM_CLASS(klass),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (IndicatorObjectClass, secondary_activate),
+ NULL, NULL,
+ _indicator_object_marshal_VOID__POINTER_UINT,
+ G_TYPE_NONE, 2, G_TYPE_POINTER, G_TYPE_UINT);
/**
IndicatorObject::menu-show: