aboutsummaryrefslogtreecommitdiff
path: root/src/mpris-controller.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mpris-controller.c')
-rw-r--r--src/mpris-controller.c259
1 files changed, 52 insertions, 207 deletions
diff --git a/src/mpris-controller.c b/src/mpris-controller.c
index 1f891f7..98151e0 100644
--- a/src/mpris-controller.c
+++ b/src/mpris-controller.c
@@ -1,4 +1,4 @@
-/* mpris-controller.c generated by valac 0.9.5, the Vala compiler
+/* mpris-controller.c generated by valac 0.9.7, the Vala compiler
* generated from mpris-controller.vala, do not modify */
/*
@@ -97,16 +97,6 @@ typedef struct _TransportMenuitem TransportMenuitem;
typedef struct _TransportMenuitemClass TransportMenuitemClass;
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
-#define TYPE_SCRUB_MENUITEM (scrub_menuitem_get_type ())
-#define SCRUB_MENUITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SCRUB_MENUITEM, ScrubMenuitem))
-#define SCRUB_MENUITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SCRUB_MENUITEM, ScrubMenuitemClass))
-#define IS_SCRUB_MENUITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SCRUB_MENUITEM))
-#define IS_SCRUB_MENUITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SCRUB_MENUITEM))
-#define SCRUB_MENUITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SCRUB_MENUITEM, ScrubMenuitemClass))
-
-typedef struct _ScrubMenuitem ScrubMenuitem;
-typedef struct _ScrubMenuitemClass ScrubMenuitemClass;
-
#define TRANSPORT_MENUITEM_TYPE_ACTION (transport_menuitem_action_get_type ())
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
@@ -149,7 +139,6 @@ typedef enum {
PLAYER_CONTROLLER_WIDGET_ORDER_SEPARATOR,
PLAYER_CONTROLLER_WIDGET_ORDER_TITLE,
PLAYER_CONTROLLER_WIDGET_ORDER_METADATA,
- PLAYER_CONTROLLER_WIDGET_ORDER_SCRUB,
PLAYER_CONTROLLER_WIDGET_ORDER_TRANSPORT
} PlayerControllerwidget_order;
@@ -173,6 +162,7 @@ enum {
};
MprisController* mpris_controller_new (PlayerController* ctrl, const char* inter);
MprisController* mpris_controller_construct (GType object_type, PlayerController* ctrl, const char* inter);
+static void mpris_controller_initial_update (MprisController* self);
DBusGProxy* mpris_controller_get_mpris_player (MprisController* self);
static GType mpris_controller_status_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static MprisControllerstatus* mpris_controller_status_dup (const MprisControllerstatus* self);
@@ -187,31 +177,21 @@ void transport_menuitem_change_play_state (TransportMenuitem* self, gint state);
static GHashTable* _dynamic_GetMetadata1 (DBusGProxy* self, GError** error);
void player_item_update (PlayerItem* self, GHashTable* data, GeeHashSet* attributes);
GeeHashSet* metadata_menuitem_attributes_format (void);
-static GHashTable* _dynamic_GetMetadata2 (DBusGProxy* self, GError** error);
-GeeHashSet* scrub_menuitem_attributes_format (void);
-GType scrub_menuitem_get_type (void) G_GNUC_CONST;
-static gint32 _dynamic_PositionGet3 (DBusGProxy* self, GError** error);
-void scrub_menuitem_update_position (ScrubMenuitem* self, gint32 new_position);
-static void mpris_controller_initial_update (MprisController* self);
GType transport_menuitem_action_get_type (void) G_GNUC_CONST;
-static void _dynamic_Pause4 (DBusGProxy* self, GError** error);
-static void _dynamic_Prev5 (DBusGProxy* self, GError** error);
-static void _dynamic_Next6 (DBusGProxy* self, GError** error);
void mpris_controller_transport_event (MprisController* self, TransportMenuitemaction command);
-static GHashTable* _dynamic_GetMetadata7 (DBusGProxy* self, GError** error);
-static GValue* _g_value_dup (GValue* self);
-static void _dynamic_PositionSet8 (DBusGProxy* self, gint32 param1, GError** error);
-static gint32 _dynamic_PositionGet9 (DBusGProxy* self, GError** error);
+static void _dynamic_Pause2 (DBusGProxy* self, GError** error);
+static void _dynamic_Prev3 (DBusGProxy* self, GError** error);
+static void _dynamic_Next4 (DBusGProxy* self, GError** error);
void mpris_controller_set_position (MprisController* self, double position);
+static GHashTable* _dynamic_GetMetadata5 (DBusGProxy* self, GError** error);
+static GValue* _g_value_dup (GValue* self);
+static void _dynamic_PositionSet6 (DBusGProxy* self, gint32 param1, GError** error);
gboolean mpris_controller_connected (MprisController* self);
-GeeHashSet* transport_menuitem_attributes_format (void);
static void mpris_controller_onStatusChange (MprisController* self, DBusGProxy* mpris_client, MprisControllerstatus* st);
-void player_item_reset (PlayerItem* self, GeeHashSet* attrs);
-static void _dynamic_GetStatus10 (DBusGProxy* self, MprisControllerstatus* result, GError** error);
-void scrub_menuitem_update_playstate (ScrubMenuitem* self, gint state);
-static GHashTable* _dynamic_GetMetadata11 (DBusGProxy* self, GError** error);
-static gint32 _dynamic_PositionGet12 (DBusGProxy* self, GError** error);
+GeeHashSet* transport_menuitem_attributes_format (void);
static void mpris_controller_onTrackChange (MprisController* self, DBusGProxy* mpris_client, GHashTable* ht);
+void player_item_reset (PlayerItem* self, GeeHashSet* attrs);
+static void _dynamic_GetStatus7 (DBusGProxy* self, MprisControllerstatus* result, GError** error);
static void mpris_controller_set_mpris_player (MprisController* self, DBusGProxy* value);
static void mpris_controller_set_owner (MprisController* self, PlayerController* value);
const char* mpris_controller_get_mpris_interface (MprisController* self);
@@ -266,46 +246,18 @@ static GHashTable* _dynamic_GetMetadata1 (DBusGProxy* self, GError** error) {
}
-static GHashTable* _dynamic_GetMetadata2 (DBusGProxy* self, GError** error) {
- GHashTable* result;
- dbus_g_proxy_call (self, "GetMetadata", error, G_TYPE_INVALID, dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_VALUE), &result, G_TYPE_INVALID);
- if (*error) {
- return NULL;
- }
- return result;
-}
-
-
-static gint32 _dynamic_PositionGet3 (DBusGProxy* self, GError** error) {
- gint32 result;
- dbus_g_proxy_call (self, "PositionGet", error, G_TYPE_INVALID, G_TYPE_INT, &result, G_TYPE_INVALID);
- if (*error) {
- return 0;
- }
- return result;
-}
-
-
static void mpris_controller_initial_update (MprisController* self) {
- GError * _inner_error_;
MprisControllerstatus _tmp0_ = {0};
MprisControllerstatus st;
gint play_state;
- TransportMenuitem* _tmp2_;
PlayerItem* _tmp1_;
+ TransportMenuitem* _tmp2_;
GHashTable* _tmp3_;
- GeeHashSet* _tmp6_;
- GHashTable* _tmp5_;
PlayerItem* _tmp4_;
- GHashTable* _tmp7_;
- GeeHashSet* _tmp10_;
- GHashTable* _tmp9_;
- PlayerItem* _tmp8_;
- PlayerItem* _tmp11_;
- ScrubMenuitem* scrub;
- gint32 _tmp12_;
+ GHashTable* _tmp5_;
+ GeeHashSet* _tmp6_;
+ GError * _inner_error_ = NULL;
g_return_if_fail (self != NULL);
- _inner_error_ = NULL;
st = (_dynamic_GetStatus0 (self->priv->_mpris_player, &_tmp0_, &_inner_error_), _tmp0_);
if (_inner_error_ != NULL) {
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
@@ -326,30 +278,10 @@ static void mpris_controller_initial_update (MprisController* self) {
_g_object_unref0 (_tmp6_);
_g_hash_table_unref0 (_tmp5_);
_g_object_unref0 (_tmp4_);
- _tmp7_ = _dynamic_GetMetadata2 (self->priv->_mpris_player, &_inner_error_);
- if (_inner_error_ != NULL) {
- g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
- g_clear_error (&_inner_error_);
- return;
- }
- player_item_update (_tmp8_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_SCRUB), _tmp9_ = _tmp7_, _tmp10_ = scrub_menuitem_attributes_format ());
- _g_object_unref0 (_tmp10_);
- _g_hash_table_unref0 (_tmp9_);
- _g_object_unref0 (_tmp8_);
- scrub = (_tmp11_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_SCRUB), IS_SCRUB_MENUITEM (_tmp11_) ? ((ScrubMenuitem*) _tmp11_) : NULL);
- _tmp12_ = _dynamic_PositionGet3 (self->priv->_mpris_player, &_inner_error_);
- if (_inner_error_ != NULL) {
- _g_object_unref0 (scrub);
- g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
- g_clear_error (&_inner_error_);
- return;
- }
- scrub_menuitem_update_position (scrub, _tmp12_);
- _g_object_unref0 (scrub);
}
-static void _dynamic_Pause4 (DBusGProxy* self, GError** error) {
+static void _dynamic_Pause2 (DBusGProxy* self, GError** error) {
dbus_g_proxy_call (self, "Pause", error, G_TYPE_INVALID, G_TYPE_INVALID);
if (*error) {
return;
@@ -357,7 +289,7 @@ static void _dynamic_Pause4 (DBusGProxy* self, GError** error) {
}
-static void _dynamic_Prev5 (DBusGProxy* self, GError** error) {
+static void _dynamic_Prev3 (DBusGProxy* self, GError** error) {
dbus_g_proxy_call (self, "Prev", error, G_TYPE_INVALID, G_TYPE_INVALID);
if (*error) {
return;
@@ -365,7 +297,7 @@ static void _dynamic_Prev5 (DBusGProxy* self, GError** error) {
}
-static void _dynamic_Next6 (DBusGProxy* self, GError** error) {
+static void _dynamic_Next4 (DBusGProxy* self, GError** error) {
dbus_g_proxy_call (self, "Next", error, G_TYPE_INVALID, G_TYPE_INVALID);
if (*error) {
return;
@@ -374,13 +306,12 @@ static void _dynamic_Next6 (DBusGProxy* self, GError** error) {
void mpris_controller_transport_event (MprisController* self, TransportMenuitemaction command) {
- GError * _inner_error_;
+ GError * _inner_error_ = NULL;
g_return_if_fail (self != NULL);
- _inner_error_ = NULL;
- g_debug ("mpris-controller.vala:72: transport_event input = %i", (gint) command);
+ g_debug ("mpris-controller.vala:68: transport_event input = %i", (gint) command);
if (command == TRANSPORT_MENUITEM_ACTION_PLAY_PAUSE) {
- g_debug ("mpris-controller.vala:74: transport_event PLAY_PAUSE");
- _dynamic_Pause4 (self->priv->_mpris_player, &_inner_error_);
+ g_debug ("mpris-controller.vala:70: transport_event PLAY_PAUSE");
+ _dynamic_Pause2 (self->priv->_mpris_player, &_inner_error_);
if (_inner_error_ != NULL) {
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
g_clear_error (&_inner_error_);
@@ -388,7 +319,7 @@ void mpris_controller_transport_event (MprisController* self, TransportMenuitema
}
} else {
if (command == TRANSPORT_MENUITEM_ACTION_PREVIOUS) {
- _dynamic_Prev5 (self->priv->_mpris_player, &_inner_error_);
+ _dynamic_Prev3 (self->priv->_mpris_player, &_inner_error_);
if (_inner_error_ != NULL) {
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
g_clear_error (&_inner_error_);
@@ -396,7 +327,7 @@ void mpris_controller_transport_event (MprisController* self, TransportMenuitema
}
} else {
if (command == TRANSPORT_MENUITEM_ACTION_NEXT) {
- _dynamic_Next6 (self->priv->_mpris_player, &_inner_error_);
+ _dynamic_Next4 (self->priv->_mpris_player, &_inner_error_);
if (_inner_error_ != NULL) {
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
g_clear_error (&_inner_error_);
@@ -408,7 +339,7 @@ void mpris_controller_transport_event (MprisController* self, TransportMenuitema
}
-static GHashTable* _dynamic_GetMetadata7 (DBusGProxy* self, GError** error) {
+static GHashTable* _dynamic_GetMetadata5 (DBusGProxy* self, GError** error) {
GHashTable* result;
dbus_g_proxy_call (self, "GetMetadata", error, G_TYPE_INVALID, dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_VALUE), &result, G_TYPE_INVALID);
if (*error) {
@@ -428,7 +359,7 @@ static gpointer __g_value_dup0 (gpointer self) {
}
-static void _dynamic_PositionSet8 (DBusGProxy* self, gint32 param1, GError** error) {
+static void _dynamic_PositionSet6 (DBusGProxy* self, gint32 param1, GError** error) {
dbus_g_proxy_call (self, "PositionSet", error, G_TYPE_INT, param1, G_TYPE_INVALID, G_TYPE_INVALID);
if (*error) {
return;
@@ -436,29 +367,15 @@ static void _dynamic_PositionSet8 (DBusGProxy* self, gint32 param1, GError** err
}
-static gint32 _dynamic_PositionGet9 (DBusGProxy* self, GError** error) {
- gint32 result;
- dbus_g_proxy_call (self, "PositionGet", error, G_TYPE_INVALID, G_TYPE_INT, &result, G_TYPE_INVALID);
- if (*error) {
- return 0;
- }
- return result;
-}
-
-
void mpris_controller_set_position (MprisController* self, double position) {
- GError * _inner_error_;
GHashTable* data;
GValue* time_value;
guint32 total_time;
double new_time_position;
- PlayerItem* _tmp0_;
- ScrubMenuitem* scrub;
- gint32 _tmp1_;
+ GError * _inner_error_ = NULL;
g_return_if_fail (self != NULL);
- _inner_error_ = NULL;
- g_debug ("mpris-controller.vala:87: Set position with pos (0-100) %f", position);
- data = _dynamic_GetMetadata7 (self->priv->_mpris_player, &_inner_error_);
+ g_debug ("mpris-controller.vala:83: Set position with pos (0-100) %f", position);
+ data = _dynamic_GetMetadata5 (self->priv->_mpris_player, &_inner_error_);
if (_inner_error_ != NULL) {
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
g_clear_error (&_inner_error_);
@@ -466,17 +383,17 @@ void mpris_controller_set_position (MprisController* self, double position) {
}
time_value = __g_value_dup0 ((GValue*) g_hash_table_lookup (data, "time"));
if (time_value == NULL) {
- g_warning ("mpris-controller.vala:91: Can't fetch the duration of the track theref" \
+ g_warning ("mpris-controller.vala:87: Can't fetch the duration of the track theref" \
"ore cant set the position");
_g_free0 (time_value);
_g_hash_table_unref0 (data);
return;
}
total_time = (guint32) g_value_get_uint (time_value);
- g_debug ("mpris-controller.vala:95: total time of track = %i", (gint) total_time);
+ g_debug ("mpris-controller.vala:91: total time of track = %i", (gint) total_time);
new_time_position = (total_time * position) / 100.0;
- g_debug ("mpris-controller.vala:97: new position = %f", new_time_position * 1000);
- _dynamic_PositionSet8 (self->priv->_mpris_player, (gint32) new_time_position, &_inner_error_);
+ g_debug ("mpris-controller.vala:93: new position = %f", new_time_position * 1000);
+ _dynamic_PositionSet6 (self->priv->_mpris_player, (gint32) new_time_position, &_inner_error_);
if (_inner_error_ != NULL) {
_g_free0 (time_value);
_g_hash_table_unref0 (data);
@@ -484,18 +401,6 @@ void mpris_controller_set_position (MprisController* self, double position) {
g_clear_error (&_inner_error_);
return;
}
- scrub = (_tmp0_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_SCRUB), IS_SCRUB_MENUITEM (_tmp0_) ? ((ScrubMenuitem*) _tmp0_) : NULL);
- _tmp1_ = _dynamic_PositionGet9 (self->priv->_mpris_player, &_inner_error_);
- if (_inner_error_ != NULL) {
- _g_object_unref0 (scrub);
- _g_free0 (time_value);
- _g_hash_table_unref0 (data);
- g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
- g_clear_error (&_inner_error_);
- return;
- }
- scrub_menuitem_update_position (scrub, _tmp1_);
- _g_object_unref0 (scrub);
_g_free0 (time_value);
_g_hash_table_unref0 (data);
}
@@ -515,17 +420,15 @@ static void mpris_controller_onStatusChange (MprisController* self, DBusGProxy*
gint play_state;
GHashTable* ht;
GValue v = {0};
- GeeHashSet* _tmp1_;
PlayerItem* _tmp0_;
- GeeHashSet* _tmp3_;
- PlayerItem* _tmp2_;
+ GeeHashSet* _tmp1_;
g_return_if_fail (self != NULL);
g_return_if_fail (mpris_client != NULL);
- g_debug ("mpris-controller.vala:110: onStatusChange - signal received");
+ g_debug ("mpris-controller.vala:104: onStatusChange - signal received");
status = st;
ar = (GValueArray*) status;
play_state = g_value_get_int (g_value_array_get_nth (ar, (guint) 0));
- g_debug ("mpris-controller.vala:114: onStatusChange - play state %i", play_state);
+ g_debug ("mpris-controller.vala:108: onStatusChange - play state %i", play_state);
ht = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free);
g_value_init (&v, G_TYPE_INT);
g_value_set_int (&v, play_state);
@@ -533,15 +436,12 @@ static void mpris_controller_onStatusChange (MprisController* self, DBusGProxy*
player_item_update (_tmp0_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_TRANSPORT), ht, _tmp1_ = transport_menuitem_attributes_format ());
_g_object_unref0 (_tmp1_);
_g_object_unref0 (_tmp0_);
- player_item_update (_tmp2_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_SCRUB), ht, _tmp3_ = scrub_menuitem_attributes_format ());
- _g_object_unref0 (_tmp3_);
- _g_object_unref0 (_tmp2_);
G_IS_VALUE (&v) ? (g_value_unset (&v), NULL) : NULL;
_g_hash_table_unref0 (ht);
}
-static void _dynamic_GetStatus10 (DBusGProxy* self, MprisControllerstatus* result, GError** error) {
+static void _dynamic_GetStatus7 (DBusGProxy* self, MprisControllerstatus* result, GError** error) {
GValueArray* dbus_result;
dbus_g_proxy_call (self, "GetStatus", error, G_TYPE_INVALID, dbus_g_type_get_struct ("GValueArray", G_TYPE_INT, G_TYPE_INT, G_TYPE_INT, G_TYPE_INT, G_TYPE_INVALID), &dbus_result, G_TYPE_INVALID);
if (*error) {
@@ -554,91 +454,36 @@ static void _dynamic_GetStatus10 (DBusGProxy* self, MprisControllerstatus* resul
}
-static GHashTable* _dynamic_GetMetadata11 (DBusGProxy* self, GError** error) {
- GHashTable* result;
- dbus_g_proxy_call (self, "GetMetadata", error, G_TYPE_INVALID, dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_VALUE), &result, G_TYPE_INVALID);
- if (*error) {
- return NULL;
- }
- return result;
-}
-
-
-static gint32 _dynamic_PositionGet12 (DBusGProxy* self, GError** error) {
- gint32 result;
- dbus_g_proxy_call (self, "PositionGet", error, G_TYPE_INVALID, G_TYPE_INT, &result, G_TYPE_INVALID);
- if (*error) {
- return 0;
- }
- return result;
-}
-
-
static void mpris_controller_onTrackChange (MprisController* self, DBusGProxy* mpris_client, GHashTable* ht) {
- GError * _inner_error_;
- GeeHashSet* _tmp1_;
PlayerItem* _tmp0_;
- GeeHashSet* _tmp3_;
- PlayerItem* _tmp2_;
- MprisControllerstatus _tmp4_ = {0};
+ GeeHashSet* _tmp1_;
+ MprisControllerstatus _tmp2_ = {0};
MprisControllerstatus st;
gint play_state;
- PlayerItem* _tmp5_;
- ScrubMenuitem* scrub;
- GHashTable* _tmp6_;
- GeeHashSet* _tmp9_;
- GHashTable* _tmp8_;
- PlayerItem* _tmp7_;
- GeeHashSet* _tmp11_;
- PlayerItem* _tmp10_;
- gint32 _tmp12_;
+ PlayerItem* _tmp3_;
+ GeeHashSet* _tmp4_;
+ GError * _inner_error_ = NULL;
g_return_if_fail (self != NULL);
g_return_if_fail (mpris_client != NULL);
g_return_if_fail (ht != NULL);
- _inner_error_ = NULL;
- g_debug ("mpris-controller.vala:125: onTrackChange");
+ g_debug ("mpris-controller.vala:118: onTrackChange");
player_item_reset (_tmp0_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_METADATA), _tmp1_ = metadata_menuitem_attributes_format ());
_g_object_unref0 (_tmp1_);
_g_object_unref0 (_tmp0_);
- player_item_reset (_tmp2_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_SCRUB), _tmp3_ = scrub_menuitem_attributes_format ());
- _g_object_unref0 (_tmp3_);
- _g_object_unref0 (_tmp2_);
- st = (_dynamic_GetStatus10 (self->priv->_mpris_player, &_tmp4_, &_inner_error_), _tmp4_);
+ st = (_dynamic_GetStatus7 (self->priv->_mpris_player, &_tmp2_, &_inner_error_), _tmp2_);
if (_inner_error_ != NULL) {
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
g_clear_error (&_inner_error_);
return;
}
play_state = (gint) st.playback;
- g_debug ("mpris-controller.vala:133: GetStatusChange, about to update scrub with" \
+ g_debug ("mpris-controller.vala:124: GetStatusChange, about to update scrub with" \
" play state - %i", play_state);
- scrub = (_tmp5_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_SCRUB), IS_SCRUB_MENUITEM (_tmp5_) ? ((ScrubMenuitem*) _tmp5_) : NULL);
- scrub_menuitem_update_playstate (scrub, play_state);
- _tmp6_ = _dynamic_GetMetadata11 (self->priv->_mpris_player, &_inner_error_);
- if (_inner_error_ != NULL) {
- _g_object_unref0 (scrub);
- g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
- g_clear_error (&_inner_error_);
- return;
- }
- player_item_update (_tmp7_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_SCRUB), _tmp8_ = _tmp6_, _tmp9_ = scrub_menuitem_attributes_format ());
- _g_object_unref0 (_tmp9_);
- _g_hash_table_unref0 (_tmp8_);
- _g_object_unref0 (_tmp7_);
- player_item_update (_tmp10_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_METADATA), ht, _tmp11_ = metadata_menuitem_attributes_format ());
- _g_object_unref0 (_tmp11_);
- _g_object_unref0 (_tmp10_);
- g_debug ("mpris-controller.vala:141: about to update the duration on the scrub b" \
+ player_item_update (_tmp3_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_METADATA), ht, _tmp4_ = metadata_menuitem_attributes_format ());
+ _g_object_unref0 (_tmp4_);
+ _g_object_unref0 (_tmp3_);
+ g_debug ("mpris-controller.vala:128: about to update the duration on the scrub b" \
"ar");
- _tmp12_ = _dynamic_PositionGet12 (self->priv->_mpris_player, &_inner_error_);
- if (_inner_error_ != NULL) {
- _g_object_unref0 (scrub);
- g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
- g_clear_error (&_inner_error_);
- return;
- }
- scrub_menuitem_update_position (scrub, _tmp12_);
- _g_object_unref0 (scrub);
}
@@ -729,11 +574,11 @@ static GObject * mpris_controller_constructor (GType type, guint n_construct_pro
self = MPRIS_CONTROLLER (obj);
_inner_error_ = NULL;
{
- DBusGProxy* _tmp4_;
- char* _tmp3_;
char* _tmp2_;
- char* _tmp6_;
+ char* _tmp3_;
+ DBusGProxy* _tmp4_;
char* _tmp5_;
+ char* _tmp6_;
{
DBusGConnection* _tmp0_;
DBusGConnection* _tmp1_;