[meld] ui.statusbar: Delay popover construction to realize
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] ui.statusbar: Delay popover construction to realize
- Date: Fri, 18 Jan 2019 21:29:15 +0000 (UTC)
commit dd6fefdd21eb3f16d566db1b626018359fbfb7a8
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Jan 6 07:23:41 2019 +1000
ui.statusbar: Delay popover construction to realize
There's no need to initialise these on initial status bar construction,
particularly since one will go unused in all of our two-pane views.
meld/ui/statusbar.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/meld/ui/statusbar.py b/meld/ui/statusbar.py
index be434984..f640efc8 100644
--- a/meld/ui/statusbar.py
+++ b/meld/ui/statusbar.py
@@ -124,7 +124,7 @@ class MeldStatusBar(Gtk.Statusbar):
_line_column_text = _("Ln %i, Col %i")
def __init__(self):
- GObject.GObject.__init__(self)
+ super().__init__()
self.props.margin = 0
self.props.spacing = 6
@@ -135,6 +135,9 @@ class MeldStatusBar(Gtk.Statusbar):
hbox.remove(label)
hbox.pack_end(label, False, True, 0)
+ def do_realize(self):
+ Gtk.Statusbar.do_realize(self)
+
self.box_box = Gtk.HBox(homogeneous=False, spacing=6)
self.pack_end(self.box_box, False, True, 0)
self.box_box.pack_end(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]