Skip to content

Commit 3fee7c6

Browse files
committed
Require proper version of GDK and GTK in scp-dbus-service as well
scp-dbus-service can be D-Bus activated, that means that gi.require_version() is not called before. That needs to be kept in sync with the required version in the main program file.
1 parent f291161 commit 3fee7c6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scp-dbus-service.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@
2121
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2222

2323
import dbus.service
24+
import gi
2425
from gi.repository import GObject
2526
from gi.repository import GLib
27+
gi.require_version('Gdk', '3.0')
2628
from gi.repository import Gdk
29+
gi.require_version('Gtk', '3.0')
2730
from gi.repository import Gtk
2831
import sys
2932

0 commit comments

Comments
 (0)