mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* register/register-gnome/gnucash-sheet.c: allow a caller to
"unset" the popup menu by passing a NULL popup. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7067 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
28fabff82f
commit
e5b6d357a5
@ -2439,8 +2439,9 @@ gnucash_register_attach_popup (GnucashRegister *reg,
|
||||
gpointer data)
|
||||
{
|
||||
g_return_if_fail (GNUCASH_IS_REGISTER(reg));
|
||||
g_return_if_fail (GTK_IS_WIDGET(popup));
|
||||
g_return_if_fail (reg->sheet != NULL);
|
||||
if (popup)
|
||||
g_return_if_fail (GTK_IS_WIDGET(popup));
|
||||
|
||||
gnucash_sheet_set_popup (GNUCASH_SHEET (reg->sheet), popup, data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user