Mercurial > pidgin
view finch/libgnt/test/file.c @ 27248:6271a72ba4f6
* Use our assert_string_equal() macro instead of fail_unless(strcmp(), NULL)
* Fix the test_markup_html_to_xhtml test by looking for <a href=""> instead of <a href=''> I guess we changed that function to use double quotes instead of single quotes?
* Add a test_mime_decode_field function (with only one test)
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 02 Jul 2009 08:24:51 +0000 |
parents | f104e1d45d85 |
children | 57d350900136 |
line wrap: on
line source
#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(); gnt_file_sel_set_current_location(GNT_FILE_SEL(w), "/home/"); gnt_file_sel_set_dirs_only(GNT_FILE_SEL(w), TRUE); 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(); return 0; }