Re: Timer start registration breaks the gtk_main()
- From: ikorot earthlink net
 
- To: Tadej Borovšak <tadeboro gmail com>, gtk-list gnome org
 
- Subject: Re: Timer start registration breaks the gtk_main()
 
- Date: Sat, 26 Mar 2011 20:20:36 -0700 (GMT-07:00)
 
Tadej,
-----Original Message-----
>From: Tadej Borovšak <tadeboro gmail com>
>Sent: Mar 26, 2011 12:54 PM
>To: gtk-list gnome org
>Subject: Re: Timer start registration breaks the gtk_main()
>
>Hello.
>
>> int main()
>> {
>>       CFrame *frame = new CFrame();
>>       result = frame->OpenPort();
>>       if( !result )
>>           return 1;
>>       else
>>       {
>>            g_timer_add_seconds( 1, (GSourceFunc) frame->ReadData(), NULL );
>>            gtk_widget_show( window );
>>            frame->ReadData();
>>            gtk_main();
>>       }
>> }
>
>Where is your gtk_init() call?
I was too lazy to type it in. I was not at my computer to do
copy&paste.
>
>Cheers,
>Tadej
>
>-- 
>Tadej Borovšak
>tadeboro.blogspot.com
>tadeboro gmail com
>tadej borovsak gmail com
>
>_______________________________________________
>gtk-list mailing list
>gtk-list gnome org
>http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]