diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2010-03-18 15:05:20 -0400 |
---|---|---|
committer | Ken VanDine <ken.vandine@canonical.com> | 2010-03-18 15:05:20 -0400 |
commit | 947d4cf2cebbb6a94879c7795a6392d9b2eb723b (patch) | |
tree | a640073dc050b748b4b30d264a58912ebf5e6693 /libindicator/indicator-object.c | |
parent | a68b0e81fd88b54b019ab32d5745b7f2a3d756d3 (diff) | |
parent | f07a2dff0b358a94d30908cb2f9cd66c13cf4afc (diff) | |
download | libayatana-indicator-947d4cf2cebbb6a94879c7795a6392d9b2eb723b.tar.gz libayatana-indicator-947d4cf2cebbb6a94879c7795a6392d9b2eb723b.tar.bz2 libayatana-indicator-947d4cf2cebbb6a94879c7795a6392d9b2eb723b.zip |
* Upstream release 0.3.6
* Adding in scroll signals for the indicators
* debian/rules: Updating shlibs
Diffstat (limited to 'libindicator/indicator-object.c')
-rw-r--r-- | libindicator/indicator-object.c | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/libindicator/indicator-object.c b/libindicator/indicator-object.c index 87cd648..511a407 100644 --- a/libindicator/indicator-object.c +++ b/libindicator/indicator-object.c @@ -28,6 +28,7 @@ License along with this library. If not, see #include "indicator.h" #include "indicator-object.h" #include "indicator-object-marshal.h" +#include "indicator-object-enum-types.h" /** IndicatorObjectPrivate: @@ -56,6 +57,7 @@ enum { ENTRY_ADDED, ENTRY_REMOVED, ENTRY_MOVED, + SCROLL, LAST_SIGNAL }; @@ -142,6 +144,25 @@ indicator_object_class_init (IndicatorObjectClass *klass) _indicator_object_marshal_VOID__POINTER_UINT_UINT, G_TYPE_NONE, 3, G_TYPE_POINTER, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_NONE); + + /** + IndicatorObject::scroll: + @arg0: The #IndicatorObject object + @arg1: The delta of the scroll event + @arg2: The orientation of the scroll event. + + When the indicator receives a mouse scroll wheel event + from the user, this signal is emitted. + */ + signals[SCROLL] = g_signal_new (INDICATOR_OBJECT_SIGNAL_SCROLL, + G_TYPE_FROM_CLASS(klass), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (IndicatorObjectClass, scroll), + NULL, NULL, + _indicator_object_marshal_VOID__UINT_ENUM, + G_TYPE_NONE, 2, G_TYPE_UINT, INDICATOR_OBJECT_TYPE_SCROLL_DIRECTION); + + return; } @@ -188,7 +209,7 @@ static void indicator_object_finalize (GObject *object) { IndicatorObjectPrivate * priv = INDICATOR_OBJECT_GET_PRIVATE(object); - + if (priv->module != NULL) { /* Wow, this is convoluted. So basically we want to unref the module which will cause the code it included to be @@ -211,7 +232,7 @@ indicator_object_finalize (GObject *object) This function builds an #IndicatorObject using the symbols that are found in @file. The module is loaded and the - references are all kept by the object. To unload the + references are all kept by the object. To unload the module the object must be destroyed. Return value: A valid #IndicatorObject or #NULL if error. @@ -304,7 +325,7 @@ unrefandout: /* The default get entries function uses the other single entries in the class to create an entry structure and put it into a list. This makes it simple for simple objects - to create the list. Small changes from the way they + to create the list. Small changes from the way they previously were. */ static GList * get_entries_default (IndicatorObject * io) |