diff --git a/empris.edc b/empris.edc index 732c7f5..6e07f78 100644 --- a/empris.edc +++ b/empris.edc @@ -8,11 +8,11 @@ color_classes images { -image:"next.png" COMP; -image:"pause.png" COMP; -image:"play.png" COMP; -image:"prev.png" COMP; -image:"stop.png" COMP; + image:"next.png" COMP; + image:"pause.png" COMP; + image:"play.png" COMP; + image:"prev.png" COMP; + image:"stop.png" COMP; } data @@ -24,961 +24,921 @@ styles } /* -Available labels: -empris.status -empris.artist -empris.title -empris.album -empris.track -empris.date -empris.genre -empris.composer -empris.time -empris.file + Available labels: + empris.status + empris.artist + empris.title + empris.album + empris.track + empris.date + empris.genre + empris.composer + empris.time + empris.file */ collections { - group - { - name:"modules/empris/main"; - parts + group { - part - { - name:"base"; - type:RECT; - mouse_events:0; - description + name:"modules/empris/main"; + parts { - state:"default" 0.00; - visible:1; - rel1 - { - relative:0.00 0.00; - offset:0 0; - } - rel2 - { - relative:1.00 1.00; - offset:-1 -1; - } + part + { + name:"base"; + type:RECT; + mouse_events:0; + description + { + state:"default" 0.00; + visible:1; + rel1 + { + relative:0.00 0.00; + offset:0 0; + } + rel2 + { + relative:1.00 1.00; + offset:-1 -1; + } + } + } + part + { + name:"item_clip"; + type:RECT; + description + { + state:"default" 0.00; + visible:1; + rel1 + { + relative:0.00 0.00; + offset:0 0; + } + rel2 + { + relative:1.00 1.00; + offset:-1 -1; + } + color:255 255 255 0; + } + description + { + state:"hide" 0.00; + visible:1; + rel1 + { + relative:0.00 -1.00; + offset:0 0; + } + rel2 + { + relative:1.00 0.00; + offset:-1 -1; + } + color:255 255 255 0; + } + } + part + { + name:"controls_clip"; + type:RECT; + description + { + state:"default" 0.00; + visible:1; + rel1 + { + relative:0.00 1.00; + offset:0 0; + } + rel2 + { + relative:1.00 2.00; + offset:-1 -1; + } + color:255 255 255 0; + } + description + { + state:"show" 0.00; + visible:1; + rel1 + { + relative:0.00 0.00; + offset:0 0; + } + rel2 + { + relative:1.00 1.00; + offset:-1 -1; + } + color:255 255 255 0; + } + } + part + { + name:"empris.artist"; + type:TEXT; + effect:OUTLINE_SOFT_SHADOW; + clip_to:"base"; + mouse_events:0; + description + { + state:"default" 0.00; + visible:1; + rel1 + { + relative:0.00 0.00; + offset:0 4; + to:"item_clip"; + } + rel2 + { + relative:1.00 0.50; + 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:0 1; + align:0.50 0.50; + } + } + description + { + state:"hidden" 0.00; + inherit: "default" 0.0; + visible:0; + rel1 + { + relative:0.00 0.00; + offset:0 4; + to:"item_clip"; + } + rel2 + { + relative:1.00 0.50; + offset:-1 -3; + to:"item_clip"; + } + } + description + { + state:"visible" 0.00; + inherit: "default" 0.0; + visible:1; + rel1 + { + relative:0.00 0.00; + offset:0 4; + to:"item_clip"; + } + rel2 + { + relative:1.00 0.50; + offset:-1 -3; + to:"item_clip"; + } + } + } + part + { + name:"empris.title"; + type:TEXT; + effect:OUTLINE_SOFT_SHADOW; + clip_to:"base"; + mouse_events:0; + description + { + state:"default" 0.00; + visible:1; + rel1 + { + relative:0.00 0.50; + offset:0 4; + to:"item_clip"; + } + rel2 + { + relative:1.00 1.00; + 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:0 1; + align:0.50 0.50; + } + } + description + { + state:"hidden" 0.00; + inherit: "default" 0.0; + visible:0; + rel1 + { + relative:0.00 0.50; + offset:0 4; + to:"item_clip"; + } + rel2 + { + relative:1.00 1.00; + offset:-1 -3; + to:"item_clip"; + } + } + description + { + state:"visible" 0.00; + inherit: "default" 0.0; + visible:1; + rel1 + { + relative:0.00 0.50; + offset:0 4; + to:"item_clip"; + } + rel2 + { + relative:1.00 1.00; + offset:-1 -3; + to:"item_clip"; + } + } + } + part + { + name:"empris.previous"; + type:IMAGE; + mouse_events:1; + repeat_events:1; + description + { + state:"default" 0.0; + visible:1; + aspect:1 1; + align:0.0 0.5; + rel1 + { + relative:0.0 0.0; + offset:0 0; + to:"controls_clip"; + } + rel2 + { + relative:0.0 1.0; + to:"controls_clip"; + } + image + { + normal:"prev.png"; + } + } + } + part + { + name:"empris.play"; + type:IMAGE; + mouse_events:1; + repeat_events:1; + description + { + state:"default" 0.0; + visible:1; + aspect:1 1; + align:0.0 0.5; + rel1 + { + relative:1.0 0.0; + offset:0 0; + to_x:"empris.previous"; + to_y:"controls_clip"; + } + rel2 + { + relative:1.0 1.0; + to_x:"empris.previous"; + to_y:"controls_clip"; + } + image + { + normal:"play.png"; + } + } + } + part + { + name:"empris.pause"; + type:IMAGE; + mouse_events:1; + repeat_events:1; + description + { + state:"default" 0.0; + visible:1; + aspect:1 1; + align:0.0 0.5; + rel1 + { + relative:1.0 0.0; + offset:0 0; + to_x:"empris.play"; + to_y:"controls_clip"; + } + rel2 + { + relative:1.0 1.0; + to_x:"empris.play"; + to_y:"controls_clip"; + } + image + { + normal:"pause.png"; + } + } + } + part + { + name:"empris.stop"; + type:IMAGE; + mouse_events:1; + repeat_events:1; + description + { + state:"default" 0.0; + visible:1; + aspect:1 1; + align:0.0 0.5; + rel1 + { + relative:1.0 0.0; + offset:0 0; + to_x:"empris.pause"; + to_y:"controls_clip"; + } + rel2 + { + relative:1.0 1.0; + to_x:"empris.pause"; + to_y:"controls_clip"; + } + image + { + normal:"stop.png"; + } + } + } + part + { + name:"empris.next"; + type:IMAGE; + mouse_events:1; + repeat_events:1; + description + { + state:"default" 0.0; + visible:1; + aspect:1 1; + align:0.0 0.5; + rel1 + { + relative:1.0 0.0; + offset:0 0; + to_x:"empris.stop"; + to_y:"controls_clip"; + } + rel2 + { + relative:1.0 1.0; + to_x:"empris.stop"; + to_y:"controls_clip"; + } + image + { + normal:"next.png"; + } + } + } + part + { + name:"event_grab"; + type:RECT; + repeat_events:1; + description + { + state:"default" 0.00; + visible:1; + color:0 0 0 0; + rel1 + { + relative:0.00 0.00; + offset:0 0; + } + rel2 + { + relative:1.00 1.00; + offset:-1 -1; + } + } + } } - } - part - { - name:"item_clip"; - type:RECT; - description + programs { - state:"default" 0.00; - visible:1; - rel1 - { - relative:0.00 0.00; - offset:0 0; - } - rel2 - { - relative:1.00 1.00; - offset:-1 -1; - } - color:255 255 255 0; + program + { + name:"show_controls"; + signal:"mouse,in"; + source:"event_grab"; + action:STATE_SET "show" 0.0; + transition:LINEAR 0.1; + target:"controls_clip"; + } + program + { + name:"show_controls2"; + signal:"mouse,in"; + source:"event_grab"; + action:STATE_SET "hide" 0.0; + transition:LINEAR 0.1; + target:"item_clip"; + } + program + { + name:"wait"; + action:STATE_SET "hide" 0.0; + transition:LINEAR 2; + target:"item_clip"; + after:"hide_controls"; + after:"hide_controls2"; + } + program + { + name:"hide_controls"; + signal:"mouse,out"; + source:"event_grab"; + action:STATE_SET "default" 0.0; + transition:LINEAR 0.1; + target:"controls_clip"; + } + program + { + name:"hide_controls2"; + signal:"mouse,out"; + source:"event_grab"; + action:STATE_SET "default" 0.0; + transition:LINEAR 0.1; + target:"item_clip"; + } + program + { + name:"mouse_play"; + signal:"mouse,clicked,1"; + source:"empris.play"; + action:SIGNAL_EMIT "empris,play" ""; + } + program + { + name:"mouse_pause"; + signal:"mouse,clicked,1"; + source:"empris.pause"; + action:SIGNAL_EMIT "empris,pause" ""; + } + program + { + name:"mouse_stop"; + signal:"mouse,clicked,1"; + source:"empris.stop"; + action:SIGNAL_EMIT "empris,stop" ""; + } + program + { + name:"mouse_previous"; + signal:"mouse,clicked,1"; + source:"empris.previous"; + action:SIGNAL_EMIT "empris,previous" ""; + } + program + { + name:"mouse_next"; + signal:"mouse,clicked,1"; + source:"empris.next"; + action:SIGNAL_EMIT "empris,next" ""; + } } - description - { - state:"hide" 0.00; - visible:1; - rel1 - { - relative:0.00 -1.00; - offset:0 0; - } - rel2 - { - relative:1.00 0.00; - offset:-1 -1; - } - color:255 255 255 0; - } - } - part - { - name:"controls_clip"; - type:RECT; - description - { - state:"default" 0.00; - visible:1; - rel1 - { - relative:0.00 1.00; - offset:0 0; - } - rel2 - { - relative:1.00 2.00; - offset:-1 -1; - } - color:255 255 255 0; - } - description - { - state:"show" 0.00; - visible:1; - rel1 - { - relative:0.00 0.00; - offset:0 0; - } - rel2 - { - relative:1.00 1.00; - offset:-1 -1; - } - color:255 255 255 0; - } - } - part - { - name:"empris.artist"; - type:TEXT; - effect:OUTLINE_SOFT_SHADOW; - clip_to:"base"; - mouse_events:0; - description - { - state:"default" 0.00; - visible:1; - rel1 - { - relative:0.00 0.00; - offset:0 4; - to:"item_clip"; - } - rel2 - { - relative:1.00 0.50; - 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:"hidden" 0.00; - visible:0; - rel1 - { - relative:0.00 0.00; - offset:0 4; - to:"item_clip"; - } - rel2 - { - relative:1.00 0.50; - 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; - visible:1; - rel1 - { - relative:0.00 0.00; - offset:0 4; - to:"item_clip"; - } - rel2 - { - relative:1.00 0.50; - 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 - { - name:"empris.title"; - type:TEXT; - effect:OUTLINE_SOFT_SHADOW; - clip_to:"base"; - mouse_events:0; - description - { - state:"default" 0.00; - visible:1; - rel1 - { - relative:0.00 0.50; - offset:0 4; - to:"item_clip"; - } - rel2 - { - relative:1.00 1.00; - 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:"hidden" 0.00; - visible:0; - rel1 - { - relative:0.00 0.50; - offset:0 4; - to:"item_clip"; - } - rel2 - { - relative:1.00 1.00; - 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; - visible:1; - rel1 - { - relative:0.00 0.50; - offset:0 4; - to:"item_clip"; - } - rel2 - { - relative:1.00 1.00; - 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 - { - name:"empris.previous"; - type:IMAGE; - mouse_events:1; - repeat_events:1; - description - { - state:"default" 0.0; - visible:1; - aspect:1 1; - align:0.0 0.5; - rel1 - { - relative:0.0 0.0; - offset:0 0; - to:"controls_clip"; - } - rel2 - { - relative:0.0 1.0; - to:"controls_clip"; - } - image - { - normal:"prev.png"; - } - } - } - part - { - name:"empris.play"; - type:IMAGE; - mouse_events:1; - repeat_events:1; - description - { - state:"default" 0.0; - visible:1; - aspect:1 1; - align:0.0 0.5; - rel1 - { - relative:1.0 0.0; - offset:0 0; - to_x:"empris.previous"; - to_y:"controls_clip"; - } - rel2 - { - relative:1.0 1.0; - to_x:"empris.previous"; - to_y:"controls_clip"; - } - image - { - normal:"play.png"; - } - } - } - part - { - name:"empris.pause"; - type:IMAGE; - mouse_events:1; - repeat_events:1; - description - { - state:"default" 0.0; - visible:1; - aspect:1 1; - align:0.0 0.5; - rel1 - { - relative:1.0 0.0; - offset:0 0; - to_x:"empris.play"; - to_y:"controls_clip"; - } - rel2 - { - relative:1.0 1.0; - to_x:"empris.play"; - to_y:"controls_clip"; - } - image - { - normal:"pause.png"; - } - } - } - part - { - name:"empris.stop"; - type:IMAGE; - mouse_events:1; - repeat_events:1; - description - { - state:"default" 0.0; - visible:1; - aspect:1 1; - align:0.0 0.5; - rel1 - { - relative:1.0 0.0; - offset:0 0; - to_x:"empris.pause"; - to_y:"controls_clip"; - } - rel2 - { - relative:1.0 1.0; - to_x:"empris.pause"; - to_y:"controls_clip"; - } - image - { - normal:"stop.png"; - } - } - } - part - { - name:"empris.next"; - type:IMAGE; - mouse_events:1; - repeat_events:1; - description - { - state:"default" 0.0; - visible:1; - aspect:1 1; - align:0.0 0.5; - rel1 - { - relative:1.0 0.0; - offset:0 0; - to_x:"empris.stop"; - to_y:"controls_clip"; - } - rel2 - { - relative:1.0 1.0; - to_x:"empris.stop"; - to_y:"controls_clip"; - } - image - { - normal:"next.png"; - } - } - } - part - { - name:"event_grab"; - type:RECT; - repeat_events:1; - description - { - state:"default" 0.00; - visible:1; - color:0 0 0 0; - rel1 - { - relative:0.00 0.00; - offset:0 0; - } - rel2 - { - relative:1.00 1.00; - offset:-1 -1; - } - } - } } - programs + group { - program - { - name:"show_controls"; - signal:"mouse,in"; - source:"event_grab"; - action:STATE_SET "show" 0.0; - transition:LINEAR 0.1; - target:"controls_clip"; - } - program - { - name:"show_controls2"; - signal:"mouse,in"; - source:"event_grab"; - action:STATE_SET "hide" 0.0; - transition:LINEAR 0.1; - target:"item_clip"; - } - program - { - name:"wait"; - action:STATE_SET "hide" 0.0; - transition:LINEAR 2; - target:"item_clip"; - after:"hide_controls"; - after:"hide_controls2"; - } - program - { - name:"hide_controls"; - signal:"mouse,out"; - source:"event_grab"; - action:STATE_SET "default" 0.0; - transition:LINEAR 0.1; - target:"controls_clip"; - } - program - { - name:"hide_controls2"; - signal:"mouse,out"; - source:"event_grab"; - action:STATE_SET "default" 0.0; - transition:LINEAR 0.1; - target:"item_clip"; - } - program - { - name:"mouse_play"; - signal:"mouse,clicked,1"; - source:"empris.play"; - action:SIGNAL_EMIT "empris,play" ""; - } - program - { - name:"mouse_pause"; - signal:"mouse,clicked,1"; - source:"empris.pause"; - action:SIGNAL_EMIT "empris,pause" ""; - } - program - { - name:"mouse_stop"; - signal:"mouse,clicked,1"; - source:"empris.stop"; - action:SIGNAL_EMIT "empris,stop" ""; - } - program - { - name:"mouse_previous"; - signal:"mouse,clicked,1"; - source:"empris.previous"; - action:SIGNAL_EMIT "empris,previous" ""; - } - program - { - name:"mouse_next"; - signal:"mouse,clicked,1"; - source:"empris.next"; - action:SIGNAL_EMIT "empris,next" ""; - } + name:"modules/empris/popup"; + parts + { + part + { + name:"base"; + type:RECT; + mouse_events:0; + description + { + state:"default" 0.00; + visible:1; + min:200 35; + rel1 + { + relative:0.00 0.00; + offset:5 5; + } + rel2 + { + relative:1.00 1.00; + offset:-5 -5; + } + } + } + part + { + name:"labels"; + type:RECT; + mouse_events:0; + description + { + state:"default" 0.00; + visible:1; + rel1 + { + relative:0.00 0.00; + offset:0 0; + to:"base"; + } + rel2 + { + relative:0.25 1.00; + offset:0 0; + to:"base"; + } + color:255 255 255 0; + } + } + part + { + name:"values"; + type:RECT; + mouse_events:0; + description + { + state:"default" 0.00; + visible:1; + rel1 + { + relative:0.25 0.00; + offset:0 0; + to:"base"; + } + rel2 + { + relative:1.00 1.00; + offset:0 0; + to:"base"; + } + color:255 255 255 0; + } + } + part + { + name:"item_clip"; + type:RECT; + description + { + state:"default" 0.00; + visible:1; + min:5 5; + rel1 + { + relative:0.00 0.00; + offset:0 0; + } + rel2 + { + relative:1.00 1.00; + offset:-1 -1; + } + color:255 255 255 0; + } + } + part + { + name:"empris.artist_label"; + type:TEXT; + effect:SHADOW; + clip_to:"base"; + description + { + state:"default" 0.00; + visible:1; + align:0.00 0.50; + fixed:1 1; + rel1 + { + relative:-0.00 0.00; + offset:0 0; + to:"labels"; + } + rel2 + { + relative:1.00 0.00; + offset:0 16; + to:"labels"; + } + color:0 0 0 255; + color3:255 255 255 128; + text + { + text:"Artist:"; + text_class:"empris"; + font:"Sans:style=Mono"; + size:10; + min:1 1; + align:1.0 0.50; + } + } + } + part + { + name:"empris.title_label"; + type:TEXT; + effect:SHADOW; + clip_to:"base"; + description + { + state:"default" 0.00; + visible:1; + align:0.00 0.50; + rel1 + { + relative:0.00 1.00; + offset:0 0; + to_x:"labels"; + to_y:"empris.artist_label"; + } + rel2 + { + relative:1.00 1.00; + offset:0 12; + to_x:"labels"; + to_y:"empris.artist_label"; + } + color:0 0 0 255; + color3:255 255 255 128; + text + { + text:"Title:"; + text_class:"empris"; + font:"Sans:style=Mono"; + size:10; + min:1 1; + align:1.0 0.50; + } + } + } + part + { + name:"empris.album_label"; + type:TEXT; + mouse_events:0; + effect:SHADOW; + clip_to:"base"; + description + { + state:"default" 0.00; + visible:1; + align:0.00 0.50; + rel1 + { + relative:0.00 1.00; + offset:0 0; + to_x:"labels"; + to_y:"empris.title_label"; + } + rel2 + { + relative:1.00 1.00; + offset:0 12; + to_x:"labels"; + to_y:"empris.title_label"; + } + color:0 0 0 255; + color3:255 255 255 128; + text + { + text:"Album:"; + text_class:"empris"; + font:"Sans:style=Mono"; + size:10; + min:1 1; + align:1.0 0.50; + } + } + } + part + { + name:"empris.genre_label"; + type:TEXT; + mouse_events:0; + effect:SHADOW; + clip_to:"base"; + description + { + state:"default" 0.00; + visible:1; + align:0.00 0.50; + rel1 + { + relative:0.00 1.00; + offset:0 0; + to_x:"labels"; + to_y:"empris.album_label"; + } + rel2 + { + relative:1.00 1.00; + offset:0 12; + to_x:"labels"; + to_y:"empris.album_label"; + } + color:0 0 0 255; + color3:255 255 255 128; + text + { + text:"Genre:"; + text_class:"empris"; + font:"Sans:style=Mono"; + size:10; + min:1 1; + align:1.0 0.50; + } + } + } + part + { + name:"empris.artist"; + type:TEXT; + effect:NONE; + clip_to:"base"; + description + { + state:"default" 0.00; + visible:1; + align:0.00 0.50; + rel1 + { + relative:0.00 0.00; + offset:0 0; + to_x:"values"; + to_y:"empris.artist_label"; + } + rel2 + { + relative:1.00 1.00; + to_x:"values"; + to_y:"empris.artist_label"; + } + color:0 0 0 255; + text + { + text:""; + text_class:"empris"; + font:"Sans:style=Bold"; + size:10; + min:1 1; + align:0.0 0.50; + } + } + } + part + { + name:"empris.title"; + type:TEXT; + effect:NONE; + clip_to:"base"; + description + { + state:"default" 0.00; + visible:1; + align:0.00 0.50; + rel1 + { + relative:0.00 0.00; + offset:0 0; + to_x:"values"; + to_y:"empris.title_label"; + } + rel2 + { + relative:1.00 1.00; + to_x:"values"; + to_y:"empris.title_label"; + } + color:0 0 0 255; + text + { + text:""; + text_class:"empris"; + font:"Sans:style=Bold"; + size:10; + min:1 1; + align:0.0 0.50; + } + } + } + part + { + name:"empris.album"; + type:TEXT; + effect:NONE; + clip_to:"base"; + description + { + state:"default" 0.00; + visible:1; + align:0.00 0.50; + rel1 + { + relative:0.00 0.00; + offset:0 0; + to_x:"values"; + to_y:"empris.album_label"; + } + rel2 + { + relative:1.00 1.00; + to_x:"values"; + to_y:"empris.album_label"; + } + color:0 0 0 255; + text + { + text:""; + text_class:"empris"; + font:"Sans:style=Bold"; + size:10; + min:1 1; + align:0.0 0.50; + } + } + } + part + { + name:"empris.genre"; + type:TEXT; + effect:NONE; + clip_to:"base"; + description + { + state:"default" 0.00; + visible:1; + align:0.00 0.50; + rel1 + { + relative:0.00 0.00; + offset:0 0; + to_x:"values"; + to_y:"empris.genre_label"; + } + rel2 + { + relative:1.00 1.00; + to_x:"values"; + to_y:"empris.genre_label"; + } + color:0 0 0 255; + text + { + text:""; + text_class:"empris"; + font:"Sans:style=Bold"; + size:10; + min:1 1; + align:0.0 0.50; + } + } + } + } + programs + { + } } - } - group - { - name:"modules/empris/popup"; - parts - { - part - { - name:"base"; - type:RECT; - mouse_events:0; - description - { - state:"default" 0.00; - visible:1; - min:200 45; - rel1 - { - relative:0.00 0.00; - offset:5 5; - } - rel2 - { - relative:1.00 1.00; - offset:-5 -5; - } - } - } - part - { - name:"labels"; - type:RECT; - mouse_events:0; - description - { - state:"default" 0.00; - visible:1; - rel1 - { - relative:0.00 0.00; - offset:0 0; - to:"base"; - } - rel2 - { - relative:0.25 1.00; - offset:0 0; - to:"base"; - } - color:255 255 255 0; - } - } - part - { - name:"values"; - type:RECT; - mouse_events:0; - description - { - state:"default" 0.00; - visible:1; - rel1 - { - relative:0.25 0.00; - offset:0 0; - to:"base"; - } - rel2 - { - relative:1.00 1.00; - offset:0 0; - to:"base"; - } - color:255 255 255 0; - } - } - part - { - name:"item_clip"; - type:RECT; - description - { - state:"default" 0.00; - visible:1; - min:5 5; - rel1 - { - relative:0.00 0.00; - offset:0 0; - } - rel2 - { - relative:1.00 1.00; - offset:-1 -1; - } - color:255 255 255 0; - } - } - part - { - name:"empris.artist_label"; - type:TEXT; - effect:SHADOW; - clip_to:"base"; - description - { - state:"default" 0.00; - visible:1; - align:0.00 0.50; - fixed:1 1; - rel1 - { - relative:-0.00 0.00; - offset:0 0; - to:"labels"; - } - rel2 - { - relative:1.00 0.00; - offset:0 16; - to:"labels"; - } - color:0 0 0 255; - color3:255 255 255 128; - text - { - text:"Artist:"; - text_class:"empris"; - font:"Sans:style=Mono"; - size:10; - min:1 1; - align:1.0 0.50; - } - } - } - part - { - name:"empris.title_label"; - type:TEXT; - effect:SHADOW; - clip_to:"base"; - description - { - state:"default" 0.00; - visible:1; - align:0.00 0.50; - rel1 - { - relative:0.00 1.00; - offset:0 0; - to_x:"labels"; - to_y:"empris.artist_label"; - } - rel2 - { - relative:1.00 1.00; - offset:0 12; - to_x:"labels"; - to_y:"empris.artist_label"; - } - color:0 0 0 255; - color3:255 255 255 128; - text - { - text:"Title:"; - text_class:"empris"; - font:"Sans:style=Mono"; - size:10; - min:1 1; - align:1.0 0.50; - } - } - } - part - { - name:"empris.album_label"; - type:TEXT; - mouse_events:0; - effect:SHADOW; - clip_to:"base"; - description - { - state:"default" 0.00; - visible:1; - align:0.00 0.50; - rel1 - { - relative:0.00 1.00; - offset:0 0; - to_x:"labels"; - to_y:"empris.title_label"; - } - rel2 - { - relative:1.00 1.00; - offset:0 12; - to_x:"labels"; - to_y:"empris.title_label"; - } - color:0 0 0 255; - color3:255 255 255 128; - text - { - text:"Album:"; - text_class:"empris"; - font:"Sans:style=Mono"; - size:10; - min:1 1; - align:1.0 0.50; - } - } - } - part - { - name:"empris.genre_label"; - type:TEXT; - mouse_events:0; - effect:SHADOW; - clip_to:"base"; - description - { - state:"default" 0.00; - visible:1; - align:0.00 0.50; - rel1 - { - relative:0.00 1.00; - offset:0 0; - to_x:"labels"; - to_y:"empris.album_label"; - } - rel2 - { - relative:1.00 1.00; - offset:0 12; - to_x:"labels"; - to_y:"empris.album_label"; - } - color:0 0 0 255; - color3:255 255 255 128; - text - { - text:"Genre:"; - text_class:"empris"; - font:"Sans:style=Mono"; - size:10; - min:1 1; - align:1.0 0.50; - } - } - } - part - { - name:"empris.artist"; - type:TEXT; - effect:NONE; - clip_to:"base"; - description - { - state:"default" 0.00; - visible:1; - align:0.00 0.50; - rel1 - { - relative:0.00 0.00; - offset:0 0; - to_x:"values"; - to_y:"empris.artist_label"; - } - rel2 - { - relative:1.00 1.00; - to_x:"values"; - to_y:"empris.artist_label"; - } - color:0 0 0 255; - text - { - text:""; - text_class:"empris"; - font:"Sans:style=Bold"; - size:10; - min:1 1; - align:0.0 0.50; - } - } - } - part - { - name:"empris.title"; - type:TEXT; - effect:NONE; - clip_to:"base"; - description - { - state:"default" 0.00; - visible:1; - align:0.00 0.50; - rel1 - { - relative:0.00 0.00; - offset:0 0; - to_x:"values"; - to_y:"empris.title_label"; - } - rel2 - { - relative:1.00 1.00; - to_x:"values"; - to_y:"empris.title_label"; - } - color:0 0 0 255; - text - { - text:""; - text_class:"empris"; - font:"Sans:style=Bold"; - size:10; - min:1 1; - align:0.0 0.50; - } - } - } - part - { - name:"empris.album"; - type:TEXT; - effect:NONE; - clip_to:"base"; - description - { - state:"default" 0.00; - visible:1; - align:0.00 0.50; - rel1 - { - relative:0.00 0.00; - offset:0 0; - to_x:"values"; - to_y:"empris.album_label"; - } - rel2 - { - relative:1.00 1.00; - to_x:"values"; - to_y:"empris.album_label"; - } - color:0 0 0 255; - text - { - text:""; - text_class:"empris"; - font:"Sans:style=Bold"; - size:10; - min:1 1; - align:0.0 0.50; - } - } - } - part - { - name:"empris.genre"; - type:TEXT; - effect:NONE; - clip_to:"base"; - description - { - state:"default" 0.00; - visible:1; - align:0.00 0.50; - rel1 - { - relative:0.00 0.00; - offset:0 0; - to_x:"values"; - to_y:"empris.genre_label"; - } - rel2 - { - relative:1.00 1.00; - to_x:"values"; - to_y:"empris.genre_label"; - } - color:0 0 0 255; - text - { - text:""; - text_class:"empris"; - font:"Sans:style=Bold"; - size:10; - min:1 1; - align:0.0 0.50; - } - } - } - } - programs - { - } - } } diff --git a/src/e_mod_main.c b/src/e_mod_main.c index 91909bd..3945d4e 100644 --- a/src/e_mod_main.c +++ b/src/e_mod_main.c @@ -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); @@ -685,7 +686,7 @@ _dbus_cb_status_change(void *data, DBusMessage *msg) DBusMessageIter iter, array; dbus_message_iter_init(msg, &iter); - + if (dbus_message_iter_get_arg_type(&iter) == DBUS_TYPE_STRUCT) { _set_status(data, 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