aboutsummaryrefslogtreecommitdiff
path: root/src/play-button.h
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2010-07-22 21:11:43 +0200
committerSebastien Bacher <seb128@ubuntu.com>2010-07-22 21:11:43 +0200
commit688a5aede6ce53d5286c3de8c038c3c3f4e60ef2 (patch)
tree046454ecf7caec849516b3fda65023b5d6e49919 /src/play-button.h
parent69f91546fb17d7209e5267a5ce7e0ae6b9bbd9d9 (diff)
parent1777ee4291dc792ca3d4df087c8af23cd8458961 (diff)
downloadayatana-indicator-sound-688a5aede6ce53d5286c3de8c038c3c3f4e60ef2.tar.gz
ayatana-indicator-sound-688a5aede6ce53d5286c3de8c038c3c3f4e60ef2.tar.bz2
ayatana-indicator-sound-688a5aede6ce53d5286c3de8c038c3c3f4e60ef2.zip
* New upstream release.
* debian/control: - update ido requirement
Diffstat (limited to 'src/play-button.h')
-rw-r--r--src/play-button.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/play-button.h b/src/play-button.h
index 3eaabcc..727a489 100644
--- a/src/play-button.h
+++ b/src/play-button.h
@@ -33,6 +33,18 @@ G_BEGIN_DECLS
typedef struct _PlayButton PlayButton;
typedef struct _PlayButtonClass PlayButtonClass;
+typedef enum {
+ TRANSPORT_PREVIOUS,
+ TRANSPORT_PLAY_PAUSE,
+ TRANSPORT_NEXT,
+ TRANSPORT_NADA
+}PlayButtonEvent;
+
+typedef enum {
+ PLAY,
+ PAUSE
+}PlayButtonState;
+
struct _PlayButtonClass {
GtkDrawingAreaClass parent_class;
};
@@ -43,7 +55,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, PlayButtonState update);
GtkWidget* play_button_new();