diff --git a/status-applets/mate/mate-xapp-status-applet.py b/status-applets/mate/mate-xapp-status-applet.py index 41a77b0..a1ec650 100755 --- a/status-applets/mate/mate-xapp-status-applet.py +++ b/status-applets/mate/mate-xapp-status-applet.py @@ -72,7 +72,6 @@ self.box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL) self.image = Gtk.Image(hexpand=True) - self.image.show() self.label = Gtk.Label(no_show_all=True) self.box.pack_start(self.image, True, False, 0) self.box.pack_start(self.label, False, False, 0) @@ -83,6 +82,8 @@ self.set_relief(Gtk.ReliefStyle.NONE) self.set_focus_on_click(False) + self.show_all() + flags = GObject.BindingFlags.DEFAULT | GObject.BindingFlags.SYNC_CREATE self.proxy.bind_property("label", self.label, "label", flags) @@ -102,8 +103,6 @@ self.update_orientation() self.update_icon() - - self.show_all() def _on_icon_name_changed(self, proxy, gparamspec, data=None): self.update_icon() diff --git a/test-scripts/xapp-status-applet b/test-scripts/xapp-status-applet index 8d0fd9e..50eb515 100755 --- a/test-scripts/xapp-status-applet +++ b/test-scripts/xapp-status-applet @@ -29,6 +29,9 @@ self.image.props.icon_size = Gtk.IconSize.DIALOG self.set_icon(self.proxy.props.icon_name) + + self.show_all() + self.proxy.bind_property("label", self.label, "label", flags) self.proxy.bind_property("tooltip-text", self, "tooltip-text", flags) self.proxy.bind_property("visible", self, "visible", flags) @@ -134,7 +137,6 @@ self.indicators[name] = StatusWidget(proxy) self.indicator_box.add(self.indicators[name]) - self.window.show_all() self.sort_icons()