From f54e4a44609b6bf98f453ea0f1670a0a9454a8c1 Mon Sep 17 00:00:00 2001 From: coderkun Date: Sat, 12 Mar 2016 13:06:41 +0100 Subject: [PATCH] reenable Avahi/zeroconf --- mcg/mcgGtk.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mcg/mcgGtk.py b/mcg/mcgGtk.py index c612230..6973d40 100755 --- a/mcg/mcgGtk.py +++ b/mcg/mcgGtk.py @@ -12,7 +12,7 @@ __status__ = "Development" import gi gi.require_version('Gtk', '3.0') -#gi.require_version('Avahi', '0.6') +gi.require_version('Avahi', '0.6') try: import keyring use_keyring = True @@ -26,7 +26,7 @@ import threading import urllib from gi.repository import Gio, Gtk, Gdk, GObject, GdkPixbuf, GLib -#from gi.repository import Avahi +from gi.repository import Avahi import mcg @@ -657,8 +657,8 @@ class ConnectionPanel(Panel, Gtk.VBox): connection_grid.attach_next_to(self._image_dir_entry, image_dir_label, Gtk.PositionType.BOTTOM, 1, 1) # Zeroconf provider - #self._zeroconf_provider = ZeroconfProvider() - #self._zeroconf_provider.connect_signal(ZeroconfProvider.SIGNAL_SERVICE_NEW, self.on_new_service) + self._zeroconf_provider = ZeroconfProvider() + self._zeroconf_provider.connect_signal(ZeroconfProvider.SIGNAL_SERVICE_NEW, self.on_new_service) # Signals self._zeroconf_list.get_selection().connect('changed', self.on_service_selected)