aboutsummaryrefslogtreecommitdiff
path: root/src/play-button.h
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-07-15 17:08:36 +0100
committerConor Curran <conor.curran@canonical.com>2010-07-15 17:08:36 +0100
commit4643e1d7c2569e28f50cabe6262b61fff98e595b (patch)
tree1eca723221d7b76312924e647403b551c638bd13 /src/play-button.h
parent0358622a18d0dbf2d1b413a708e248db974f97a8 (diff)
parent05b905d4712ed4064d82401621eacbdfbcb54312 (diff)
downloadayatana-indicator-sound-4643e1d7c2569e28f50cabe6262b61fff98e595b.tar.gz
ayatana-indicator-sound-4643e1d7c2569e28f50cabe6262b61fff98e595b.tar.bz2
ayatana-indicator-sound-4643e1d7c2569e28f50cabe6262b61fff98e595b.zip
merged the button press effect branch plus changes for the ido and bumped release version for 0.3.7
Diffstat (limited to 'src/play-button.h')
-rw-r--r--src/play-button.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/play-button.h b/src/play-button.h
index 3eaabcc..6f646b5 100644
--- a/src/play-button.h
+++ b/src/play-button.h
@@ -33,6 +33,13 @@ G_BEGIN_DECLS
typedef struct _PlayButton PlayButton;
typedef struct _PlayButtonClass PlayButtonClass;
+typedef enum {
+ TRANSPORT_PREVIOUS,
+ TRANSPORT_PLAY_PAUSE,
+ TRANSPORT_NEXT,
+ TRANSPORT_NADA
+}PlayButtonEvent;
+
struct _PlayButtonClass {
GtkDrawingAreaClass parent_class;
};
@@ -43,7 +50,10 @@ struct _PlayButton {
GType play_button_get_type (void);
void play_button_set_style(GtkWidget* button, GtkStyle* style);
-gint determine_button_event(GtkWidget* button, GdkEventButton* event);
+PlayButtonEvent determine_button_event(GtkWidget* button, GdkEventButton* event);
+void play_button_react_to_button_press(GtkWidget* button, PlayButtonEvent command);
+void play_button_react_to_button_release(GtkWidget* button);
+void play_button_toggle_play_pause(GtkWidget* button, int update);
GtkWidget* play_button_new();