From f477e86a96a7f18ccdfe90e940038cad50d21fac Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 28 Aug 2019 09:15:50 +1000 Subject: [PATCH] gui: move the dbus client handler bits to the tuhi module This is used by the GUI and by kete and it's just an abstraction of the handling anyway with little actual logic. Let's make this sharable. Signed-off-by: Peter Hutterer --- tuhi/{gui/tuhi.py => dbusclient.py} | 2 +- tuhi/gui/window.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename tuhi/{gui/tuhi.py => dbusclient.py} (99%) diff --git a/tuhi/gui/tuhi.py b/tuhi/dbusclient.py similarity index 99% rename from tuhi/gui/tuhi.py rename to tuhi/dbusclient.py index 6d871dd..eb4ff25 100644 --- a/tuhi/gui/tuhi.py +++ b/tuhi/dbusclient.py @@ -18,7 +18,7 @@ import os import logging import re -logger = logging.getLogger('tuhi.gui.dbus') +logger = logging.getLogger('tuhi.dbusclient') TUHI_DBUS_NAME = 'org.freedesktop.tuhi1' ORG_FREEDESKTOP_TUHI1_MANAGER = 'org.freedesktop.tuhi1.Manager' diff --git a/tuhi/gui/window.py b/tuhi/gui/window.py index 85a11f9..8de588f 100644 --- a/tuhi/gui/window.py +++ b/tuhi/gui/window.py @@ -15,8 +15,8 @@ from gettext import gettext as _ from gi.repository import Gtk, Gio, GLib, GObject from .drawingperspective import DrawingPerspective -from .tuhi import TuhiKeteManager from .config import Config +from tuhi.dbusclient import TuhiKeteManager import logging import gi