* src/gnome/gnc-frequency.c: fixed some type problems.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4730 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Rob Browning 2001-06-18 16:44:03 +00:00
parent 42b225b648
commit 5ab671c635

View File

@ -204,8 +204,7 @@ gnc_frequency_init( GNCFrequency *gf )
o = glade_xml_get_widget( gf->gxml, optionMenus[i].name ); o = glade_xml_get_widget( gf->gxml, optionMenus[i].name );
gnc_option_menu_init( GTK_WIDGET(o) ); gnc_option_menu_init( GTK_WIDGET(o) );
if ( optionMenus[i].fn != NULL ) { if ( optionMenus[i].fn != NULL ) {
GtkMenu *m = gtk_option_menu_get_menu(GTK_OPTION_MENU(o)); o = gtk_option_menu_get_menu(GTK_OPTION_MENU(o));
o = GTK_OBJECT( m );
// FIXME: having the user-data be a struct of a // FIXME: having the user-data be a struct of a
// calendar name and the GNCFrequency would allow a // calendar name and the GNCFrequency would allow a
// single callback fn... // single callback fn...
@ -249,7 +248,7 @@ gnc_frequency_setup( GNCFrequency *gf, FreqSpec *fs )
int page; int page;
time_t tmpTT; time_t tmpTT;
struct tm *tmpTm; struct tm *tmpTm;
GtkObject *o; GtkWidget *o;
FreqSpec *subFS; FreqSpec *subFS;
GList *list; GList *list;
int tmpInt; int tmpInt;
@ -444,7 +443,7 @@ gnc_frequency_save_state( GNCFrequency *gf, FreqSpec *fs, GDate *outStartDate )
gint page; gint page;
struct tm *tmpTm; struct tm *tmpTm;
guint day, month, year; guint day, month, year;
GtkObject *o; GtkWidget *o;
UIFreqType uift; UIFreqType uift;
FreqSpec *tmpFS; FreqSpec *tmpFS;
gint tmpInt; gint tmpInt;
@ -713,7 +712,7 @@ update_cal( GNCFrequency *gf, GtkCalendar *cal )
void void
update_appropriate_cal( GNCFrequency *gf ) update_appropriate_cal( GNCFrequency *gf )
{ {
GtkObject *o; GtkWidget *o;
gint page; gint page;
UIFreqType uift; UIFreqType uift;
@ -805,7 +804,7 @@ void
monthly_sel_changed( GtkButton *b, gpointer d ) monthly_sel_changed( GtkButton *b, gpointer d )
{ {
GNCFrequency *gf; GNCFrequency *gf;
GtkObject *o; GtkWidget *o;
GDate *gd; GDate *gd;
guint dayOfMonth; guint dayOfMonth;
struct tm *tmptm; struct tm *tmptm;
@ -850,7 +849,7 @@ void
semimonthly_sel_changed( GtkButton *b, gpointer d ) semimonthly_sel_changed( GtkButton *b, gpointer d )
{ {
GNCFrequency *gf; GNCFrequency *gf;
GtkObject *o; GtkWidget *o;
gint tmpint; gint tmpint;
time_t tmptt; time_t tmptt;
struct tm *tmptm; struct tm *tmptm;
@ -883,7 +882,7 @@ void
yearly_sel_changed( GtkButton *b, gpointer d ) yearly_sel_changed( GtkButton *b, gpointer d )
{ {
GNCFrequency *gf; GNCFrequency *gf;
GtkObject *o; GtkWidget *o;
time_t tmptt; time_t tmptt;
struct tm *tmptm; struct tm *tmptm;
gint tmpint; gint tmpint;
@ -941,7 +940,7 @@ void
start_date_changed( GnomeDateEdit *gde, gpointer d ) start_date_changed( GnomeDateEdit *gde, gpointer d )
{ {
GNCFrequency *gf; GNCFrequency *gf;
GtkObject *o; GtkWidget *o;
struct tm *tmpTm; struct tm *tmpTm;
time_t dateFromGDE; time_t dateFromGDE;
gint tmpint; gint tmpint;