Re: Timer start registration breaks the gtk_main()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx
tadej.borovsak@xxxxxxxxx

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list



[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux