Skip to content

Commit 89c821f

Browse files
committed
Replace the deprecated Gtk.VBox with Gtk.Box
1 parent 0c5fcfa commit 89c821f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sourcecodebrowser/plugin.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
DATA_DIR = os.path.join(os.path.dirname(__file__), 'data')
1212
ICON_DIR = os.path.join(DATA_DIR, 'icons', '16x16')
1313

14-
class SourceTree(Gtk.VBox):
14+
class SourceTree(Gtk.Box):
1515
"""
1616
Source Tree Widget
1717
@@ -23,7 +23,8 @@ class SourceTree(Gtk.VBox):
2323
}
2424

2525
def __init__(self):
26-
Gtk.VBox.__init__(self)
26+
Gtk.Box.__init__(self)
27+
self.set_orientation(Gtk.Orientation.VERTICAL)
2728
self._log = logging.getLogger(self.__class__.__name__)
2829
self._log.setLevel(LOG_LEVEL)
2930
self._pixbufs = {}

0 commit comments

Comments
 (0)