Mercurial > pidgin
view finch/libgnt/test/parse.c @ 22976:93e9c1ba9498
merge of '383b6a0002c1ecea40d3836f462b7119e6c6f473'
and 'acfb910199a1f3bb2621328feae0a8d1b8c87f77'
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Fri, 16 May 2008 18:21:57 +0000 |
parents | 5f204f55af09 |
children |
line wrap: on
line source
#include "gntutils.h" int main() { GntWidget *win, *button; gnt_init(); gnt_util_parse_widgets("<vwindow id='0' fill='0' align='2'><label>This is a test.</label><button id='1'>OK</button></vwindow>", 2, &win, &button); g_signal_connect_swapped(G_OBJECT(button), "activate", G_CALLBACK(gnt_widget_destroy), win); gnt_widget_show(win); gnt_main(); gnt_quit(); return 0; }