[gnome-documents] preview: don't call gtk_menu_popup_for_device() from JS



commit 8f860b7ff99ac921ef787b9bf01a7365c1d22e95
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun Feb 26 15:13:21 2012 -0500

    preview: don't call gtk_menu_popup_for_device() from JS
    
    This method recently got a "Rename to: gtk_menu_popup" annotation, so we
    should just call menu.popup() instead.

 src/preview.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/preview.js b/src/preview.js
index dea5985..f04e7e3 100644
--- a/src/preview.js
+++ b/src/preview.js
@@ -55,7 +55,7 @@ PreviewView.prototype = {
         let doc = Global.documentManager.getActiveItem();
         let menu = new View.ContextMenu([ doc.id ]);
 
-        menu.widget.popup_for_device(null, null, null, null, null, null, button, timestamp);
+        menu.widget.popup(null, null, null, null, null, null, button, timestamp);
 
         return true;
     },



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