[gnome-maps/wip/mlundblad/headerbar-notifications: 1/2] mainWindow: Place the search entry in a GtkOverlay
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/headerbar-notifications: 1/2] mainWindow: Place the search entry in a GtkOverlay
- Date: Thu, 8 Feb 2018 21:36:54 +0000 (UTC)
commit 365e725942af93e45a358c3c235ca28850ac160a
Author: Marcus Lundblad <ml update uu se>
Date: Thu Feb 8 22:34:37 2018 +0100
mainWindow: Place the search entry in a GtkOverlay
To allow showing notifications there as a stop-gap
solution for notifications not working in the overlay
over the map view on Wayland.
src/mainWindow.js | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 2adc421..376949e 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -93,6 +93,10 @@ var MainWindow = GObject.registerClass({
return this._mapView;
}
+ get overlay() {
+ return this._headerBar.custom_title;
+ }
+
_init(params) {
this._overlay = params.overlay;
delete params.overlay;
@@ -332,8 +336,10 @@ var MainWindow = GObject.registerClass({
}
_initHeaderbar() {
+ let overlay = new Gtk.Overlay({ visible: true });
this._placeEntry = this._createPlaceEntry();
- this._headerBar.custom_title = this._placeEntry;
+ overlay.add(this._placeEntry);
+ this._headerBar.custom_title = overlay;
let favoritesPopover = this._favoritesButton.popover;
this._favoritesButton.sensitive = favoritesPopover.rows > 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]