Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Gtk+/Gnome Application Development
Prev Home Next

Initialization

First, GTK+ must be initialized:


  gtk_init(&argc, &argv);

This call connects to an X server, and parses some default arguments understood by all GTK+ programs. Parsed arguments are removed from argv, and argc is decremented accordingly. gtk_init() also registers a "cleanup function" using atexit(). In practice, this is only important when you fork(); the child process must exit with _exit() rather than exit() to avoid shutting down GTK+ in the parent.

Gtk+/Gnome Application Development
Prev Home Next

 
 
  Published under free license. Design by Interspire