Re: Timer start registration breaks the gtk_main()
- From: Tadej Borovšak <tadeboro gmail com>
- To: gtk-list gnome org
- Subject: Re: Timer start registration breaks the gtk_main()
- Date: Sat, 26 Mar 2011 20:54:34 +0100
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?
Cheers,
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeboro gmail com
tadej borovsak gmail com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]