fix theme a bit, get metadata when status changes

SVN revision: 48494
This commit is contained in:
Hannes Janetzek 2010-04-30 22:05:54 +00:00
parent 73a8336f3f
commit 2d9d055dcc
2 changed files with 916 additions and 953 deletions

View File

@ -169,13 +169,14 @@ collections
text_class:"empris";
font:"Sans:style=Mono";
size:10;
min:1 1;
min:0 1;
align:0.50 0.50;
}
}
description
{
state:"hidden" 0.00;
inherit: "default" 0.0;
visible:0;
rel1
{
@ -189,21 +190,11 @@ collections
offset:-1 -3;
to:"item_clip";
}
color2:0 0 0 96;
color3:0 0 0 32;
text
{
text:"";
text_class:"empris";
font:"Sans:style=Mono";
size:10;
min:1 1;
align:0.50 0.50;
}
}
description
{
state:"visible" 0.00;
inherit: "default" 0.0;
visible:1;
rel1
{
@ -217,17 +208,6 @@ collections
offset:-1 -3;
to:"item_clip";
}
color2:0 0 0 96;
color3:0 0 0 32;
text
{
text:"";
text_class:"empris";
font:"Sans:style=Mono";
size:10;
min:1 1;
align:0.50 0.50;
}
}
}
part
@ -261,13 +241,14 @@ collections
text_class:"empris";
font:"Sans:style=Mono";
size:9;
min:1 1;
min:0 1;
align:0.50 0.50;
}
}
description
{
state:"hidden" 0.00;
inherit: "default" 0.0;
visible:0;
rel1
{
@ -281,21 +262,11 @@ collections
offset:-1 -3;
to:"item_clip";
}
color2:0 0 0 96;
color3:0 0 0 32;
text
{
text:"";
text_class:"empris";
font:"Sans:style=Mono";
size:9;
min:1 1;
align:0.50 0.50;
}
}
description
{
state:"visible" 0.00;
inherit: "default" 0.0;
visible:1;
rel1
{
@ -309,17 +280,6 @@ collections
offset:-1 -3;
to:"item_clip";
}
color2:0 0 0 96;
color3:0 0 0 32;
text
{
text:"";
text_class:"empris";
font:"Sans:style=Mono";
size:9;
min:1 1;
align:0.50 0.50;
}
}
}
part
@ -596,7 +556,7 @@ collections
{
state:"default" 0.00;
visible:1;
min:200 45;
min:200 35;
rel1
{
relative:0.00 0.00;

View File

@ -25,6 +25,8 @@ struct _Instance
Config_Item *ci;
E_Gadcon_Popup *popup;
int cur_track;
/* E_DBus_Signal_Handler *cb_tracklist_change = NULL; */
E_DBus_Signal_Handler *cb_player_track_change;
E_DBus_Signal_Handler *cb_player_status_change;
@ -649,7 +651,6 @@ _dbus_send_msg_int(const char *path, const char *method,
dbus_message_append_args(msg,
DBUS_TYPE_INT32, &num,
DBUS_TYPE_INVALID);
pnd = e_dbus_message_send(conn, msg, _cb, -1, data);
dbus_message_unref(msg);
@ -695,6 +696,8 @@ _dbus_cb_status_change(void *data, DBusMessage *msg)
/* XXX audacious.. */
_dbus_send_msg("/Player", "GetStatus", _dbus_cb_get_status, data);
}
_dbus_send_msg("/TrackList", "GetCurrentTrack", _dbus_cb_current_track, data);
}
static void