[gnome-maps/wip/mlundblad/osm-add-location: 9/17] Add MAPS_DEBUG=focus
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/osm-add-location: 9/17] Add MAPS_DEBUG=focus
- Date: Sat, 30 Jan 2016 15:07:51 +0000 (UTC)
commit d8a492760229fbee1d2e2701d3471f478ab3f83b
Author: Jonas Danielsson <jonas threetimestwo org>
Date: Tue Jan 12 09:32:51 2016 +0100
Add MAPS_DEBUG=focus
Starting with MAPS_DEBUG=focus would keep track of the focus widget
and print messages when it changes in the form of:
* focus widget: [object instance proxy GType:Gjs_MapView ...
https://bugzilla.gnome.org/show_bug.cgi?id=760487
src/application.js | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 4a61e66..d7ba080 100644
--- a/src/application.js
+++ b/src/application.js
@@ -251,6 +251,11 @@ const Application = new Lang.Class({
overlay: overlay,
opening: this._opening });
this._mainWindow.connect('destroy', this._onWindowDestroy.bind(this));
+ if (GLib.getenv('MAPS_DEBUG') === 'focus') {
+ this._mainWindow.connect('set-focus', function(window, widget) {
+ log('* focus widget: %s'.format(widget));
+ });
+ }
},
vfunc_dbus_register: function(connection, path) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]