diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2011-03-11 12:47:25 -0500 |
---|---|---|
committer | Ken VanDine <ken.vandine@canonical.com> | 2011-03-11 12:47:25 -0500 |
commit | a65cff5ec2d7625408d58fe6b23ddb40d7f63ee2 (patch) | |
tree | e745cb3cd2db766aa66b481accda28221f933d75 /src/transport-widget.h | |
parent | 73772e6ea7f0ca55bd3df65a031ddb48fba66104 (diff) | |
parent | 014ef9d63fdf4d7213f1a9481d0566a63daa7543 (diff) | |
download | ayatana-indicator-sound-a65cff5ec2d7625408d58fe6b23ddb40d7f63ee2.tar.gz ayatana-indicator-sound-a65cff5ec2d7625408d58fe6b23ddb40d7f63ee2.tar.bz2 ayatana-indicator-sound-a65cff5ec2d7625408d58fe6b23ddb40d7f63ee2.zip |
Import upstream version 0.6.3
Diffstat (limited to 'src/transport-widget.h')
-rw-r--r-- | src/transport-widget.h | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/src/transport-widget.h b/src/transport-widget.h index d02f59b..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,17 +37,6 @@ G_BEGIN_DECLS typedef struct _TransportWidget TransportWidget; typedef struct _TransportWidgetClass TransportWidgetClass; -typedef enum { - TRANSPORT_PREVIOUS, - TRANSPORT_PLAY_PAUSE, - TRANSPORT_NEXT, - TRANSPORT_NADA -}TransportWidgetEvent; - -typedef enum { - PLAY, - PAUSE -}TransportWidgetState; struct _TransportWidgetClass { GtkMenuItemClass parent_class; @@ -65,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 |