Hi,
I have a problem in following function:

on_btnsetval_clicked                   (GtkButton       *button,                       
                
                                        gpointer        user_data)
{
    //GtkSpinButton* spinJday, spinJmonth, spinJyr;
    GtkSpinButton* spinGday, spinGmonth, spinGyr;   
    float valGday,valGmonth,valGyr;   
    time_t bin_time;
    struct tm *br_time;
   
    time(&bin_time);
    br_time = localtime(&bin_time);
       
    valGday = br_time->tm_mday;
    valGmonth = 1+br_time->tm_mon;
    valGyr = 1900+br_time->tm_year;

    //with this lines there is no error       

    spinGday =       GTK_SPIN_BUTTON(lookup_widget(GTK_WIDGET(button),"spinGday"));   
    gtk_spin_button_set_value(spinGday,valGday);

    //when i add this lines gives following error?!?!?

    spinGyr = GTK_SPIN_BUTTON(lookup_widget(GTK_WIDGET(button),"spinGyr"));   
    gtk_spin_button_set_value(spinGyr,valGyr);
   
}

when i compile program, it give error : incompatible type for arg 1 for 
gtk_spin_button_set_value.
There are 3 spin buttons that I want to set their value togeter. What can i do?

Thanks,
Alan




____________________________________________________________
Get 250 full-color business cards FREE right now!
http://businesscards.lycos.com 



_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to