some fixes and continue tray work

This commit is contained in:
guinux
2013-02-11 15:45:24 +01:00
parent 0adb27f955
commit 91f3411f28
6 changed files with 41 additions and 12 deletions

View File

@@ -4,6 +4,9 @@
from gi.repository import Gtk
from subprocess import Popen
from pamac import transaction
import dbus
bus = dbus.SystemBus()
class Tray:
def __init__(self, icon, info):
@@ -66,6 +69,8 @@ def do_refresh():
transaction.get_handle()
transaction.Refresh(reply_handler = handle_reply, error_handler = handle_error, timeout = 2000*1000)
bus.add_signal_receiver(handle_reply, dbus_interface = "org.manjaro.pamac", signal_name = "EmitAvailableUpdates")
if __name__ == "__main__":
do_refresh()
Gtk.main()