[kde-linux] (no subject)



I am tring to use Gtk+ to make a interface.I think gtk_init() and
gtk_main() functions are necessary in every GUI application. I cannot
see my window unless the whole application run to function gtk_main().
The following code:

int main(int argc, char *argv[])
{
GtkWidget* window;

gtk_init(&argc,&argv);

window = create_window();

gtk_widget_show(window);

capture_voip();
gtk_main();
return EXIT_SUCCESS;
}
when I use capture_voip() which is a function infinitely capturing
network packages before gtk_main(), I cannot see the window. Then if I
put gtk_main() before capture_voip(),application will not run into
capture_voip().
How could I use capture_voip() while my window is available,somebody
could tell me?Thanks!

--
Best Regards
-----------------------------------------------
Dominique's Blog:
http://spaces.msn.com/dominiquewj
___________________________________________________
This message is from the kde-linux mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde-linux.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.



Relevant Pages

  • Re: Linux, X, ld, gcc, linking, shared libraries and stuff
    ... It doesn't matter what GUI we're talking about, ... as initial entry of the mouse pointer into a window ("enter / leave" ... out the documentation from Microsoft and for X which confirms it, ... graphics inside the vertical retrace period...this way, ...
    (alt.lang.asm)
  • Re: MacUpdatePromo
    ... easy way to know which app will work which way. ... so users are supposed to know all GUI guidelines and understand the ... when they close a window. ... them to quit. ...
    (comp.sys.mac.advocacy)
  • Re: What does seahorse do?
    ... in closing the window, and pretending it never popped up" isn't very ... checking GPG signatures on list posts, I will studiously avoid GUI ... Help stamp out Mickey-Mouse computer interfaces -- Menus are for Restaurants! ...
    (Ubuntu)
  • Re: Very Basic Help Needed
    ... "install samba etc" command, which I assume worked as I didn't get any error ... instead of using the Run window, ... many of the programs you use in a gui are actually ... the GUI is not set up for root usage. ...
    (Debian-User)
  • Re: SATARaid...?
    ... JavaSataRaid graphics user interface is prewired to start with ... only a GUI and should have no effect. ... > " in it's window. ... >> toolssystem startup and uncheck the box next to the java sata raid. ...
    (microsoft.public.windowsxp.help_and_support)