Skip to content

Instantly share code, notes, and snippets.

@richardlehane
Created November 17, 2010 06:46
Show Gist options
  • Save richardlehane/703077 to your computer and use it in GitHub Desktop.
Save richardlehane/703077 to your computer and use it in GitHub Desktop.
#include "itchy.h"
int main (int argc, char* argv[]) {
char* new_doc = "<hello/>";
gtk_init(&argc, &argv);
hello = itchy_application_new();
doc = itchy_doc_new(new_doc, "hello", 0);
itchy_application_add_doc(hello, doc);
context = itchy_element_ctx_new("hello", "world");
world = itchy_text_entry_new("World", context);
form = itchy_formview_new();
itchy_formview_pack(form, world);
itchy_application_add_view(hello, form);
return itchy_application_run(hello);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment