aboutsummaryrefslogtreecommitdiff
path: root/src/play-button.h
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-07-20 12:24:43 +0200
committerConor Curran <conor.curran@canonical.com>2010-07-20 12:24:43 +0200
commitd92a4492dcfca6030f8a9b32c111e582ba4e8f96 (patch)
tree0d199a31ceb30762dd642318edd0bf944806e235 /src/play-button.h
parent4643e1d7c2569e28f50cabe6262b61fff98e595b (diff)
downloadayatana-indicator-sound-d92a4492dcfca6030f8a9b32c111e582ba4e8f96.tar.gz
ayatana-indicator-sound-d92a4492dcfca6030f8a9b32c111e582ba4e8f96.tar.bz2
ayatana-indicator-sound-d92a4492dcfca6030f8a9b32c111e582ba4e8f96.zip
play pause both graphically and functionally now working
Diffstat (limited to 'src/play-button.h')
-rw-r--r--src/play-button.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/play-button.h b/src/play-button.h
index 6f646b5..727a489 100644
--- a/src/play-button.h
+++ b/src/play-button.h
@@ -40,6 +40,11 @@ typedef enum {
TRANSPORT_NADA
}PlayButtonEvent;
+typedef enum {
+ PLAY,
+ PAUSE
+}PlayButtonState;
+
struct _PlayButtonClass {
GtkDrawingAreaClass parent_class;
};
@@ -53,7 +58,7 @@ void play_button_set_style(GtkWidget* button, GtkStyle* style);
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);
+void play_button_toggle_play_pause(GtkWidget* button, PlayButtonState update);
GtkWidget* play_button_new();