[latexila] Search: popup menu under widget



commit 6fd95f54a1aaa37d0c1f86efcc285ba434797caf
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Dec 14 15:34:04 2017 +0100

    Search: popup menu under widget
    
    gtk_menu_popup() is deprecated.

 src/search.vala |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/search.vala b/src/search.vala
index ed205f9..dd32d1c 100644
--- a/src/search.vala
+++ b/src/search.vala
@@ -1,7 +1,7 @@
 /*
  * This file is part of LaTeXila.
  *
- * Copyright © 2010-2012 Sébastien Wilmet
+ * Copyright © 2010-2012, 2017 Sébastien Wilmet
  *
  * LaTeXila is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -336,7 +336,8 @@ public class SearchAndReplace : GLib.Object
         _entry_find.icon_press.connect ((icon_pos, event) =>
         {
             if (icon_pos == EntryIconPosition.PRIMARY)
-                menu.popup (null, null, null, event.button.button, event.button.time);
+                menu.popup_at_widget (_entry_find, Gdk.Gravity.SOUTH_WEST,
+                    Gdk.Gravity.NORTH_WEST, event);
         });
     }
 


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