~bratsche/indicator-sound/icon-placement

« back to all changes in this revision

Viewing changes to src/play-button.h

  • Committer: Conor Curran
  • Date: 2010-07-15 16:08:36 UTC
  • mfrom: (101.2.5 indicator-sound)
  • Revision ID: conor.curran@canonical.com-20100715160836-rodivhs9nbpd1lks
Tags: 0.3.7
merged the button press effect branch plus changes for the ido and bumped release version for 0.3.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
typedef struct _PlayButton      PlayButton;
34
34
typedef struct _PlayButtonClass PlayButtonClass;
35
35
 
 
36
typedef enum {
 
37
        TRANSPORT_PREVIOUS,
 
38
        TRANSPORT_PLAY_PAUSE,
 
39
        TRANSPORT_NEXT,
 
40
        TRANSPORT_NADA
 
41
}PlayButtonEvent;
 
42
 
36
43
struct _PlayButtonClass {
37
44
          GtkDrawingAreaClass parent_class;
38
45
};
43
50
 
44
51
GType play_button_get_type (void);
45
52
void play_button_set_style(GtkWidget* button, GtkStyle* style);
46
 
gint determine_button_event(GtkWidget* button, GdkEventButton* event);
 
53
PlayButtonEvent determine_button_event(GtkWidget* button, GdkEventButton* event);
 
54
void play_button_react_to_button_press(GtkWidget* button,  PlayButtonEvent command);
 
55
void play_button_react_to_button_release(GtkWidget* button);
 
56
void play_button_toggle_play_pause(GtkWidget* button, int update);
47
57
 
48
58
GtkWidget* play_button_new();
49
59