gtk init and layout of object
Initializing the GTK+ libraries is extremely simple for most applications.
By calling gtk_init(),
all initialization work is automatically performed for you.
It begins by setting up the GTK+ environment,
including obtaining the GDK display and
preparing the GLib main event loop and
basic signal handling.
GObject
GinitiallyUnowned
GtkObject
GtkWidget
GtkContainer
GtkBin
GtkWindow
compiler parameters:
gcc -Wall -g helloworld.c -o helloworld \
`pkg-config --cflags gtk+-2.0` \
`pkg-config --libs gtk+-2.0`
or
gcc -Wall -g helloworld.c -o helloworld \
`pkg-config --cflags --libs gtk+-2.0`
% pkg-config --libs gtk+-2.0
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
GTK+ (-lgtk): Graphical widgets
GDK (-lgdk): The standard graphics rendering library
GdkPixbuf (-lgdk_pixbuf): Client-side image manipulation
Pango (-lpango): Font rendering and output
GObject (-lgobject): Object-oriented type system
GLib (-lglib): Data types and utility functions
vim 中的制动不全的功能, 它默认回去找/usr/include 等目录
ctags -R 递归生成 ctags 生成的文件名是 ctags, 然后复制到vim编辑的当前目录(看vim的时候好像是可以指定ctags的 ?)
然后就可以使用 ctrl+p 补全了
执行ctags -R