Move Gtk startup to __init__.py

This commit is contained in:
Tom Tromey
2024-03-02 14:38:56 -07:00
parent add2391740
commit f2bbafeedb
2 changed files with 10 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2013, 2015 Tom Tromey <tom@tromey.com>
# Copyright (C) 2013, 2015, 2024 Tom Tromey <tom@tromey.com>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -15,11 +15,19 @@
import os.path
import gi
gi.require_version("Gtk", "3.0")
gi.require_version("GtkSource", "3.0")
gi.require_version("Notify", "0.7")
self_dir = os.path.abspath(os.path.dirname(__file__))
# Import anything that defines a command or parameter.
import gui.commands
import gui.framecache
# Hooks in to gdb.
import gui.notify
import gui.params

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2012, 2013, 2015, 2023 Tom Tromey <tom@tromey.com>
# Copyright (C) 2012, 2013, 2015, 2023, 2024 Tom Tromey <tom@tromey.com>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -20,13 +20,8 @@ import threading
import gdb
import gi
import gui
gi.require_version("Gtk", "3.0")
gi.require_version("GtkSource", "3.0")
gi.require_version("Notify", "0.7")
from gi.repository import Gdk, GdkPixbuf, GLib, GObject, Gtk, GtkSource
(read_pipe, write_pipe) = os.pipe()