diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2008-11-01 05:33:26 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2008-11-01 05:33:26 +0000 |
commit | 1ffab34feeea1c6c2dcc400c1ad4a15d832c9f0e (patch) | |
tree | 9090a3f077b94ec84efdf588e86337bf63efa616 /gtk/gtkstatusicon.h | |
parent | d1c6982eaadb0a333223cb45f0d599a0f2a142d2 (diff) | |
download | gtk+-1ffab34feeea1c6c2dcc400c1ad4a15d832c9f0e.tar.gz |
Add support for button press/release and scroll events. Patch by Ed Catmur
* gtk/gtkstatusicon.[hc]: Add support for button press/release and
scroll events. Patch by Ed Catmur
svn path=/trunk/; revision=21746
Diffstat (limited to 'gtk/gtkstatusicon.h')
-rwxr-xr-x | gtk/gtkstatusicon.h | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/gtk/gtkstatusicon.h b/gtk/gtkstatusicon.h index 2048f2b94b..1df579aba8 100755 --- a/gtk/gtkstatusicon.h +++ b/gtk/gtkstatusicon.h @@ -55,19 +55,22 @@ struct _GtkStatusIconClass { GObjectClass parent_class; - void (* activate) (GtkStatusIcon *status_icon); - void (* popup_menu) (GtkStatusIcon *status_icon, - guint button, - guint32 activate_time); - gboolean (* size_changed) (GtkStatusIcon *status_icon, - gint size); + void (* activate) (GtkStatusIcon *status_icon); + void (* popup_menu) (GtkStatusIcon *status_icon, + guint button, + guint32 activate_time); + gboolean (* size_changed) (GtkStatusIcon *status_icon, + gint size); + gboolean (* button_press_event) (GtkStatusIcon *status_icon, + GdkEventButton *event); + gboolean (* button_release_event) (GtkStatusIcon *status_icon, + GdkEventButton *event); + gboolean (* scroll_event) (GtkStatusIcon *status_icon, + GdkEventScroll *event); void (*__gtk_reserved1); void (*__gtk_reserved2); void (*__gtk_reserved3); - void (*__gtk_reserved4); - void (*__gtk_reserved5); - void (*__gtk_reserved6); }; GType gtk_status_icon_get_type (void) G_GNUC_CONST; @@ -104,8 +107,7 @@ void gtk_status_icon_set_screen (GtkStatusIcon *st GdkScreen *gtk_status_icon_get_screen (GtkStatusIcon *status_icon); void gtk_status_icon_set_tooltip (GtkStatusIcon *status_icon, - const gchar *tooltip_text); - + const gchar *tooltip_text); void gtk_status_icon_set_visible (GtkStatusIcon *status_icon, gboolean visible); gboolean gtk_status_icon_get_visible (GtkStatusIcon *status_icon); @@ -125,6 +127,9 @@ gboolean gtk_status_icon_get_geometry (GtkStatusIcon *st GdkScreen **screen, GdkRectangle *area, GtkOrientation *orientation); +gboolean gtk_status_icon_get_has_tooltip (GtkStatusIcon *status_icon); +gchar *gtk_status_icon_get_tooltip_text (GtkStatusIcon *status_icon); +gchar *gtk_status_icon_get_tooltip_markup (GtkStatusIcon *status_icon); guint32 gtk_status_icon_get_x11_window_id (GtkStatusIcon *status_icon); |