Skip to content

Commit

Permalink
Remove dbus module
Browse files Browse the repository at this point in the history
It's a shame to drop this interface, but it's becoming problematic to use with
Flatpak. We should revisit these in the future,  and plug them in
org.gnome.GTG.

ref #277
  • Loading branch information
diegogangl committed May 9, 2020
1 parent d4cd8f3 commit 2d380bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 308 deletions.
3 changes: 3 additions & 0 deletions GTG/core/timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
from gi.repository import GObject
from GTG.core.logger import log

from dbus.mainloop.glib import DBusGMainLoop


class Timer(GObject.GObject):
__signal_type__ = (GObject.SignalFlags.RUN_FIRST,
Expand All @@ -41,6 +43,7 @@ def __init__(self, config):
self.time_changed()

def connect_to_dbus(self):
DBusGMainLoop(set_as_default=True)
bus = dbus.SystemBus()
bus.add_signal_receiver(self.on_prepare_for_sleep,
'PrepareForSleep',
Expand Down
2 changes: 0 additions & 2 deletions GTG/gtk/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
from GTG.gtk.plugins import PluginsDialog
from webbrowser import open as openurl
from GTG.core import info
from GTG.gtk.dbus import DBusTaskWrapper
from GTG.core import clipboard
from GTG.core.plugins.engine import PluginEngine
from GTG.core.plugins.api import PluginAPI
Expand Down Expand Up @@ -115,7 +114,6 @@ def __init__(self, debug):

self.init_style()

DBusTaskWrapper(self.req, self)

# --------------------------------------------------------------------------
# INIT
Expand Down
306 changes: 0 additions & 306 deletions GTG/gtk/dbus.py

This file was deleted.

0 comments on commit 2d380bb

Please sign in to comment.