Commit 04cc0ad9 authored by Rafaël Carré's avatar Rafaël Carré
Browse files

Restore icon click to update status for D-Bus controller

parent a210fb14
...@@ -89,7 +89,14 @@ def Stop(widget): ...@@ -89,7 +89,14 @@ def Stop(widget):
#update status display #update status display
def update(widget): def update(widget):
item = tracklist.GetMetadata(tracklist.GetCurrentTrack())
vol.set_value(player.VolumeGet()) vol.set_value(player.VolumeGet())
try:
a = item["artist"]
except: a = ""
if a == "":
a = item["URI"]
l_item.set_text(a)
GetPlayStatus(0) GetPlayStatus(0)
#get playing status from remote vlc #get playing status from remote vlc
...@@ -204,7 +211,8 @@ exp.connect('activate', expander) ...@@ -204,7 +211,8 @@ exp.connect('activate', expander)
vol.connect('change-value', volchange) vol.connect('change-value', volchange)
vol.connect('scroll-event', volchange) vol.connect('scroll-event', volchange)
time_s.connect('adjust-bounds', timechange) time_s.connect('adjust-bounds', timechange)
vlcicon.set_events(gtk.gdk.BUTTON_PRESS_MASK)
vlcicon.connect('button_press_event', icon_clicked)
time_s.set_update_policy(gtk.UPDATE_DISCONTINUOUS) time_s.set_update_policy(gtk.UPDATE_DISCONTINUOUS)
gobject.timeout_add( 2000, timeset) gobject.timeout_add( 2000, timeset)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment