Bug 799290 - Invoice register context menu issue

When you right click on the register styled item lines, the context
menu does not show.

Fixed by adding missing call back.
pull/1949/head
Robert Fewell 2 years ago
parent 6c7abb487d
commit 5c716cc95c

@ -92,6 +92,7 @@ static void gnc_plugin_page_invoice_cmd_entryDown (GSimpleAction *simple, GVaria
static void gnc_plugin_page_invoice_cmd_edit_tax (GSimpleAction *simple, GVariant *paramter, gpointer user_data);
static void gnc_plugin_page_redraw_help_cb (GnucashRegister *gsr, GncPluginPageInvoice *invoice_page);
static void gnc_plugin_page_show_popup_cb (GnucashRegister *gsr, GncPluginPageInvoice *invoice_page);
static void gnc_plugin_page_invoice_refresh_cb (GHashTable *changes, gpointer user_data);
/************************************************************
@ -679,6 +680,9 @@ gnc_plugin_page_invoice_create_widget (GncPluginPage *plugin_page)
{
g_signal_connect (G_OBJECT (regWidget), "redraw-help",
G_CALLBACK (gnc_plugin_page_redraw_help_cb), page);
g_signal_connect (G_OBJECT(regWidget), "show-popup-menu",
G_CALLBACK(gnc_plugin_page_show_popup_cb), page);
}
priv->component_manager_id =
@ -1363,6 +1367,25 @@ gnc_plugin_page_redraw_help_cb (GnucashRegister *g_reg,
g_free(help);
}
static void
gnc_plugin_page_show_popup_cb (GnucashRegister *g_reg,
GncPluginPageInvoice *invoice_page)
{
GncWindow *window;
g_return_if_fail (GNC_IS_PLUGIN_PAGE_INVOICE(invoice_page));
window = GNC_WINDOW(GNC_PLUGIN_PAGE(invoice_page)->window);
if (!window)
{
// This routine can be called before the page is added to a
// window.
return;
}
gnc_main_window_popup_menu_cb (GTK_WIDGET(window),
GNC_PLUGIN_PAGE(invoice_page));
}
void
gnc_plugin_page_invoice_update_title (GncPluginPage *plugin_page)

Loading…
Cancel
Save