mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix compiler warnings.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6275 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
a0023ed033
commit
92f01055e1
@ -7,6 +7,7 @@ AM_CFLAGS = \
|
||||
-I${top_srcdir}/src \
|
||||
-I${top_srcdir}/src/engine \
|
||||
-I${top_srcdir}/src/app-utils \
|
||||
-I${top_srcdir}/src/gnome-utils \
|
||||
${GNOME_INCLUDEDIR} \
|
||||
${GUILE_INCS} \
|
||||
${GLIB_CFLAGS} \
|
||||
|
@ -35,6 +35,7 @@
|
||||
#include "gnc-file-dialog.h"
|
||||
#include "gnc-file-history.h"
|
||||
#include "gnc-file-p.h"
|
||||
#include "gnc-gui-query.h"
|
||||
#include "gnc-session.h"
|
||||
#include "gnc-ui.h"
|
||||
#include "gnc-ui-util.h"
|
||||
|
@ -292,7 +292,6 @@ gnc_account_get_balance_in_currency (Account *account,
|
||||
GNCPriceDB *pdb;
|
||||
GNCPrice *price;
|
||||
gnc_numeric balance;
|
||||
GNCAccountType atype;
|
||||
gnc_commodity *commodity;
|
||||
|
||||
if (!account || !currency)
|
||||
@ -355,12 +354,7 @@ static gnc_numeric
|
||||
gnc_account_get_reconciled_balance_in_currency (Account *account,
|
||||
gnc_commodity *currency)
|
||||
{
|
||||
GNCBook *book;
|
||||
GNCPriceDB *pdb;
|
||||
GNCPrice *price;
|
||||
gboolean has_shares;
|
||||
gnc_numeric balance;
|
||||
GNCAccountType atype;
|
||||
gnc_commodity *balance_currency;
|
||||
|
||||
if (!account || !currency)
|
||||
@ -903,7 +897,7 @@ gnc_find_or_create_equity_account (AccountGroup *group,
|
||||
|
||||
parent = xaccGetAccountFromName (group, _("Equity"));
|
||||
if (parent && xaccAccountGetType (parent) != EQUITY)
|
||||
parent == NULL;
|
||||
parent = NULL;
|
||||
|
||||
account = xaccMallocAccount (book);
|
||||
|
||||
|
@ -184,8 +184,6 @@ static GSList *potential_quotes;
|
||||
static void
|
||||
mark_potential_quote(Split *s, double price, double quantity)
|
||||
{
|
||||
static int count = 0;
|
||||
|
||||
if((price != 0) && DEQ(quantity, 0)){
|
||||
GNCPotentialQuote *q = g_new0(GNCPotentialQuote, 1);
|
||||
q->split = s;
|
||||
|
@ -416,6 +416,7 @@ gnc_counter_sixtp_parser_create(void)
|
||||
return sixtp_dom_parser_new(gnc_counter_end_handler, NULL, NULL);
|
||||
}
|
||||
|
||||
#if 0
|
||||
static void
|
||||
print_counter_data(load_counter data)
|
||||
{
|
||||
@ -428,6 +429,7 @@ print_counter_data(load_counter data)
|
||||
printf("Scheduled Tansactions: Total: %d, Loaded: %d\n",
|
||||
data.schedXactions_total, data.schedXactions_loaded);
|
||||
}
|
||||
#endif
|
||||
|
||||
static const char *ACCOUNT_TAG = "gnc:account";
|
||||
static const char *PRICEDB_TAG = "gnc:pricedb";
|
||||
@ -748,12 +750,14 @@ write_schedXactions( FILE *out, GNCBook *book )
|
||||
} while ( (schedXactions = schedXactions->next) );
|
||||
}
|
||||
|
||||
#if 0
|
||||
static void
|
||||
write_namespace_decl (FILE *out, const char *namespace)
|
||||
{
|
||||
g_return_if_fail (namespace);
|
||||
fprintf(out, " xmlns:%s=\"\"", namespace);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
write_v2_header (FILE *out)
|
||||
|
@ -445,8 +445,6 @@ dom_tree_to_text(xmlNodePtr tree)
|
||||
Ignores comment nodes and collapse text nodes into one string.
|
||||
Returns NULL if expectations are unsatisfied.
|
||||
*/
|
||||
gboolean ok = TRUE;
|
||||
xmlNodePtr current;
|
||||
gchar *result;
|
||||
gchar *temp;
|
||||
|
||||
|
@ -82,20 +82,6 @@ dom_fail_handler(gpointer data_for_children,
|
||||
if(*result) xmlFreeNode(*result);
|
||||
}
|
||||
|
||||
|
||||
static gboolean is_whitespace(const char *text, int len)
|
||||
{
|
||||
int i;
|
||||
for(i = 0; i < len; i++)
|
||||
{
|
||||
if(!isspace(text[i]))
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static gboolean dom_chars_handler(
|
||||
GSList *sibling_data, gpointer parent_data, gpointer global_data,
|
||||
gpointer *result, const char *text, int length)
|
||||
|
@ -262,9 +262,6 @@ just_dom_tree_end_handler(gpointer data_for_children,
|
||||
gpointer parent_data, gpointer global_data,
|
||||
gpointer *result, const gchar *tag)
|
||||
{
|
||||
Transaction *trn = NULL;
|
||||
gboolean successful = FALSE;
|
||||
xmlNodePtr achild;
|
||||
xmlNodePtr tree = (xmlNodePtr)data_for_children;
|
||||
xmlNodePtr *globaldata = (xmlNodePtr*)global_data;
|
||||
|
||||
|
@ -232,9 +232,11 @@ static const char *sql_functions_str =
|
||||
#include "functions.c"
|
||||
;
|
||||
|
||||
#if 0
|
||||
static const char *table_drop_str =
|
||||
#include "table-drop.c"
|
||||
;
|
||||
#endif
|
||||
|
||||
/* ============================================================= */
|
||||
/* QUERY STUFF */
|
||||
@ -527,7 +529,6 @@ pgendRunQuery (Backend *bend, Query *q)
|
||||
const char * sql_query_string;
|
||||
AccountGroup *topgroup;
|
||||
sqlQuery *sq;
|
||||
GList *node, *anode, *xaction_list= NULL, *acct_list = NULL;
|
||||
|
||||
ENTER ("be=%p, qry=%p", be, q);
|
||||
if (!be || !q) return;
|
||||
@ -588,10 +589,11 @@ pgendRunQuery (Backend *bend, Query *q)
|
||||
* for a rainy day...
|
||||
*/
|
||||
|
||||
#if 0
|
||||
static gpointer
|
||||
get_all_trans_cb (PGBackend *be, PGresult *result, int j, gpointer data)
|
||||
{
|
||||
GList *node, *xaction_list = (GList *) data;
|
||||
GList *xaction_list = (GList *) data;
|
||||
GUID *trans_guid;
|
||||
|
||||
/* find the transaction this goes into */
|
||||
@ -628,6 +630,7 @@ pgendGetAllTransactions (PGBackend *be, AccountGroup *grp)
|
||||
pgendEnable(be);
|
||||
gnc_engine_resume_events();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/* ============================================================= */
|
||||
@ -1338,7 +1341,6 @@ pgend_session_begin (Backend *backend,
|
||||
gboolean ignore_lock,
|
||||
gboolean create_new_db)
|
||||
{
|
||||
int really_do_create = 0;
|
||||
int rc;
|
||||
PGBackend *be;
|
||||
char *url, *start, *end;
|
||||
@ -1755,7 +1757,7 @@ pgend_session_begin (Backend *backend,
|
||||
gboolean someones_still_on;
|
||||
/* The server is older than we are; lets upgrade */
|
||||
/* But first, make sure all users are logged off ... */
|
||||
p = "BEGIN;\n";
|
||||
p = "BEGIN;\n"
|
||||
"LOCK TABLE gncSession IN ACCESS EXCLUSIVE MODE;\n"
|
||||
"SELECT time_off FROM gncSession WHERE time_off ='infinity';";
|
||||
SEND_QUERY (be,p, );
|
||||
|
@ -348,10 +348,7 @@ pgendCopyAccountToEngine (PGBackend *be, const GUID *acct_guid)
|
||||
{
|
||||
char *pbuff;
|
||||
Account *acc;
|
||||
PGresult *result;
|
||||
int engine_data_is_newer = 0;
|
||||
int i, j, nrows;
|
||||
|
||||
|
||||
ENTER ("be=%p", be);
|
||||
if (!be || !acct_guid) return 0;
|
||||
|
@ -77,7 +77,7 @@ pgendAccountRecomputeAllCheckpoints (PGBackend *be, const GUID *acct_guid)
|
||||
PGresult *result;
|
||||
Checkpoint *bp;
|
||||
char *p;
|
||||
int i, nrows, nsplits;
|
||||
int i;
|
||||
int nck;
|
||||
Account *acc;
|
||||
const char *commodity_name, *guid_string;
|
||||
@ -141,7 +141,7 @@ pgendAccountRecomputeAllCheckpoints (PGBackend *be, const GUID *acct_guid)
|
||||
do {
|
||||
GET_RESULTS (be->connection, result);
|
||||
{
|
||||
int j, jrows;
|
||||
int jrows;
|
||||
int ncols = PQnfields (result);
|
||||
jrows = PQntuples (result);
|
||||
PINFO ("query result %d has %d rows and %d cols",
|
||||
@ -277,7 +277,7 @@ pgendAccountRecomputeOneCheckpoint (PGBackend *be, Account *acc, Timespec ts)
|
||||
void
|
||||
pgendTransactionRecomputeCheckpoints (PGBackend *be, Transaction *trans)
|
||||
{
|
||||
char *p, dbuf[80];
|
||||
char *p;
|
||||
|
||||
p = be->buff; *p = 0;
|
||||
p = stpcpy (p, "BEGIN WORK;\n"
|
||||
|
@ -56,7 +56,6 @@ pgendEventsPending (Backend *bend)
|
||||
{
|
||||
PGBackend *be = (PGBackend *) bend;
|
||||
PGnotify *note;
|
||||
char *p;
|
||||
int rc;
|
||||
|
||||
if (!be) return FALSE;
|
||||
|
@ -557,7 +557,6 @@ kvp_left_operand (kvp_value *value)
|
||||
{
|
||||
kvp_value_t value_t;
|
||||
const char *kvptable;
|
||||
char *operand;
|
||||
|
||||
g_return_val_if_fail (value, NULL);
|
||||
|
||||
@ -590,7 +589,6 @@ kvp_right_operand (sqlQuery *sq, kvp_value *value)
|
||||
{
|
||||
kvp_value_t value_t;
|
||||
const char *kvptable;
|
||||
char *operand;
|
||||
|
||||
g_return_val_if_fail (value, NULL);
|
||||
|
||||
|
@ -469,7 +469,6 @@ static gpointer
|
||||
timespec_handler (PGBackend *be, PGresult *result, int j, gpointer data)
|
||||
{
|
||||
Timespec ts;
|
||||
GUID guid;
|
||||
KVP_HANDLER_SETUP;
|
||||
ts = gnc_iso8601_to_timespec_local (DB_GET_VAL ("data", j));
|
||||
kv = kvp_value_new_timespec (ts);
|
||||
@ -495,21 +494,11 @@ list_handler (PGBackend *be, PGresult *result, int j, gpointer data)
|
||||
kf = pgendGetResults (be, TYPE##_handler, kf); \
|
||||
}
|
||||
|
||||
static gpointer
|
||||
count_handler (PGBackend *be, PGresult *result, int j, gpointer data)
|
||||
{
|
||||
int *cnt = (int *) data;
|
||||
*cnt += atoi (DB_GET_VAL ("count", j));
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
kvp_frame *
|
||||
pgendKVPFetch (PGBackend *be, guint32 iguid, kvp_frame *kf)
|
||||
{
|
||||
char * p;
|
||||
char iguid_str[40];
|
||||
int count = 0;
|
||||
if (!be || 0 == iguid) return kf;
|
||||
|
||||
ENTER (" ");
|
||||
|
@ -57,7 +57,7 @@ static short module = MOD_TXN;
|
||||
static gpointer
|
||||
get_mass_trans_cb (PGBackend *be, PGresult *result, int j, gpointer data)
|
||||
{
|
||||
GList *node, *xaction_list = (GList *) data;
|
||||
GList *xaction_list = (GList *) data;
|
||||
Transaction *trans;
|
||||
gnc_commodity *currency = NULL;
|
||||
Timespec ts;
|
||||
|
@ -144,6 +144,7 @@ get_wday_name(guint day)
|
||||
return wday_name;
|
||||
}
|
||||
|
||||
#if 0
|
||||
static const char *
|
||||
get_full_month_name(guint month)
|
||||
{
|
||||
@ -153,6 +154,7 @@ get_full_month_name(guint month)
|
||||
strftime(month_name, WDAY_NAME_WIDTH, "%B", &t);
|
||||
return month_name;
|
||||
}
|
||||
#endif
|
||||
|
||||
static const char *
|
||||
get_abbrev_month_name(guint month)
|
||||
@ -282,8 +284,7 @@ xaccFreqSpecGetNextInstance(
|
||||
const GDate* in_date,
|
||||
GDate* out_date )
|
||||
{
|
||||
GList *list, *blist;
|
||||
int mon;
|
||||
GList *list;
|
||||
|
||||
g_return_if_fail( fs );
|
||||
switch( fs->type ) {
|
||||
|
@ -474,8 +474,8 @@ gnc_kvp_path2scm (GSList *path)
|
||||
{
|
||||
const char *key = node->data;
|
||||
|
||||
if (key)
|
||||
path_scm = gh_cons (gh_str02scm (key), path_scm);
|
||||
if (key) /* FIXME: remove cast */
|
||||
path_scm = gh_cons (gh_str02scm ((char *) key), path_scm);
|
||||
}
|
||||
|
||||
return gh_reverse (path_scm);
|
||||
@ -617,7 +617,8 @@ kvp_frame_slot2scm (const char *key, kvp_value *value, gpointer data)
|
||||
SCM key_scm;
|
||||
SCM pair;
|
||||
|
||||
key_scm = gh_str02scm (key);
|
||||
/* FIXME: remove cast */
|
||||
key_scm = gh_str02scm ((char *) key);
|
||||
value_scm = gnc_kvp_value2scm (value);
|
||||
pair = gh_cons (key_scm, value_scm);
|
||||
|
||||
|
@ -67,8 +67,6 @@ static short module = MOD_IO;
|
||||
static void
|
||||
gnc_book_init (GNCBook *book)
|
||||
{
|
||||
Account *template_acct;
|
||||
|
||||
if (!book) return;
|
||||
|
||||
book->entity_table = xaccEntityTableNew ();
|
||||
|
@ -40,6 +40,7 @@
|
||||
|
||||
/* static short module = MOD_ENGINE; */
|
||||
|
||||
#if 0
|
||||
static const char * _numeric_error_strings[] =
|
||||
{
|
||||
"No error",
|
||||
@ -48,6 +49,7 @@ static const char * _numeric_error_strings[] =
|
||||
"Argument denominators differ in GNC_DENOM_FIXED operation",
|
||||
"Remainder part in GNC_RND_NEVER operation"
|
||||
};
|
||||
#endif
|
||||
|
||||
static gint64 gnc_numeric_lcd(gnc_numeric a, gnc_numeric b);
|
||||
|
||||
|
@ -1215,7 +1215,6 @@ stable_price_traversal(GNCPriceDB *db,
|
||||
gpointer user_data)
|
||||
{
|
||||
GSList *currency_hashes = NULL;
|
||||
GSList *foo = NULL;
|
||||
gboolean ok = TRUE;
|
||||
GSList *i = NULL;
|
||||
|
||||
@ -1313,7 +1312,6 @@ gnc_pricedb_substitute_commodity(GNCPriceDB *db,
|
||||
gnc_commodity *old_c,
|
||||
gnc_commodity *new_c)
|
||||
{
|
||||
GHashTable *currency_hash;
|
||||
GNCPriceFixupData data;
|
||||
GList *prices = NULL;
|
||||
|
||||
@ -1381,12 +1379,6 @@ gnc_price_print(GNCPrice *p, FILE *f, int indent)
|
||||
g_free(istr);
|
||||
}
|
||||
|
||||
static void
|
||||
gnc_price_print_stdout(GNCPrice *p, int indent)
|
||||
{
|
||||
gnc_price_print(p, stdout, indent);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
print_pricedb_adapter(GNCPrice *p, gpointer user_data)
|
||||
{
|
||||
|
@ -243,8 +243,6 @@ gboolean
|
||||
gnc_session_begin (GNCSession *session, const char * book_id,
|
||||
gboolean ignore_lock, gboolean create_if_nonexistent)
|
||||
{
|
||||
int rc;
|
||||
|
||||
if (!session) return FALSE;
|
||||
ENTER (" ignore_lock=%d, book-id=%s", ignore_lock,
|
||||
book_id ? book_id : "(null)");
|
||||
@ -350,7 +348,6 @@ gnc_session_begin (GNCSession *session, const char * book_id,
|
||||
gboolean
|
||||
gnc_session_load (GNCSession *session)
|
||||
{
|
||||
GNCBackendError backend_err;
|
||||
Backend *be;
|
||||
|
||||
if (!session) return FALSE;
|
||||
|
@ -230,7 +230,7 @@ test_monthly (void)
|
||||
static void
|
||||
test_month_relative (void)
|
||||
{
|
||||
guint32 interval, i, start_julian, monthday, month, j, day_of_year;
|
||||
guint32 interval, i, start_julian, monthday, month, j;
|
||||
FreqSpec *fs;
|
||||
GDate date0, date1, date2, next_date;
|
||||
|
||||
@ -345,9 +345,8 @@ test_month_relative (void)
|
||||
static void
|
||||
test_composite (void)
|
||||
{
|
||||
guint32 interval, i, start_julian, monthday, month, j, day_of_year;
|
||||
FreqSpec *fs, *fs2;
|
||||
GDate date0, date1, date2, next_date;
|
||||
GDate date0, date1, date2;
|
||||
|
||||
fs = xaccFreqSpecMalloc(book);
|
||||
|
||||
|
@ -30,7 +30,6 @@ run_test (void)
|
||||
AccountGroup *grp;
|
||||
AccountList *acclist, *anode;
|
||||
Account * acc = NULL;
|
||||
Timespec ts;
|
||||
SplitList *splist;
|
||||
Split *sfirst, *slast;
|
||||
Transaction *tfirst, *tlast;
|
||||
|
@ -67,10 +67,6 @@ static SelectCommodityWindow *
|
||||
gnc_ui_select_commodity_create(const gnc_commodity * orig_sel,
|
||||
gnc_commodity_callback callback,
|
||||
void * callback_data);
|
||||
static CommodityWindow *
|
||||
gnc_ui_commodity_create(const char * selected_namespace,
|
||||
gnc_commodity_callback callback,
|
||||
void * callback_data);
|
||||
|
||||
static void gnc_ui_select_commodity_ok_cb(GtkButton * button,
|
||||
gpointer user_data);
|
||||
|
@ -754,7 +754,6 @@ gnc_option_set_selectable_internal (GNCOption *option, gboolean selectable)
|
||||
static void
|
||||
default_button_cb(GtkButton *button, gpointer data)
|
||||
{
|
||||
GtkWidget *pbox;
|
||||
GNCOption *option = data;
|
||||
|
||||
gnc_option_set_ui_value (option, TRUE);
|
||||
@ -1386,7 +1385,6 @@ gnc_option_set_ui_widget(GNCOption *option,
|
||||
{
|
||||
GtkWidget *frame;
|
||||
GtkWidget *scroll;
|
||||
gchar *colon_name;
|
||||
|
||||
frame = gtk_frame_new(name);
|
||||
|
||||
|
@ -56,7 +56,6 @@ gnc_ui_source_menu_create(Account *account)
|
||||
GtkMenu *menu;
|
||||
GtkWidget *item;
|
||||
GtkWidget *omenu;
|
||||
GNCAccountType type;
|
||||
|
||||
menu = GTK_MENU(gtk_menu_new());
|
||||
gtk_widget_show(GTK_WIDGET(menu));
|
||||
@ -119,7 +118,6 @@ gnc_timezone_menu_position_to_string(guint pos)
|
||||
GtkWidget *
|
||||
gnc_ui_quote_tz_menu_create(Account *account)
|
||||
{
|
||||
gint i;
|
||||
GtkMenu *menu;
|
||||
GtkWidget *item;
|
||||
GtkWidget *omenu;
|
||||
|
@ -29,9 +29,6 @@
|
||||
#include "gnc-engine-util.h"
|
||||
|
||||
|
||||
/* This static indicates the debugging module that this .o belongs to. */
|
||||
static short module = MOD_GUI;
|
||||
|
||||
void
|
||||
gnc_druid_set_watermark_image (GnomeDruid *druid, char *image_path)
|
||||
{
|
||||
|
@ -168,8 +168,6 @@ gnc_account_tree_new_with_root (Account * root)
|
||||
static void
|
||||
gnc_account_tree_init (GNCAccountTree *tree)
|
||||
{
|
||||
gint i;
|
||||
|
||||
tree->root_account = *xaccGUIDNULL ();
|
||||
tree->current_accounts = NULL;
|
||||
tree->ignore_unselect = FALSE;
|
||||
|
@ -48,7 +48,6 @@ gpointer gnc_commodity_edit_new_select (gpointer arg, gpointer ptr,
|
||||
GtkWidget *toplevel)
|
||||
{
|
||||
gnc_commodity * comm = (gnc_commodity *)ptr;
|
||||
arg;
|
||||
return gnc_ui_select_commodity_modal(comm, toplevel);
|
||||
}
|
||||
|
||||
|
@ -153,9 +153,8 @@ gnc_frequency_init( GNCFrequency *gf )
|
||||
{
|
||||
int i, j;
|
||||
GtkVBox *vb;
|
||||
GtkWidget *o, *win;
|
||||
GtkWidget *o;
|
||||
GtkAdjustment *adj;
|
||||
struct tm *tmpTm;
|
||||
|
||||
static char *cals[] = {
|
||||
"daily_cal",
|
||||
@ -277,9 +276,7 @@ gnc_frequency_setup( GNCFrequency *gf, FreqSpec *fs, GDate *startDate )
|
||||
GtkWidget *o;
|
||||
FreqSpec *subFS;
|
||||
GList *list;
|
||||
int tmpInt;
|
||||
int i;
|
||||
int idx;
|
||||
char *str;
|
||||
|
||||
page = 0;
|
||||
@ -376,7 +373,6 @@ gnc_frequency_setup( GNCFrequency *gf, FreqSpec *fs, GDate *startDate )
|
||||
{
|
||||
int weeklyMult = -1;
|
||||
int dayOfWeek;
|
||||
int count = 0;
|
||||
|
||||
for ( list = xaccFreqSpecCompositeGet( fs );
|
||||
list; list = g_list_next(list) ) {
|
||||
@ -481,7 +477,7 @@ gnc_frequency_setup( GNCFrequency *gf, FreqSpec *fs, GDate *startDate )
|
||||
break;
|
||||
case UIFREQ_QUARTERLY:
|
||||
{
|
||||
int monthlyMult, month, dayOfMonth, monthOffset;
|
||||
int monthlyMult, dayOfMonth, monthOffset;
|
||||
|
||||
if ( xaccFreqSpecGetMonthly( fs, &monthlyMult,
|
||||
&dayOfMonth, &monthOffset ) < 0 ) {
|
||||
@ -580,7 +576,7 @@ gnc_frequency_save_state( GNCFrequency *gf, FreqSpec *fs, GDate *outStartDate )
|
||||
{
|
||||
gint page;
|
||||
struct tm *tmpTm;
|
||||
guint day, month, year;
|
||||
guint day;
|
||||
GtkWidget *o;
|
||||
UIFreqType uift;
|
||||
FreqSpec *tmpFS;
|
||||
@ -892,9 +888,9 @@ update_appropriate_cal( GNCFrequency *gf )
|
||||
static void
|
||||
free_resources( GtkObject *o, gpointer d )
|
||||
{
|
||||
#if 0
|
||||
GNCFrequency *gf = (GNCFrequency*)d;
|
||||
// FIXME: destroy an appropriate widget
|
||||
#if 0
|
||||
gtk_widget_destroy( glade_xml_get_widget( gf->gxml,
|
||||
"GNCFrequency widget" ) );
|
||||
#endif // 0
|
||||
@ -906,6 +902,7 @@ spin_changed_helper( GtkAdjustment *adj, gpointer d )
|
||||
update_appropriate_cal( (GNCFrequency*)d );
|
||||
}
|
||||
|
||||
#if 0
|
||||
static void
|
||||
daily_spin_value_changed( GtkAdjustment *adj, gpointer d )
|
||||
{
|
||||
@ -915,7 +912,9 @@ daily_spin_value_changed( GtkAdjustment *adj, gpointer d )
|
||||
"daily_cal" ) );
|
||||
update_cal( d, cal );
|
||||
}
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
static void
|
||||
dailymf_spin_value_changed( GtkAdjustment *adj, gpointer d )
|
||||
{
|
||||
@ -925,7 +924,9 @@ dailymf_spin_value_changed( GtkAdjustment *adj, gpointer d )
|
||||
"dailymf_cal" ) );
|
||||
update_cal( d, cal );
|
||||
}
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
static void
|
||||
weekly_spin_value_changed( GtkAdjustment *adj, gpointer d )
|
||||
{
|
||||
@ -936,6 +937,7 @@ weekly_spin_value_changed( GtkAdjustment *adj, gpointer d )
|
||||
|
||||
update_cal( d, cal );
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
weekly_days_changed( GtkButton *b, gpointer d )
|
||||
@ -953,7 +955,6 @@ monthly_sel_changed( GtkButton *b, gpointer d )
|
||||
{
|
||||
GNCFrequency *gf;
|
||||
GtkWidget *o;
|
||||
GDate *gd;
|
||||
guint dayOfMonth;
|
||||
struct tm *tmptm;
|
||||
time_t tmptt;
|
||||
@ -978,17 +979,21 @@ monthly_sel_changed( GtkButton *b, gpointer d )
|
||||
update_appropriate_cal( (GNCFrequency*)d );
|
||||
}
|
||||
|
||||
#if 0
|
||||
static void
|
||||
monthly_spin_value_changed( GtkAdjustment *adj, gpointer d )
|
||||
{
|
||||
update_appropriate_cal( (GNCFrequency*)d );
|
||||
}
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
static void
|
||||
semimonthly_spin_value_changed( GtkAdjustment *adj, gpointer d )
|
||||
{
|
||||
update_appropriate_cal( (GNCFrequency*)d );
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
semimonthly_sel_changed( GtkButton *b, gpointer d )
|
||||
@ -1083,7 +1088,6 @@ yearly_sel_changed( GtkButton *b, gpointer d )
|
||||
GtkWidget *o;
|
||||
time_t tmptt;
|
||||
struct tm *tmptm;
|
||||
gint tmpint;
|
||||
|
||||
gf = (GNCFrequency*)d;
|
||||
|
||||
@ -1113,7 +1117,6 @@ yearly_sel_changed( GtkButton *b, gpointer d )
|
||||
static void
|
||||
freq_option_value_changed( GtkMenuShell *b, gpointer d )
|
||||
{
|
||||
GtkObject *o;
|
||||
int optIdx;
|
||||
|
||||
optIdx = gnc_option_menu_get_active( GTK_WIDGET(((GNCFrequency*)d)->freqOpt) );
|
||||
|
@ -38,8 +38,6 @@
|
||||
#include "gnc-html-guppi.h"
|
||||
#include "gnc-ui-util.h"
|
||||
|
||||
static short module = MOD_GUI;
|
||||
|
||||
static int handle_piechart(gnc_html * html, GtkHTMLEmbedded * eb, gpointer d);
|
||||
static int handle_barchart(gnc_html * html, GtkHTMLEmbedded * eb, gpointer d);
|
||||
static int handle_scatter(gnc_html * html, GtkHTMLEmbedded * eb, gpointer d);
|
||||
@ -222,31 +220,6 @@ free_strings(char ** strings, int nstrings) {
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* if at least one is non-zero, return TRUE
|
||||
* ie TRUE==good
|
||||
*/
|
||||
|
||||
static gboolean
|
||||
check_doubles(double *numbers, int size)
|
||||
{
|
||||
int count;
|
||||
|
||||
for(count = 0;count < size; count++)
|
||||
{
|
||||
/* FIXME: floating point equalities are strictly evil but
|
||||
* it shouldn't catch us here
|
||||
*/
|
||||
if(numbers[count] != 0.0)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
struct guppi_chart_data {
|
||||
GtkWidget * widget;
|
||||
GuppiObject * guppiobject;
|
||||
@ -353,6 +326,7 @@ guppi_bar_1_callback(gint row, gint col, gpointer user_data) {
|
||||
col);
|
||||
}
|
||||
|
||||
#if UNNEEDED_OPTIONS
|
||||
static void
|
||||
guppi_bar_2_callback(gint row, gint col, gpointer user_data) {
|
||||
struct guppi_chart_data * chart = user_data;
|
||||
@ -370,6 +344,7 @@ guppi_bar_3_callback(gint row, gint col, gpointer user_data) {
|
||||
/* (chart->cols * row)+ FIXME: see above*/
|
||||
col);
|
||||
}
|
||||
#endif
|
||||
|
||||
static GPtrArray *
|
||||
convert_string_array(char ** strings, int nstrings) {
|
||||
@ -587,10 +562,14 @@ gnc_html_embedded_barchart(gnc_html * parent,
|
||||
char * param;
|
||||
int datarows=0;
|
||||
int datacols=0;
|
||||
#if UNNEEDED_OPTIONS
|
||||
int legend_reversed=0;
|
||||
#endif
|
||||
int rotate=0;
|
||||
int stacked=0;
|
||||
int normalize_stacks=0;
|
||||
#if UNNEEDED_OPTIONS
|
||||
int normalize_stacks=0;
|
||||
#endif
|
||||
double * data=NULL;
|
||||
char ** col_labels=NULL;
|
||||
char ** row_labels=NULL;
|
||||
@ -933,29 +912,4 @@ gnc_html_embedded_scatter(gnc_html * parent,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/********************************************************************
|
||||
* gnc_html_embedded_account_tree
|
||||
* create a gnucash account tree display from an <object> form
|
||||
********************************************************************/
|
||||
|
||||
static void
|
||||
set_bools(char * indices, gboolean * array, int num) {
|
||||
int index, n, args;
|
||||
int accum = 0;
|
||||
int choffset = 0;
|
||||
|
||||
for(n=0; n<num; n++) {
|
||||
args = sscanf(indices+accum, "%d%n", &index, &choffset);
|
||||
accum += choffset;
|
||||
if(args == 0) {
|
||||
break;
|
||||
}
|
||||
if(index < num) {
|
||||
array[index] = TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -631,9 +631,7 @@ gnc_html_url_requested_cb(GtkHTML * html, char * url,
|
||||
static int
|
||||
gnc_html_object_requested_cb(GtkHTML * html, GtkHTMLEmbedded * eb,
|
||||
gpointer data) {
|
||||
GtkWidget * widg = NULL;
|
||||
gnc_html * gnchtml = data;
|
||||
int retval = FALSE;
|
||||
GncHTMLObjectCB h;
|
||||
|
||||
if(!eb || !(eb->classid) || !gnc_html_object_handlers) return FALSE;
|
||||
@ -808,7 +806,6 @@ gnc_html_submit_cb(GtkHTML * html, const gchar * method,
|
||||
char * location = NULL;
|
||||
char * new_loc = NULL;
|
||||
char * label = NULL;
|
||||
char * submit_encoding = NULL;
|
||||
char ** action_parts;
|
||||
GHashTable * form_data = gnc_html_unpack_form_data(encoded_form_data);
|
||||
URLType type;
|
||||
|
@ -72,7 +72,6 @@ gnc_ui_get_toplevel (void)
|
||||
static void
|
||||
gnc_mdi_child_set_title (GNCMDIChildInfo *childwin)
|
||||
{
|
||||
GNCBook *book;
|
||||
const char *filename;
|
||||
char *title;
|
||||
|
||||
@ -168,7 +167,6 @@ static void
|
||||
gnc_mdi_child_changed_cb (GnomeMDI * mdi, GnomeMDIChild * not_used,
|
||||
gpointer data)
|
||||
{
|
||||
GNCMDIInfo * mainwin = data;
|
||||
GNCMDIChildInfo * childwin = NULL;
|
||||
GnomeUIInfo * hintinfo;
|
||||
GtkWidget * oldbar;
|
||||
@ -593,9 +591,7 @@ gnc_mdi_restore (GNCMDIInfo * gnc_mdi, const char * filename)
|
||||
void
|
||||
gnc_mdi_create_child_toolbar (GNCMDIInfo * mi, GNCMDIChildInfo * child)
|
||||
{
|
||||
GnomeUIInfo end = GNOMEUIINFO_END;
|
||||
GnomeUIInfo * tbinfo;
|
||||
GnomeUIInfo * cur;
|
||||
GtkToolbar * tb;
|
||||
|
||||
g_return_if_fail (mi != NULL);
|
||||
|
@ -293,7 +293,6 @@ cleanup_extension_info(gpointer extension_info, gpointer not_used)
|
||||
void
|
||||
gnc_add_extension(SCM extension)
|
||||
{
|
||||
GnomeApp *app;
|
||||
ExtensionInfo *ext_info;
|
||||
ext_info = gnc_create_extension_info(extension);
|
||||
if (ext_info == NULL)
|
||||
|
@ -2,15 +2,15 @@
|
||||
#include <guile/gh.h>
|
||||
#include <gnc-module.h>
|
||||
|
||||
void
|
||||
static void
|
||||
guile_main(int argc, char ** argv) {
|
||||
gnc_module_system_init();
|
||||
/* gnc_module_load("gnucash/gnome-utils", 0); */
|
||||
exit(0);
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char ** argv) {
|
||||
gh_enter(argc, argv, guile_main);
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
@ -92,8 +92,6 @@ update_display_lists(gnc_column_view_edit * view) {
|
||||
SCM template_menu_name = gh_eval_str("gnc:report-template-menu-name/name");
|
||||
SCM report_menu_name = gh_eval_str("gnc:report-menu-name");
|
||||
SCM find_report = gh_eval_str("gnc:find-report");
|
||||
SCM get_options = gh_eval_str("gnc:report-options");
|
||||
SCM report_name = gh_eval_str("gnc:report-name");
|
||||
SCM names = gh_call0(get_names);
|
||||
SCM contents =
|
||||
gnc_option_db_lookup_option(view->odb, "__general", "report-list",
|
||||
@ -304,9 +302,7 @@ gnc_column_view_edit_add_cb(GtkButton * button, gpointer user_data) {
|
||||
SCM mark_report = gh_eval_str("gnc:report-set-needs-save?!");
|
||||
SCM find_report = gh_eval_str("gnc:find-report");
|
||||
SCM template_name;
|
||||
SCM set_value = gh_eval_str("gnc:option-set-value");
|
||||
SCM new_report;
|
||||
SCM report_obj;
|
||||
SCM newlist = SCM_EOL;
|
||||
SCM oldlist = r->contents_list;
|
||||
int count;
|
||||
|
@ -159,9 +159,7 @@ gnc_commodities_load_commodities (CommoditiesDialog *cd)
|
||||
{
|
||||
gnc_commodity_table *ct;
|
||||
GList *namespaces;
|
||||
GList *node;
|
||||
int new_row;
|
||||
guint size;
|
||||
|
||||
ct = gnc_get_current_commodities ();
|
||||
|
||||
|
@ -88,8 +88,6 @@ static void gnc_price_dialog_create (PricesDialog *pdb_dialog);
|
||||
static void
|
||||
gnc_prices_set_changed (PricesDialog *pdb_dialog, gboolean changed)
|
||||
{
|
||||
GtkWidget *button;
|
||||
|
||||
pdb_dialog->changed = changed;
|
||||
}
|
||||
|
||||
@ -335,7 +333,6 @@ gui_to_price (PricesDialog *pdb_dialog)
|
||||
{
|
||||
gnc_commodity *commodity;
|
||||
gnc_commodity *currency;
|
||||
const char *source;
|
||||
const char *type;
|
||||
gnc_numeric value;
|
||||
Timespec date;
|
||||
@ -614,7 +611,6 @@ add_clicked (GtkWidget *widget, gpointer data)
|
||||
static void
|
||||
get_quotes_clicked (GtkWidget *widget, gpointer data)
|
||||
{
|
||||
PricesDialog *pdb_dialog = data;
|
||||
GNCBook *book = gnc_get_current_book ();
|
||||
SCM quotes_func;
|
||||
SCM book_scm;
|
||||
@ -774,7 +770,6 @@ gnc_price_dialog_create (PricesDialog *pdb_dialog)
|
||||
GladeXML *xml;
|
||||
GNCPrintAmountInfo print_info;
|
||||
GtkWidget *price_dialog;
|
||||
GtkWidget *button;
|
||||
GtkWidget *entry;
|
||||
GtkWidget *menu;
|
||||
GtkWidget *box;
|
||||
@ -895,7 +890,6 @@ gnc_prices_dialog_create (GtkWidget * parent, PricesDialog *pdb_dialog)
|
||||
|
||||
/* price tree */
|
||||
{
|
||||
GtkWidget *income_radio;
|
||||
GtkWidget *list;
|
||||
|
||||
list = glade_xml_get_widget (xml, "price_list");
|
||||
|
@ -138,8 +138,10 @@ static void advance_toggle( GtkButton *b, SchedXactionEditorDialog *sxed );
|
||||
static gncUIWidget sxe_ledger_get_parent( GNCLedgerDisplay *ld );
|
||||
|
||||
/* ledger callbacks */
|
||||
#if 0
|
||||
static void sxe_register_record_cb( GnucashRegister *reg, gpointer d );
|
||||
static void sxe_register_redraw_all_cb( GnucashRegister *reg, gpointer d );
|
||||
#endif
|
||||
|
||||
static void sxed_reg_recordCB( GtkWidget *w, gpointer d );
|
||||
static void sxed_reg_cancelCB( GtkWidget *w, gpointer d );
|
||||
@ -216,11 +218,13 @@ editor_help_button_clicked(GtkButton *b, SchedXactionEditorDialog *sxed)
|
||||
return;
|
||||
}
|
||||
|
||||
#if 0
|
||||
static void
|
||||
local_print_helper( gpointer key, gpointer value, gpointer ud )
|
||||
{
|
||||
printf( "var: \"%s\"\n", (char*)key );
|
||||
}
|
||||
#endif
|
||||
|
||||
static
|
||||
void
|
||||
@ -230,8 +234,6 @@ editor_ok_button_clicked( GtkButton *b, SchedXactionEditorDialog *sxed )
|
||||
GtkWidget *w, *optEndDate, *optNoEnd, *optNumOccur;
|
||||
GList *sxList;
|
||||
FreqSpec *fs;
|
||||
gint row;
|
||||
time_t tmpDate;
|
||||
GDate *gdate;
|
||||
|
||||
/* FIXME: Do checks on validity and such, interrupting the user if
|
||||
@ -459,7 +461,6 @@ gnc_ui_scheduled_xaction_dialog_create(void)
|
||||
SchedXactionDialog *sxd = NULL;
|
||||
GtkObject *sxdo;
|
||||
GtkWidget *button;
|
||||
GtkWidget *clist;
|
||||
GList *alreadyExisting = NULL;
|
||||
|
||||
alreadyExisting =
|
||||
@ -563,9 +564,6 @@ schedXact_populate( SchedXactionDialog *sxd )
|
||||
GNCBook *book;
|
||||
GList *sxList;
|
||||
GtkCList *sx_clist;
|
||||
FreqSpec *tmpFS;
|
||||
struct tm tmpTm;
|
||||
time_t tmpTime;
|
||||
int i;
|
||||
|
||||
book = gnc_get_current_book ();
|
||||
@ -582,6 +580,7 @@ schedXact_populate( SchedXactionDialog *sxd )
|
||||
GTK_SIGNAL_FUNC(row_select_handler), sxd );
|
||||
}
|
||||
|
||||
#if 0
|
||||
static void
|
||||
sxed_check_close( SchedXactionEditorDialog *sxed )
|
||||
{
|
||||
@ -594,6 +593,7 @@ sxed_check_close( SchedXactionEditorDialog *sxed )
|
||||
/* Check the ledger for changes. */
|
||||
gnc_sxed_reg_check_close( sxed );
|
||||
}
|
||||
#endif
|
||||
|
||||
static gboolean
|
||||
sxed_delete_event( GtkWidget *widget, GdkEvent *evt, gpointer ud )
|
||||
@ -1055,10 +1055,7 @@ schedXact_editor_populate( SchedXactionEditorDialog *sxed )
|
||||
GtkEntry *nameEntry;
|
||||
char *name;
|
||||
time_t tmpDate;
|
||||
int numRec, numRecRem;
|
||||
GnomeDateEdit *gde;
|
||||
SplitRegister *splitReg;
|
||||
GList *splitList;
|
||||
GtkWidget *w;
|
||||
GString *tmpgStr;
|
||||
struct tm *tmpTm;
|
||||
@ -1261,7 +1258,6 @@ delete_button_clicked( GtkButton *b, gpointer d )
|
||||
static char *confirmMessage =
|
||||
"Delete the selected scheduled transactions?";
|
||||
int confirmSel;
|
||||
GtkVBox *vb;
|
||||
GString *realMsg;
|
||||
SchedXaction *sx;
|
||||
|
||||
@ -1356,11 +1352,8 @@ putSchedXactionInClist( gpointer data, gpointer user_data )
|
||||
SchedXactionDialog *sxd;
|
||||
GtkCList *clist;
|
||||
char *text[3];
|
||||
char *tmpStr;
|
||||
GString *freqStr;
|
||||
time_t nextTime;
|
||||
GString *nextDate;
|
||||
time_t now;
|
||||
gint row;
|
||||
int i;
|
||||
GDate gd;
|
||||
@ -1416,6 +1409,7 @@ sxe_ledger_get_parent( GNCLedgerDisplay *ld )
|
||||
return sxed->dialog;
|
||||
}
|
||||
|
||||
#if 0
|
||||
static
|
||||
void
|
||||
sxe_register_record_cb( GnucashRegister *reg, gpointer d )
|
||||
@ -1436,13 +1430,16 @@ sxe_register_record_cb( GnucashRegister *reg, gpointer d )
|
||||
|
||||
gnc_split_register_redraw( splitreg );
|
||||
}
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
static
|
||||
void
|
||||
sxe_register_redraw_all_cb( GnucashRegister *reg, gpointer d )
|
||||
{
|
||||
DEBUG( "FIXME: sxe_register_redraw_all_cb called\n" );
|
||||
}
|
||||
#endif
|
||||
|
||||
static
|
||||
void
|
||||
@ -1695,7 +1692,6 @@ void
|
||||
sxed_reg_expand_trans_checkCB( GtkWidget *w, gpointer d )
|
||||
{
|
||||
SchedXactionEditorDialog *sxed = d;
|
||||
SplitRegister *reg;
|
||||
|
||||
gnc_split_register_expand_current_trans
|
||||
(gnc_ledger_display_get_split_register (sxed->ledger),
|
||||
@ -1746,7 +1742,6 @@ static
|
||||
void
|
||||
sxed_reg_xferCB( GtkWidget *w, gpointer d )
|
||||
{
|
||||
GnomeDialog *gd;
|
||||
/* FIXME: should use a "templatized" xfer dlg. */
|
||||
}
|
||||
|
||||
|
@ -341,8 +341,7 @@ sxftd_compute_sx(SXFromTransInfo *sxfti)
|
||||
GtkWidget *w;
|
||||
gchar *name;
|
||||
GDate date;
|
||||
int index;
|
||||
FreqSpec *fs, *tmpfs;
|
||||
FreqSpec *fs;
|
||||
getEndTuple end_info;
|
||||
guint sxftd_errno = 0; /* 0 == OK, > 0 means dialog needs to be run again */
|
||||
|
||||
@ -470,8 +469,6 @@ static void
|
||||
sxftd_advanced_clicked(GtkWidget *w, gpointer user_data)
|
||||
{
|
||||
SXFromTransInfo *sxfti = user_data;
|
||||
GNCBook *book;
|
||||
GList *sx_list;
|
||||
guint sx_error = sxftd_compute_sx(sxfti);
|
||||
SchedXactionDialog *adv_dlg;
|
||||
SchedXactionEditorDialog *adv_edit_dlg;
|
||||
|
@ -51,6 +51,7 @@
|
||||
#include "gnc-component-manager.h"
|
||||
#include "gnc-engine-util.h"
|
||||
#include "gnc-exp-parser.h"
|
||||
#include "gnc-gui-query.h"
|
||||
#include "gnc-numeric.h"
|
||||
#include "gnc-ui-util.h"
|
||||
#include "gnc-ui.h"
|
||||
@ -189,9 +190,11 @@ static gboolean sxsincelast_populate( sxSinceLastData *sxsld );
|
||||
static void sxsincelast_druid_cancelled( GnomeDruid *druid, gpointer ud );
|
||||
static void sxsincelast_close_handler( gpointer ud );
|
||||
|
||||
#if 0
|
||||
static void sxsincelast_ok_clicked( GtkButton *b, gpointer ud );
|
||||
|
||||
static void sxsincelast_cancel_clicked( GtkButton *b, gpointer ud );
|
||||
#endif
|
||||
static void sxsincelast_entry_changed( GtkEditable *e, gpointer ud );
|
||||
|
||||
static void sxsincelast_destroy( GtkObject *o, gpointer ud );
|
||||
@ -241,26 +244,11 @@ static gboolean inform_or_add( GList *reminders,
|
||||
GList *badList, GList **goodList );
|
||||
|
||||
int parse_vars_from_formula( const char *formula, GHashTable *varHash );
|
||||
static void sx_obsolete_ok_clicked(GtkButton *button, gpointer user_data);
|
||||
|
||||
static void sx_obsolete_cancel_clicked(GtkButton *button, gpointer user_data);
|
||||
static void sx_obsolete_row_unsel(GtkCList *clist,
|
||||
gint row,
|
||||
gint column,
|
||||
GdkEventButton *event,
|
||||
gpointer user_data);
|
||||
|
||||
static void sx_obsolete_close_handler(gpointer user_data);
|
||||
|
||||
static void sx_obsolete_select_all_clicked(GtkButton *button,
|
||||
gpointer user_data);
|
||||
static void sx_obsolete_unselect_all_clicked(GtkButton *button,
|
||||
gpointer user_data);
|
||||
static void sx_obsolete_row_sel(GtkCList *clist,
|
||||
gint row,
|
||||
gint column,
|
||||
GdkEventButton *event,
|
||||
gpointer user_data);
|
||||
|
||||
/**
|
||||
* Used to wrap for the book-open hook, where the book filename is given.
|
||||
@ -442,6 +430,7 @@ reminders_next( GnomeDruidPage *druid_page,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
#if 0
|
||||
static gboolean
|
||||
reminders_back( GnomeDruidPage *druid_page,
|
||||
gpointer arg1, gpointer ud )
|
||||
@ -449,6 +438,7 @@ reminders_back( GnomeDruidPage *druid_page,
|
||||
DEBUG( "reminders_back" );
|
||||
return FALSE;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
reminders_finish( GnomeDruidPage *druid_page,
|
||||
@ -680,7 +670,6 @@ static void
|
||||
sxsincelast_init( sxSinceLastData *sxsld )
|
||||
{
|
||||
GtkWidget *w;
|
||||
int i;
|
||||
static widgetSignalHandlerTuple widgets[] = {
|
||||
{ SINCELAST_DRUID, "cancel", sxsincelast_druid_cancelled },
|
||||
|
||||
@ -817,12 +806,15 @@ generate_instances( SchedXaction *sx,
|
||||
seqStateData = NULL;
|
||||
}
|
||||
|
||||
#if 0
|
||||
static void
|
||||
free_gdate_list_elts( gpointer data, gpointer user_data )
|
||||
{
|
||||
g_date_free( (GDate*)data );
|
||||
}
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
static void
|
||||
_free_reminderTuple_list_elts( gpointer data, gpointer user_data )
|
||||
{
|
||||
@ -830,6 +822,7 @@ _free_reminderTuple_list_elts( gpointer data, gpointer user_data )
|
||||
g_date_free( ((reminderTuple*)data)->occurDate );
|
||||
g_free( (reminderTuple*)data );
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
_free_varBindings_hash_elts( gpointer key, gpointer value, gpointer data )
|
||||
@ -861,7 +854,6 @@ process_auto_create_list( GList *autoCreateList, sxSinceLastData *sxsld )
|
||||
GList *thisGUID;
|
||||
autoCreateTuple *act;
|
||||
gboolean autoCreateState, notifyState;
|
||||
char *rowText[2];
|
||||
|
||||
/* get the "automagically created and notification requested"
|
||||
* register, and create the entries in it. */
|
||||
@ -990,7 +982,6 @@ processRemoveList(GList *removeList, sxSinceLastData *sxsld)
|
||||
GString *tmp_str;
|
||||
toDeleteTuple *tdt;
|
||||
FreqSpec *fs;
|
||||
GDate *gd;
|
||||
rowtext[2] = g_new0(gchar, GNC_D_BUF_WIDTH );
|
||||
|
||||
cl = GTK_CLIST( glade_xml_get_widget( sxsld->gxml,
|
||||
@ -1081,8 +1072,6 @@ sxsincelast_populate( sxSinceLastData *sxsld )
|
||||
GDate *instDate;
|
||||
gint daysInAdvance;
|
||||
gboolean autocreateState, notifyState;
|
||||
GtkWidget *w;
|
||||
reminderTuple *rt;
|
||||
gboolean showIt;
|
||||
autoCreateTuple *act;
|
||||
toCreateTuple *tct;
|
||||
@ -1227,26 +1216,12 @@ sxsincelast_close_handler( gpointer ud )
|
||||
clean_sincelast_data( sxsld );
|
||||
}
|
||||
|
||||
static void
|
||||
free_elts( gpointer data, gpointer user_data )
|
||||
{
|
||||
g_free( data );
|
||||
}
|
||||
|
||||
#if 0
|
||||
static void
|
||||
sxsincelast_ok_clicked( GtkButton *b, gpointer ud )
|
||||
{
|
||||
sxSinceLastData *sxsld;
|
||||
GtkWidget *dlg;
|
||||
GtkWidget *o;
|
||||
GtkCList *cl;
|
||||
time_t gdeDate;
|
||||
GList *sxList;
|
||||
GNCBook *book;
|
||||
SchedXaction *sx;
|
||||
GDate gd, *endDate;
|
||||
gint row;
|
||||
char *rowText[2];
|
||||
toCreateTuple *tct;
|
||||
|
||||
GList *tcList;
|
||||
@ -1303,6 +1278,7 @@ sxsincelast_cancel_clicked( GtkButton *o, gpointer ud )
|
||||
{
|
||||
sxsincelast_close_handler( ud );
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
andequal_numerics_set( gpointer key, gpointer value, gpointer data )
|
||||
@ -1626,7 +1602,6 @@ create_transactions_on( SchedXaction *sx, GDate *gd,
|
||||
AccountGroup *ag;
|
||||
Account *acct;
|
||||
char *id;
|
||||
char tmpBuf[GNC_D_BUF_WIDTH];
|
||||
gboolean createdTCT;
|
||||
|
||||
|
||||
@ -1708,7 +1683,7 @@ clear_variable_numerics( gpointer key, gpointer value, gpointer data )
|
||||
void
|
||||
sxsl_get_sx_vars( SchedXaction *sx, GHashTable *varHash )
|
||||
{
|
||||
GList *splitList, *tmpL;
|
||||
GList *splitList;
|
||||
kvp_frame *kvpf;
|
||||
kvp_value *kvp_val;
|
||||
Split *s;
|
||||
@ -2237,7 +2212,6 @@ create_autoCreate_gen_ledger( sxSinceLastData *sxsld )
|
||||
GtkWidget *vbox;
|
||||
GtkWidget *toolbar;
|
||||
GtkWidget *regWidget;
|
||||
GtkWidget *popup;
|
||||
|
||||
sxsld->ac_ledger = gnc_ledger_display_gl();
|
||||
|
||||
|
@ -413,7 +413,6 @@ gnc_xfer_dialog_quickfill( XferDialog *xferData )
|
||||
{
|
||||
char *desc;
|
||||
Account *match_account; /* the matched text was from this account */
|
||||
Transaction *trans; /* the transaction to autocomplete from */
|
||||
Split *split; /* the split to autocomplete from */
|
||||
Split *other = NULL; /* the other split of the transaction */
|
||||
Account *other_acct = NULL; /* the Account of the other split */
|
||||
@ -519,7 +518,6 @@ gnc_xfer_description_insert_cb(GtkEntry *entry,
|
||||
XferDialog *xferData)
|
||||
{
|
||||
GdkWChar *change_text_w, *old_text_w, *new_text_w;
|
||||
int old_position;
|
||||
int change_text_len, old_text_len, new_text_len, old_pos;
|
||||
char *new_text;
|
||||
const char *old_text, *match_str = NULL;
|
||||
@ -1310,8 +1308,6 @@ gnc_xfer_dialog_create(GtkWidget * parent, XferDialog *xferData)
|
||||
/* optional intermediate currency account */
|
||||
{
|
||||
GtkWidget *frame;
|
||||
GtkWidget *label;
|
||||
GtkWidget *combo;
|
||||
GtkWidget *entry;
|
||||
GtkWidget *edit;
|
||||
GtkWidget *hbox;
|
||||
|
@ -135,8 +135,6 @@ gnc_network_build_url(const char * action) {
|
||||
|
||||
static void
|
||||
get_pp_string_cb(char * string, gpointer data) {
|
||||
int l, i;
|
||||
|
||||
if(!data) return;
|
||||
if(!string) {
|
||||
*((char **)data) = NULL;
|
||||
@ -451,7 +449,6 @@ gnc_network_make_keypair_handler(gnc_html * html, GtkHTMLEmbedded * eb,
|
||||
static int
|
||||
gnc_network_store_uid_handler(gnc_html * html, GtkHTMLEmbedded * eb,
|
||||
gpointer data) {
|
||||
int retval = TRUE;
|
||||
char * uid = g_hash_table_lookup(eb->params, "uid");
|
||||
gnc_set_option("__gnc_network", "uid", gh_str02scm(uid));
|
||||
return TRUE;
|
||||
|
@ -305,7 +305,6 @@ gnc_reconcile_list_toggle_children(Account *account, GNCReconcileList *list, Spl
|
||||
Account *other_account;
|
||||
GNCReconcileList *current_list;
|
||||
gint row;
|
||||
GtkCList *split_list;
|
||||
|
||||
other_split = node->data;
|
||||
other_account = xaccSplitGetAccount(other_split);
|
||||
@ -336,7 +335,6 @@ gnc_reconcile_list_toggle (GNCReconcileList *list)
|
||||
{
|
||||
Split *split, *current;
|
||||
gint row;
|
||||
Account * account;
|
||||
gboolean include_children;
|
||||
|
||||
g_return_if_fail (IS_GNC_RECONCILE_LIST(list));
|
||||
|
@ -278,10 +278,6 @@ static gboolean
|
||||
gnc_html_report_url_cb (const char *location, const char *label,
|
||||
gboolean new_window, GNCURLResult *result)
|
||||
{
|
||||
gnc_report_window * rwin;
|
||||
GtkHTMLStream * handle;
|
||||
char * url;
|
||||
|
||||
g_return_val_if_fail (location != NULL, FALSE);
|
||||
g_return_val_if_fail (result != NULL, FALSE);
|
||||
|
||||
|
@ -40,6 +40,7 @@
|
||||
#include "gnc-component-manager.h"
|
||||
#include "gnc-engine-util.h"
|
||||
#include "gnc-engine.h"
|
||||
#include "gnc-gui-query.h"
|
||||
#include "gnc-html.h"
|
||||
#include "gnc-ui.h"
|
||||
#include "gtkselect.h"
|
||||
@ -471,8 +472,6 @@ static void
|
||||
gnc_acct_tree_window_menu_tax_info_cb (GtkWidget * widget,
|
||||
GnomeMDIChild * child) {
|
||||
GNCMDIChildInfo * mc = gtk_object_get_user_data(GTK_OBJECT(child));
|
||||
GNCAcctTreeWin * win = mc->user_data;
|
||||
Account * account = gnc_acct_tree_window_get_current_account(win);
|
||||
gnc_tax_info_dialog(GTK_WIDGET(mc->app));
|
||||
}
|
||||
|
||||
@ -556,13 +555,6 @@ gnc_acct_tree_window_menu_open_cb (GtkWidget *widget, GnomeMDIChild * child)
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
gnc_acct_tree_window_destroy_cb (GtkObject *object, gpointer user_data)
|
||||
{
|
||||
GNCAcctTreeWin *win = user_data;
|
||||
gnc_acct_tree_window_destroy(win);
|
||||
}
|
||||
|
||||
static void
|
||||
gnc_acct_tree_window_activate_cb(GNCMainWinAccountTree *tree,
|
||||
Account *account,
|
||||
@ -1099,7 +1091,6 @@ gnc_options_dialog_close_cb(GNCOptionWin * propertybox,
|
||||
void
|
||||
gnc_acct_tree_window_toolbar_options_cb(GtkWidget * widget, gpointer data) {
|
||||
GNCAcctTreeWin * win = data;
|
||||
struct acct_tree_params_data * prm = NULL;
|
||||
|
||||
if(win->editor_dialog) {
|
||||
gdk_window_raise(GTK_WIDGET
|
||||
|
@ -462,7 +462,6 @@ summarybar_refresh_handler(GHashTable * changes, gpointer user_data) {
|
||||
GtkWidget *
|
||||
gnc_main_window_summary_new (void) {
|
||||
GNCMainSummary * retval = g_new0(GNCMainSummary, 1);
|
||||
GtkWidget * summarybar;
|
||||
GNCCurrencyItem * def_item;
|
||||
gnc_commodity * default_currency = gnc_default_currency ();
|
||||
|
||||
|
@ -102,7 +102,6 @@ gnc_shutdown (int exit_status)
|
||||
static void
|
||||
gnc_main_window_app_created_cb(GnomeMDI * mdi, GnomeApp * app,
|
||||
gpointer data) {
|
||||
GNCMDIInfo * mainwin = data;
|
||||
GtkWidget * summarybar;
|
||||
GtkWidget * statusbar;
|
||||
|
||||
@ -462,12 +461,6 @@ gnc_main_window_fincalc_cb(GtkWidget *widget, gpointer data)
|
||||
gnc_ui_fincalc_dialog_create();
|
||||
}
|
||||
|
||||
static void
|
||||
gnc_ui_mainWindow_scheduled_xaction_cb(GtkWidget *widget, gpointer data)
|
||||
{
|
||||
gnc_ui_scheduled_xaction_dialog_create();
|
||||
}
|
||||
|
||||
static void
|
||||
gnc_main_window_gl_cb(GtkWidget *widget, gpointer data)
|
||||
{
|
||||
@ -728,11 +721,6 @@ gnc_main_window_create_menus(GNCMDIInfo * maininfo)
|
||||
GNOMEUIINFO_END
|
||||
};
|
||||
|
||||
static GnomeUIInfo gnc_developer_menu_template[] =
|
||||
{
|
||||
GNOMEUIINFO_END
|
||||
};
|
||||
|
||||
static GnomeUIInfo gnc_main_menu_template[] =
|
||||
{
|
||||
GNOMEUIINFO_MENU_FILE_TREE(gnc_file_menu_template),
|
||||
|
@ -401,10 +401,7 @@ gnc_recn_interest_xfer_no_auto_clicked_cb(GtkButton *button,
|
||||
static void
|
||||
recnInterestXferWindow( startRecnWindowData *data)
|
||||
{
|
||||
GtkWidget *frame;
|
||||
GtkWidget *button;
|
||||
gchar *title;
|
||||
gint result;
|
||||
|
||||
if( !account_type_has_auto_interest_xfer( data->account_type ) ) return;
|
||||
|
||||
|
@ -221,7 +221,6 @@ void
|
||||
gnc_gpg_encrypt_async(const gchar * cleartext, int cleartext_size,
|
||||
const gchar * recipient, const gchar * passphrase,
|
||||
GncGPGCb cb, gpointer data) {
|
||||
char * retval = NULL;
|
||||
char * argv[] =
|
||||
{
|
||||
"gpg",
|
||||
@ -279,8 +278,6 @@ gnc_gpg_decrypt_async(const gchar * cryptext, int cryptext_size,
|
||||
const gchar * passphrase,
|
||||
void (* cb)(char * clrtxt, gpointer d),
|
||||
gpointer data) {
|
||||
char * retval = NULL;
|
||||
|
||||
char * argv[] =
|
||||
{ "gpg",
|
||||
"-q",
|
||||
@ -326,7 +323,6 @@ gnc_gpg_export(const gchar * keyname) {
|
||||
|
||||
void
|
||||
gnc_gpg_export_async(const gchar * keyname, GncGPGCb cb, gpointer data) {
|
||||
char * retval;
|
||||
char * argv[] =
|
||||
{ "gpg",
|
||||
"-q",
|
||||
|
Loading…
Reference in New Issue
Block a user