Created
November 17, 2010 06:46
-
-
Save richardlehane/703077 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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