mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
patches from Dirk Shoenberger for kde/qt
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1681 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
7e14c4e940
commit
4900918f93
@ -62,6 +62,11 @@ obj/gnome/%.o: %.c
|
||||
$(CC) -Wp,-MD,$(basename $@).d.tmp -c $(CFLAGS) ${GNOME_CFLAGS} -DGNOME -o $@ $<
|
||||
${cleanupdeps}
|
||||
|
||||
obj/qt/%.o: %.c
|
||||
@if [ ! -e $(dir $@) ]; then mkdir -p $(dir $@); fi
|
||||
$(CC) -Wp,-MD,$(basename $@).d.tmp -c $(CFLAGS) ${QT_CFLAGS} -DKDE -o $@ $<
|
||||
${cleanupdeps}
|
||||
|
||||
obj/qt/%.o: %.cpp
|
||||
@if [ ! -e $(dir $@) ]; then mkdir -p $(dir $@); fi
|
||||
$(CC) -Wp,-MD,$(basename $@).d.tmp -c $(CFLAGS) ${QT_CFLAGS} -DKDE -o $@ $<
|
||||
|
@ -33,6 +33,7 @@ INCLPATH = -I. \
|
||||
|
||||
GNOME_CFLAGS += -I./gnome
|
||||
MOTIF_CFLAGS += -I./motif
|
||||
KDE_CFLAGS += -I./qt -I/usr/local/qt/include
|
||||
|
||||
CFLAGS = @CFLAGS@ @X_CFLAGS@ ${INCLPATH} ${CPPFLAGS}
|
||||
|
||||
|
@ -1540,7 +1540,7 @@ void
|
||||
xaccTransSetDate (Transaction *trans, int day, int mon, int year)
|
||||
{
|
||||
struct tm date;
|
||||
long long secs;
|
||||
long long secs = 0;
|
||||
long long era = 0;
|
||||
|
||||
year -= 1900;
|
||||
@ -1584,7 +1584,7 @@ xaccTransSetDateToday (Transaction *trans)
|
||||
trans->date_posted.tv_nsec = 1000 * tv.tv_usec;
|
||||
|
||||
PINFO ("xaccTransSetDateToday(): addr=%p set date to %lu %s \n",
|
||||
trans, tv.tv_sec, ctime (&tv.tv_sec));
|
||||
trans, tv.tv_sec, ctime ((time_t *)&tv.tv_sec));
|
||||
|
||||
}
|
||||
|
||||
|
@ -193,9 +193,9 @@ struct _BasicCell {
|
||||
const char * (*enter_cell) (BasicCell *,
|
||||
const char * current);
|
||||
const char * (*modify_verify) (BasicCell *,
|
||||
const char *old,
|
||||
const char *add,
|
||||
const char *new);
|
||||
const char *old_value,
|
||||
const char *add_str,
|
||||
const char *new_value);
|
||||
const char * (*leave_cell) (BasicCell *,
|
||||
const char * current);
|
||||
|
||||
|
@ -62,6 +62,10 @@
|
||||
#include "table-gtk.h"
|
||||
#endif
|
||||
|
||||
#ifdef KDE
|
||||
#include "table-qt.h"
|
||||
#endif
|
||||
|
||||
#include "basiccell.h"
|
||||
#include "cellblock.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user