[kde-linux] (no subject)
- From: "Dominique Wong" <dominiquewj@xxxxxxxxx>
- Date: Mon, 26 Jun 2006 16:48:05 +0800
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.
- Follow-Ups:
- [kde-linux] Shift Windows, Documents?
- From: Ted Goranson
- Re: [kde-linux] (no subject)
- From: Andrew Walbran
- [kde-linux] Shift Windows, Documents?
- Prev by Date: Re: [kde] make problem arts-1.5.3
- Next by Date: Re: [kde-linux] (no subject)
- Previous by thread: [kde] unmount usb mounted device
- Next by thread: Re: [kde-linux] (no subject)
- Index(es):
Relevant Pages
|