[svn r658] Added g_main_context_iteration to while loop on reading from FileTransfer.
1.1 --- a/gmyth/samples/gmyth_cat.c Tue May 15 14:41:04 2007 +0100
1.2 +++ b/gmyth/samples/gmyth_cat.c Tue May 15 15:45:34 2007 +0100
1.3 @@ -198,6 +198,8 @@
1.4 fwrite (array->data, array->len, 1, stdout);
1.5 fflush (stdout);
1.6 g_array_remove_range (array, 0, array->len);
1.7 +
1.8 + g_main_context_iteration( g_main_context_default(), FALSE );
1.9 }
1.10
1.11 g_array_free (array, TRUE);
1.12 @@ -214,7 +216,7 @@
1.13 cat_options_t *options;
1.14
1.15 g_type_init ();
1.16 - g_thread_init (NULL);
1.17 + if (!g_thread_supported()) g_thread_init (NULL);
1.18
1.19 options = _cat_options_new ();
1.20 res = _parse_args (argc, argv, options);