mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
add bogus gui popup code
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9407 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
c0f9a59369
commit
951b2e28a3
@ -46,6 +46,7 @@
|
|||||||
#include "gnc-component-manager.h"
|
#include "gnc-component-manager.h"
|
||||||
#include "gnc-date-edit.h"
|
#include "gnc-date-edit.h"
|
||||||
#include "gnc-engine-util.h"
|
#include "gnc-engine-util.h"
|
||||||
|
#include "gnc-err-popup.h"
|
||||||
#include "gnc-euro.h"
|
#include "gnc-euro.h"
|
||||||
#include "gnc-gui-query.h"
|
#include "gnc-gui-query.h"
|
||||||
#include "gnc-ledger-display.h"
|
#include "gnc-ledger-display.h"
|
||||||
@ -1143,6 +1144,25 @@ gnc_split_reg_reverse_trans_cb (GtkWidget *w, gpointer data)
|
|||||||
#define GTK_STOCK_CANCEL GNOME_STOCK_BUTTON_CANCEL
|
#define GTK_STOCK_CANCEL GNOME_STOCK_BUTTON_CANCEL
|
||||||
#define GTK_STOCK_DELETE "Delete"
|
#define GTK_STOCK_DELETE "Delete"
|
||||||
|
|
||||||
|
|
||||||
|
static gboolean
|
||||||
|
xaccTransWarnReadOnly (const Transaction *trans)
|
||||||
|
{
|
||||||
|
const gchar *reason;
|
||||||
|
|
||||||
|
if (!trans) return FALSE;
|
||||||
|
|
||||||
|
reason = xaccTransGetReadOnly (trans);
|
||||||
|
if (reason) {
|
||||||
|
gnc_send_gui_error(_("Cannot modify or delete this transaction.\n"
|
||||||
|
"This transaction is marked read-only because:\n\n'%s'"),
|
||||||
|
reason);
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
gsr_default_reinit_handler( GNCSplitReg *gsr, gpointer data )
|
gsr_default_reinit_handler( GNCSplitReg *gsr, gpointer data )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user