mirror of
https://github.com/tromey/gdb-gui.git
synced 2025-12-16 07:10:04 +01:00
Move Gtk startup to __init__.py
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user