diff options
Diffstat (limited to 'src/transport-menu-item.c')
-rw-r--r-- | src/transport-menu-item.c | 39 |
1 files changed, 25 insertions, 14 deletions
diff --git a/src/transport-menu-item.c b/src/transport-menu-item.c index d6a66a2..37a63d9 100644 --- a/src/transport-menu-item.c +++ b/src/transport-menu-item.c @@ -1,4 +1,4 @@ -/* transport-menu-item.c generated by valac 0.10.0, the Vala compiler +/* transport-menu-item.c generated by valac 0.11.2, the Vala compiler * generated from transport-menu-item.vala, do not modify */ /* @@ -136,15 +136,14 @@ GType player_controller_get_type (void) G_GNUC_CONST; TransportMenuitem* transport_menuitem_new (PlayerController* parent); TransportMenuitem* transport_menuitem_construct (GType object_type, PlayerController* parent); void transport_menuitem_change_play_state (TransportMenuitem* self, TransportMenuitemstate update); -static void transport_menuitem_real_handle_event (DbusmenuMenuitem* base, const char* name, GValue* input_value, guint timestamp); +static void transport_menuitem_real_handle_event (DbusmenuMenuitem* base, const gchar* name, GValue* input_value, guint timestamp); PlayerController* player_item_get_owner (PlayerItem* self); -const char* player_controller_get_name (PlayerController* self); +const gchar* player_controller_get_name (PlayerController* self); GType mpris2_controller_get_type (void) G_GNUC_CONST; void mpris2_controller_transport_update (Mpris2Controller* self, TransportMenuitemaction command); GeeHashSet* transport_menuitem_attributes_format (void); - GType transport_menuitem_action_get_type (void) { static volatile gsize transport_menuitem_action_type_id__volatile = 0; if (g_once_init_enter (&transport_menuitem_action_type_id__volatile)) { @@ -170,7 +169,7 @@ GType transport_menuitem_state_get_type (void) { TransportMenuitem* transport_menuitem_construct (GType object_type, PlayerController* parent) { - TransportMenuitem * self; + TransportMenuitem * self = NULL; g_return_val_if_fail (parent != NULL, NULL); self = (TransportMenuitem*) g_object_new (object_type, "item-type", DBUSMENU_TRANSPORT_MENUITEM_TYPE, "owner", parent, NULL); dbusmenu_menuitem_property_set_int ((DbusmenuMenuitem*) self, DBUSMENU_TRANSPORT_MENUITEM_PLAY_STATE, 1); @@ -191,24 +190,37 @@ void transport_menuitem_change_play_state (TransportMenuitem* self, TransportMen } -static void transport_menuitem_real_handle_event (DbusmenuMenuitem* base, const char* name, GValue* input_value, guint timestamp) { +static void transport_menuitem_real_handle_event (DbusmenuMenuitem* base, const gchar* name, GValue* input_value, guint timestamp) { TransportMenuitem * self; + gint _tmp0_; gint input; - char* _tmp0_; + gchar* _tmp1_ = NULL; + gchar* _tmp2_; + PlayerController* _tmp3_ = NULL; + const gchar* _tmp4_ = NULL; + PlayerController* _tmp5_ = NULL; self = (TransportMenuitem*) base; g_return_if_fail (name != NULL); - input = g_value_get_int (input_value); - g_debug ("transport-menu-item.vala:53: handle_event with value %s", _tmp0_ = g_strdup_printf ("%i", input)); - _g_free0 (_tmp0_); - g_debug ("transport-menu-item.vala:54: transport owner name = %s", player_controller_get_name (player_item_get_owner ((PlayerItem*) self))); - mpris2_controller_transport_update (player_item_get_owner ((PlayerItem*) self)->mpris_bridge, (TransportMenuitemaction) input); + _tmp0_ = g_value_get_int (input_value); + input = _tmp0_; + _tmp1_ = g_strdup_printf ("%i", input); + _tmp2_ = _tmp1_; + g_debug ("transport-menu-item.vala:53: handle_event with value %s", _tmp2_); + _g_free0 (_tmp2_); + _tmp3_ = player_item_get_owner ((PlayerItem*) self); + _tmp4_ = player_controller_get_name (_tmp3_); + g_debug ("transport-menu-item.vala:54: transport owner name = %s", _tmp4_); + _tmp5_ = player_item_get_owner ((PlayerItem*) self); + mpris2_controller_transport_update (_tmp5_->mpris_bridge, (TransportMenuitemaction) input); } GeeHashSet* transport_menuitem_attributes_format (void) { GeeHashSet* result = NULL; + GeeHashSet* _tmp0_ = NULL; GeeHashSet* attrs; - attrs = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL); + _tmp0_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL); + attrs = _tmp0_; gee_abstract_collection_add ((GeeAbstractCollection*) attrs, DBUSMENU_TRANSPORT_MENUITEM_PLAY_STATE); result = attrs; return result; @@ -238,4 +250,3 @@ GType transport_menuitem_get_type (void) { - |