diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-07-20 12:24:43 +0200 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-07-20 12:24:43 +0200 |
commit | d92a4492dcfca6030f8a9b32c111e582ba4e8f96 (patch) | |
tree | 0d199a31ceb30762dd642318edd0bf944806e235 /src/play-button.h | |
parent | 4643e1d7c2569e28f50cabe6262b61fff98e595b (diff) | |
download | ayatana-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.h | 7 |
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(); |