diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-07-15 15:46:54 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-07-15 15:46:54 +0100 |
commit | 42f71fbdeb2beb78a3c4381caaa75c66e5b1b6b4 (patch) | |
tree | 67d188d00f92f8c18b71bbb14a4a846356632a1a /src/play-button.h | |
parent | 858c43dbd4be74c8979bc778b83a1642784a7e02 (diff) | |
download | ayatana-indicator-sound-42f71fbdeb2beb78a3c4381caaa75c66e5b1b6b4.tar.gz ayatana-indicator-sound-42f71fbdeb2beb78a3c4381caaa75c66e5b1b6b4.tar.bz2 ayatana-indicator-sound-42f71fbdeb2beb78a3c4381caaa75c66e5b1b6b4.zip |
tidied up some enums using typedefs and some more bits and pieces
Diffstat (limited to 'src/play-button.h')
-rw-r--r-- | src/play-button.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/play-button.h b/src/play-button.h index e82d59c..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,8 +50,8 @@ 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); -void play_button_react_to_button_press(GtkWidget* button, gint command); +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); |