[kde-linux] (no subject)

Dominique Wong dominiquewj at gmail.com
Mon Jun 26 08:48:05 UTC 2006


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



More information about the kde-linux mailing list