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.h | |
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.h')
-rw-r--r-- | libindicator/indicator-object.h | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/libindicator/indicator-object.h b/libindicator/indicator-object.h index 0356d1c..3c6bec5 100644 --- a/libindicator/indicator-object.h +++ b/libindicator/indicator-object.h @@ -24,11 +24,18 @@ License along with this library. If not, see #ifndef __INDICATOR_OBJECT_H__ #define __INDICATOR_OBJECT_H__ -#include <glib.h> -#include <glib-object.h> +#include <gtk/gtk.h> G_BEGIN_DECLS +typedef enum +{ + INDICATOR_OBJECT_SCROLL_UP, + INDICATOR_OBJECT_SCROLL_DOWN, + INDICATOR_OBJECT_SCROLL_LEFT, + INDICATOR_OBJECT_SCROLL_RIGHT +} IndicatorScrollDirection; + #define INDICATOR_OBJECT_TYPE (indicator_object_get_type ()) #define INDICATOR_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), INDICATOR_OBJECT_TYPE, IndicatorObject)) #define INDICATOR_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), INDICATOR_OBJECT_TYPE, IndicatorObjectClass)) @@ -42,6 +49,8 @@ G_BEGIN_DECLS #define INDICATOR_OBJECT_SIGNAL_ENTRY_REMOVED_ID (g_signal_lookup(INDICATOR_OBJECT_SIGNAL_ENTRY_REMOVED, INDICATOR_OBJECT_TYPE)) #define INDICATOR_OBJECT_SIGNAL_ENTRY_MOVED "entry-moved" #define INDICATOR_OBJECT_SIGNAL_ENTRY_MOVED_ID (g_signal_lookup(INDICATOR_OBJECT_SIGNAL_ENTRY_MOVED, INDICATOR_OBJECT_TYPE)) +#define INDICATOR_OBJECT_SIGNAL_SCROLL "scroll" +#define INDICATOR_OBJECT_SIGNAL_SCROLL_ID (g_signal_lookup(INDICATOR_OBJECT_SIGNAL_SCROLL, INDICATOR_OBJECT_TYPE)) typedef struct _IndicatorObject IndicatorObject; typedef struct _IndicatorObjectClass IndicatorObjectClass; @@ -75,7 +84,7 @@ typedef struct _IndicatorObjectEntry IndicatorObjectEntry; */ struct _IndicatorObjectClass { GObjectClass parent_class; - + /* Virtual Functions */ GtkLabel * (*get_label) (IndicatorObject * io); GtkImage * (*get_image) (IndicatorObject * io); @@ -85,13 +94,13 @@ struct _IndicatorObjectClass { guint (*get_location) (IndicatorObject * io, IndicatorObjectEntry * entry); /* Signals */ - void (*entry_added) (IndicatorObject * io, IndicatorObjectEntry * entry, gpointer user_data); - void (*entry_removed) (IndicatorObject * io, IndicatorObjectEntry * entry, gpointer user_data); - void (*entry_moved) (IndicatorObject * io, IndicatorObjectEntry * entry, guint old_pos, guint new_pos, gpointer user_data); + void (*entry_added) (IndicatorObject * io, IndicatorObjectEntry * entry, gpointer user_data); + void (*entry_removed) (IndicatorObject * io, IndicatorObjectEntry * entry, gpointer user_data); + void (*entry_moved) (IndicatorObject * io, IndicatorObjectEntry * entry, guint old_pos, guint new_pos, gpointer user_data); + void (*scroll) (IndicatorObject * io, gint delta, IndicatorScrollDirection direction); /* Reserved */ void (* indicator_object_reserved_1) (void); - void (* indicator_object_reserved_2) (void); }; /** |