[gnome-maps] osmEditDialog: Use gtk_popover_popup/popdown() for hints



commit 69e93e13d1b1385c87f4eb553f674daff15e9bb3
Author: Marcus Lundblad <ml update uu se>
Date:   Sun Jun 11 22:45:43 2017 +0200

    osmEditDialog: Use gtk_popover_popup/popdown() for hints
    
    https://bugzilla.gnome.org/show_bug.cgi?id=777192

 src/osmEditDialog.js |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/osmEditDialog.js b/src/osmEditDialog.js
index a0537fa..b4ae247 100644
--- a/src/osmEditDialog.js
+++ b/src/osmEditDialog.js
@@ -610,11 +610,12 @@ const OSMEditDialog = new Lang.Class({
     },
 
     _showHintPopover: function(entry, hint) {
-        this._hintPopover.visible = !this._hintPopover.visible;
         if (this._hintPopover.visible) {
+            this._hintPopover.popdown();
+        } else {
             this._hintPopover.relative_to = entry;
             this._hintLabel.label = hint;
-            this._hintPopover.visible = true;
+            this._hintPopover.popup();
         }
     },
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]