[ Home | Dev | Build | Git | Bash | Py | Cpp | Gtk | Other ]
Docs
https://docs.gtk.org/gtk3/drawing-model.html
https://docs.gtk.org/gtk3/visual_index.html
Tutorial
https://zetcode.com/gui/gtk2/
https://github.com/RainMark/gtk3-tutorial...
https://www.cc.gatech.edu/data_files/public/doc/gtk...
https://toshiocp.github.io/Gtk4-tutorial/
Build simple program
gcc -o simple simple.c $(pkg-config --cflags --libs gtk+-3.0)
cbuild simple simple.c gtk+-3.0
Gtk/Glib version
https://askubuntu.com/questions/78377/
dpkg -l libglib2.0-0 libgtk-3-0 | grep ^ii
GObject
gobject-tutorial
gobject-new-unref
https://docs.gtk.org/gobject/floating-refs.html
gobject-construction
check-if-freed
object-unref
object-unref
https://discourse.gnome.org/t/memory-leak-dispose-and-finalize-what-are-the-good-practices/11415/2
GTK+ par l'exemple.
https://nicolasj.developpez.com/gtk/cours/?page=les-raccourc
Toolbar
How to properly add images to buttons
TreeView
gtk3-treeview-tutorial
zetcode-gtk2-treeview
wikibooks-gtk-treeview
GtkBox vs GtkGrid
Alternative to deprecated gtk_alignment_new
Examples
Reference
https://wiki.gnome.org/Newcomers/OldDragNDropTutorial
https://wiki.gnome.org/HowDoI/DragAndDrop
https://www.freedesktop.org/wiki/Specifications/direct-save/
Source | Destination |
---|---|
Setup source
|
Setup destination
|
1 - "drag-begin" Drag operation triggered
|
2 - "drag-motion" Cursor moves over the drop target, the handler is called for each cursor movement
|
4 - "drag-data-get" Data requested from a drop destination
|
3 - "drag-drop" Button released over destination
|
"drag-failed"
|
5 - "drag-data-received" Button release over destination
|
"drag-data-delete"
|
|
"drag-end"
|
|
"drag-leave"
|
Drop down menu to Toolbar Item
https://stackoverflow.com/questions/9132440/gtk-drop-down-me
GTK3 and multithreading
Redirect stdout in a text window
https://stackoverflow.com/questions/48478615/how-to-rediredt
https://mail.gnome.org/archives/gtk-list/2006-February/msg00
Popup menu destruction
https://discourse.gnome.org/t/gtk-popup-menu-position-and-destroy/4367