fix some Gtk deprecations in textbufdoc (used by QuickReports etc.)
This commit is contained in:
parent
7c471db1c9
commit
dd151a3990
@ -56,11 +56,9 @@ class DisplayBuf(ManagedWindow):
|
|||||||
def __init__(self, title, document, track=[]):
|
def __init__(self, title, document, track=[]):
|
||||||
self.title = title
|
self.title = title
|
||||||
ManagedWindow.__init__(self, document.uistate, track, document)
|
ManagedWindow.__init__(self, document.uistate, track, document)
|
||||||
self.set_window(Gtk.Dialog(title="",
|
dialog = Gtk.Dialog(title="", destroy_with_parent=True)
|
||||||
flags=Gtk.DialogFlags.DESTROY_WITH_PARENT,
|
dialog.add_button(_('_Close'), Gtk.ResponseType.CLOSE)
|
||||||
buttons=(_('_Close'),
|
self.set_window(dialog, None, title, True)
|
||||||
Gtk.ResponseType.CLOSE)),
|
|
||||||
None, title, True)
|
|
||||||
self.setup_configs('interface.' + title.lower().replace(' ', ''),
|
self.setup_configs('interface.' + title.lower().replace(' ', ''),
|
||||||
600, 400)
|
600, 400)
|
||||||
scrolled_window = Gtk.ScrolledWindow()
|
scrolled_window = Gtk.ScrolledWindow()
|
||||||
|
Loading…
Reference in New Issue
Block a user