Mercurial > pidgin.yaz
view finch/libgnt/test/parse.c @ 25189:d15b50a4db53
propagate from branch 'im.pidgin.pidgin' (head c06356e8e8d2c586f0192a5564053c2584020da8)
to branch 'im.pidgin.cpw.malu.xmpp.attention' (head 9488baa50a21f545b48b23e5530ac9b1fa8fd9f7)
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Tue, 23 Dec 2008 20:14:13 +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; }