[polari/wip/fmuellner/window-experiments: 5/29] mainWindow: Do not call show_all() from _init()
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/fmuellner/window-experiments: 5/29] mainWindow: Do not call show_all() from _init()
- Date: Tue, 19 Jul 2016 22:36:59 +0000 (UTC)
commit f948a0fe9350af3377cbf0ced9ddc15eb2e38384
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 e1aeced..3844560 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -199,8 +199,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]