[gnome-maps] mainWindow: Allow PlaceEntry to shrink
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] mainWindow: Allow PlaceEntry to shrink
- Date: Mon, 29 Feb 2016 06:27:39 +0000 (UTC)
commit 4d5a68a3a24d1c125d6680954e00b224cc2091cb
Author: Elias Entrup <elias-git flump de>
Date: Fri Feb 26 09:26:08 2016 +0100
mainWindow: Allow PlaceEntry to shrink
The max_width_chars property allows us to set a maximum width
but the PlaceEntry is still able to shrink and thus the whole window.
https://bugzilla.gnome.org/show_bug.cgi?id=760251
src/mainWindow.js | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index afb7297..995cdb5 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -110,13 +110,13 @@ const MainWindow = new Lang.Class({
},
_createPlaceEntry: function() {
- let placeEntry = new PlaceEntry.PlaceEntry({ mapView: this._mapView,
- visible: true,
- margin_start: 6,
- margin_end: 6,
- width_request: 500,
- loupe: true,
- matchRoute: true
+ let placeEntry = new PlaceEntry.PlaceEntry({ mapView: this._mapView,
+ visible: true,
+ margin_start: 6,
+ margin_end: 6,
+ max_width_chars: 50,
+ loupe: true,
+ matchRoute: true
});
placeEntry.connect('notify::place', (function() {
if (placeEntry.place) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]