[polari] mainWindow: Do not call show_all() from _init()
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] mainWindow: Do not call show_all() from _init()
- Date: Sun, 7 Aug 2016 01:49:50 +0000 (UTC)
commit 85d3c77f2b9c78a91c8f94a13bc33fcd455a1d02
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Jul 13 17:30:18 2016 +0200
mainWindow: Do not call show_all() from _init()
The expected behavior of widgets in GTK+ is to show all internal
children that should be visible when the widget is shown, but
leave its own visibility to the parent (or the code that created
the widgets). Not following that pattern is confusing for any
widget, but much worse for toplevel windows where the widget's
visibility directly corresponds to the visibility on screen.
src/mainWindow.js | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index a343475..789e99c 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -196,8 +196,6 @@ const MainWindow = new Lang.Class({
if (this._settings.get_boolean('window-maximized'))
this.maximize();
-
- this.show_all();
},
get subtitle() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]