[gnome-maps] mainWindow: Set the window title programmatically
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] mainWindow: Set the window title programmatically
- Date: Sat, 2 Mar 2019 19:50:49 +0000 (UTC)
commit 74675b929f70cd1086b78f8faebfa9325cb09b50
Author: Marcus Lundblad <ml update uu se>
Date: Sat Mar 2 20:48:37 2019 +0100
mainWindow: Set the window title programmatically
For some reason setting the title in the .ui is now
broken. As a work-around set it in code now.
Fixes #157
src/mainWindow.js | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index e6af2b2..e2bafe7 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -128,6 +128,14 @@ var MainWindow = GObject.registerClass({
this._grid.attach(this._sidebar, 1, 0, 1, 1);
this._grid.show_all();
+
+ /* for some reason, setting the title of the window through the .ui
+ * template does not work anymore (maybe has something to do with
+ * setting a custom title on the headerbar). Setting it programmatically
+ * here works though. And yields a proper label in the gnome-shell
+ * overview.
+ */
+ this.title = _("Maps");
}
_createPlaceEntry() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]