[GTK3] Remove unneeded code in path chooser
Not sure the reason for the added introspection code but originated in GTK3 changes so remove as path chooser doesn't appear to need it.
This commit is contained in:
parent
13e1fa355d
commit
a2857a318d
|
@ -13,9 +13,6 @@ from __future__ import division, print_function, unicode_literals
|
||||||
import os
|
import os
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
# FIXME: use this as fallback to get_introspection_module?
|
|
||||||
# from gi.importer import modules
|
|
||||||
from gi.module import get_introspection_module
|
|
||||||
from gi.repository import Gdk, GObject, Gtk
|
from gi.repository import Gdk, GObject, Gtk
|
||||||
from gi.repository.GObject import SignalFlags
|
from gi.repository.GObject import SignalFlags
|
||||||
|
|
||||||
|
@ -1107,12 +1104,7 @@ class PathAutoCompleter(object):
|
||||||
self.completion_popup.popdown()
|
self.completion_popup.popdown()
|
||||||
|
|
||||||
|
|
||||||
# FIXME: use this as fallback to get_introspection_module?
|
class PathChooserComboBox(Gtk.Box, StoredValuesPopup, GObject.GObject):
|
||||||
# GtkGI = modules['Gtk']._introspection_module
|
|
||||||
GtkGI = get_introspection_module('Gtk')
|
|
||||||
|
|
||||||
|
|
||||||
class PathChooserComboBox(GtkGI.Box, StoredValuesPopup, GObject.GObject):
|
|
||||||
|
|
||||||
__gsignals__ = {
|
__gsignals__ = {
|
||||||
signal
|
signal
|
||||||
|
@ -1141,7 +1133,7 @@ class PathChooserComboBox(GtkGI.Box, StoredValuesPopup, GObject.GObject):
|
||||||
use_completer_popup=True,
|
use_completer_popup=True,
|
||||||
parent=None,
|
parent=None,
|
||||||
):
|
):
|
||||||
GtkGI.Box.__init__(self)
|
Gtk.Box.__init__(self)
|
||||||
GObject.GObject.__init__(self)
|
GObject.GObject.__init__(self)
|
||||||
self.list_box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)
|
self.list_box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)
|
||||||
self._stored_values_popping_down = False
|
self._stored_values_popping_down = False
|
||||||
|
|
Loading…
Reference in New Issue