aboutsummaryrefslogtreecommitdiff
path: root/src/transport-widget.h
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-03-09 16:18:02 +0000
committerConor Curran <conor.curran@canonical.com>2011-03-09 16:18:02 +0000
commit54041ebcb901119c79aa5c5156b5888a1deecd39 (patch)
tree6b4eaeeeb25351a3d809d4d7973bcc03fde7acae /src/transport-widget.h
parent017cbc3be8b4bf1e365d013ede94c848e774d5ef (diff)
downloadayatana-indicator-sound-54041ebcb901119c79aa5c5156b5888a1deecd39.tar.gz
ayatana-indicator-sound-54041ebcb901119c79aa5c5156b5888a1deecd39.tar.bz2
ayatana-indicator-sound-54041ebcb901119c79aa5c5156b5888a1deecd39.zip
refactored indicator side
Diffstat (limited to 'src/transport-widget.h')
-rw-r--r--src/transport-widget.h27
1 files changed, 8 insertions, 19 deletions
diff --git a/src/transport-widget.h b/src/transport-widget.h
index c9354b1..e5e91dc 100644
--- a/src/transport-widget.h
+++ b/src/transport-widget.h
@@ -23,6 +23,8 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include <gtk/gtkmenuitem.h>
#include <libdbusmenu-gtk/menuitem.h>
+#include "common-defs.h"
+
G_BEGIN_DECLS
#define TRANSPORT_WIDGET_TYPE (transport_widget_get_type ())
@@ -35,19 +37,6 @@ G_BEGIN_DECLS
typedef struct _TransportWidget TransportWidget;
typedef struct _TransportWidgetClass TransportWidgetClass;
-typedef enum {
- TRANSPORT_PREVIOUS,
- TRANSPORT_PLAY_PAUSE,
- TRANSPORT_NEXT,
- TRANSPORT_REWIND,
- TRANSPORT_FORWIND,
- TRANSPORT_NADA
-}TransportWidgetEvent;
-
-typedef enum {
- PLAY,
- PAUSE
-}TransportWidgetState;
struct _TransportWidgetClass {
GtkMenuItemClass parent_class;
@@ -67,12 +56,12 @@ typedef struct
void _color_shade (const CairoColorRGB *a, float k, CairoColorRGB *b);
GType transport_widget_get_type (void);
-GtkWidget* transport_widget_new ( DbusmenuMenuitem *item );
-void transport_widget_react_to_key_press_event ( TransportWidget* widget,
- TransportWidgetEvent transport_event );
-void transport_widget_react_to_key_release_event ( TransportWidget* widget,
- TransportWidgetEvent transport_event );
-gboolean transport_widget_is_selected ( TransportWidget* widget );
+GtkWidget* transport_widget_new (DbusmenuMenuitem *item);
+void transport_widget_react_to_key_press_event (TransportWidget* widget,
+ TransportAction transport_event);
+void transport_widget_react_to_key_release_event (TransportWidget* widget,
+ TransportAction transport_event);
+gboolean transport_widget_is_selected (TransportWidget* widget);
G_END_DECLS
#endif