This is looking pretty good.
Originally Posted by MK27
GTK+ - Wikipedia, the free encyclopedia
Here they show some C code:
This code seems understandable, something I can work with.
int main (int argc, char *argv)
/* Create the main, top level window */
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
/* Give it the title */
gtk_window_set_title(GTK_WINDOW(window), "Hello, world!");
** Map the destroy signal of the window to gtk_main_quit;
** When the window is about to be destroyed, we get a notification and
** stop the main GTK+ loop by returning 0
g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL);
** Assign the variable "label" to a new GTK label,
** with the text "Hello, world!"
label = gtk_label_new("Hello, world!");
/* Plot the label onto the main window */
/* Make sure that everything, window and label, are visible */
** Start the main loop, and do nothing (block) until
** the application is closed
(The "GTK+ example using Vala instead of C" looks even better,
but its an extra layer to deal with.)
What I am not clear about is will GTK+ also need "X Window System",
and/or "GLib Object System, or GObject"?
What I need the graphics for is mostly for VisualControls(form,buttons,listbox,etc.),
and maybe a little bit of pixel tweaking(replace one color with another).