# HG changeset patch # User rosfran # Date 1179240334 -3600 # Node ID c98ddd4a9513a9c5882e3014f6a748e2d3155628 # Parent 76a3f315ef428aacf4f8dd96d735e6de2949d029 [svn r658] Added g_main_context_iteration to while loop on reading from FileTransfer. diff -r 76a3f315ef42 -r c98ddd4a9513 gmyth/samples/gmyth_cat.c --- a/gmyth/samples/gmyth_cat.c Tue May 15 14:41:04 2007 +0100 +++ b/gmyth/samples/gmyth_cat.c Tue May 15 15:45:34 2007 +0100 @@ -198,6 +198,8 @@ fwrite (array->data, array->len, 1, stdout); fflush (stdout); g_array_remove_range (array, 0, array->len); + + g_main_context_iteration( g_main_context_default(), FALSE ); } g_array_free (array, TRUE); @@ -214,7 +216,7 @@ cat_options_t *options; g_type_init (); - g_thread_init (NULL); + if (!g_thread_supported()) g_thread_init (NULL); options = _cat_options_new (); res = _parse_args (argc, argv, options);