aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2013-04-11 17:49:46 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2013-04-11 17:49:46 +0200
commit4d84133ab07c5ad5a5eee625f1385778e60273ae (patch)
tree835e70b0980f67e830c6cc5266e06ad712162d43 /src
parentd774ac38dd84f52394bfcbb557b0e3475f999f34 (diff)
downloadayatana-indicator-sound-4d84133ab07c5ad5a5eee625f1385778e60273ae.tar.gz
ayatana-indicator-sound-4d84133ab07c5ad5a5eee625f1385778e60273ae.tar.bz2
ayatana-indicator-sound-4d84133ab07c5ad5a5eee625f1385778e60273ae.zip
common-defs: add DbusmenuTransport.MENUITEM_STATE_CHANGE
And use it in transport-widget.c
Diffstat (limited to 'src')
-rw-r--r--src/common-defs.h5
-rw-r--r--src/transport-widget.c8
2 files changed, 7 insertions, 6 deletions
diff --git a/src/common-defs.h b/src/common-defs.h
index a20fb03..efca5b2 100644
--- a/src/common-defs.h
+++ b/src/common-defs.h
@@ -64,8 +64,9 @@ typedef enum {
#define DBUSMENU_MUTE_MENUITEM_TYPE "x-canonical-sound-menu-mute-type"
#define DBUSMENU_MUTE_MENUITEM_VALUE "x-canonical-sound-menu-mute-value"
-#define DBUSMENU_TRANSPORT_MENUITEM_TYPE "x-canonical-sound-menu-player-transport-type"
-#define DBUSMENU_TRANSPORT_MENUITEM_PLAY_STATE "x-canonical-sound-menu-player-transport-state"
+#define DBUSMENU_TRANSPORT_MENUITEM_TYPE "x-canonical-sound-menu-player-transport-type"
+#define DBUSMENU_TRANSPORT_MENUITEM_PLAY_STATE "x-canonical-sound-menu-player-transport-state"
+#define DBUSMENU_TRANSPORT_MENUITEM_STATE_CHANGE "Transport state change"
#define DBUSMENU_TRACK_SPECIFIC_MENUITEM_TYPE "x-canonical-sound-menu-player-track-specific-type"
diff --git a/src/transport-widget.c b/src/transport-widget.c
index ebe8282..7df656e 100644
--- a/src/transport-widget.c
+++ b/src/transport-widget.c
@@ -450,7 +450,7 @@ transport_widget_seek (gpointer userdata)
new_transport_state = g_variant_new_int32 ((int)TRANSPORT_ACTION_FORWIND);
dbusmenu_menuitem_handle_event ( priv->twin_item,
- "Transport state change",
+ DBUSMENU_TRANSPORT_MENUITEM_STATE_CHANGE,
new_transport_state,
0 );
@@ -460,7 +460,7 @@ transport_widget_seek (gpointer userdata)
new_transport_state = g_variant_new_int32 ((int)TRANSPORT_ACTION_REWIND);
dbusmenu_menuitem_handle_event ( priv->twin_item,
- "Transport state change",
+ DBUSMENU_TRANSPORT_MENUITEM_STATE_CHANGE,
new_transport_state,
0 );
}
@@ -482,7 +482,7 @@ transport_widget_button_release_event (GtkWidget *menuitem,
priv->skip_frequency == 0){
GVariant* new_transport_state = g_variant_new_int32 ((int)result);
dbusmenu_menuitem_handle_event ( priv->twin_item,
- "Transport state change",
+ DBUSMENU_TRANSPORT_MENUITEM_STATE_CHANGE,
new_transport_state,
0 );
}
@@ -533,7 +533,7 @@ transport_widget_react_to_key_release_event ( TransportWidget* transport,
GVariant* new_transport_event = g_variant_new_int32((int)transport_event);
if (priv->skip_frequency == 0){
dbusmenu_menuitem_handle_event ( priv->twin_item,
- "Transport state change",
+ DBUSMENU_TRANSPORT_MENUITEM_STATE_CHANGE,
new_transport_event,
0 );
}