mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[import-main-matcher] attach menu to treeview
another leak plugged
This commit is contained in:
parent
c4e02e1b4b
commit
078a579ed4
@ -1378,6 +1378,8 @@ gnc_gen_trans_view_popup_menu (GtkTreeView *treeview,
|
||||
info);
|
||||
gtk_menu_shell_append (GTK_MENU_SHELL(menu), menuitem);
|
||||
|
||||
gtk_menu_attach_to_widget (GTK_MENU (menu), GTK_WIDGET (treeview), NULL);
|
||||
|
||||
gtk_widget_show_all (menu);
|
||||
/* Note: event can be NULL here when called from view_onPopupMenu; */
|
||||
gtk_menu_popup_at_pointer (GTK_MENU(menu), (GdkEvent*)event);
|
||||
|
Loading…
Reference in New Issue
Block a user