Mercurial > pidgin
diff finch/libgnt/test/file.c @ 18510:f104e1d45d85
Changes to the test apps.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 13 Jul 2007 01:30:08 +0000 |
parents | f00f2e283ffb |
children | 57d350900136 |
line wrap: on
line diff
--- a/finch/libgnt/test/file.c Fri Jul 13 01:27:31 2007 +0000 +++ b/finch/libgnt/test/file.c Fri Jul 13 01:30:08 2007 +0000 @@ -1,9 +1,16 @@ #include "gnt.h" #include "gntfilesel.h" +static void +file_selected(GntFileSel *sel, const char *path, const char *filename) +{ + g_printerr("%s %s\n", path, filename); +} + int main() { freopen(".error", "w", stderr); + fprintf(stdout, "\x1b]1;\x07\x1b]2;TEST\x07"); gnt_init(); GntWidget *w = gnt_file_sel_new(); @@ -12,6 +19,8 @@ gnt_file_sel_set_multi_select(GNT_FILE_SEL(w), TRUE); gnt_widget_show(w); + g_signal_connect(G_OBJECT(w), "file_selected", G_CALLBACK(file_selected), NULL); + gnt_main(); gnt_quit();