Commit cf61f15a authored by Adwait Rawat's avatar Adwait Rawat Committed by Alberto Fanjul

Fix deprecation menu.popup()

parent 86b708ff
Pipeline #73167 passed with stages
in 12 minutes and 43 seconds
......@@ -236,17 +236,8 @@ class Gitg.DiffViewFile : Gtk.Grid
menu.add(copy_file_path);
uint button = 0;
uint evtime = Gdk.CURRENT_TIME;
if (event != null)
{
button = event.button;
evtime = event.time;
}
menu.attach_to_widget(d_expander, null);
menu.popup(null, null, null, button, evtime);
menu.popup_at_pointer(event);
}
private bool expander_button_press_event(Gtk.Widget widget, Gdk.EventButton? event)
......
......@@ -483,16 +483,7 @@ public class Sidebar : Gtk.TreeView
menu.show_all();
menu.attach_to_widget(this, null);
uint button = 0;
uint32 t = Gdk.CURRENT_TIME;
if (event != null)
{
button = event.button;
t = event.time;
}
menu.popup(null, null, null, button, t);
menu.popup_at_pointer(event);
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment