コード例 #1
0
ファイル: copy.c プロジェクト: DeforaOS/Browser
static gboolean _regular_channel(GIOChannel * source, GIOCondition condition,
		gpointer data)
{
	Copy * copy = data;

	if(condition == G_IO_IN)
		return _channel_in(copy, source);
	else if(condition == G_IO_OUT)
		return _channel_out(copy, source);
	_copy_filename_error(copy, copy->filev[copy->cur], 0);
	gtk_main_quit();
	return FALSE;
}
コード例 #2
0
static gboolean _progress_channel(GIOChannel * source, GIOCondition condition,
		gpointer data)
{
	Progress * p = data;

	if(condition == G_IO_IN)
		return _channel_in(p, source);
	if(condition == G_IO_OUT)
		return _channel_out(p, source);
	_progress_error(p, p->prefs->filename, 0);
	gtk_main_quit();
	return FALSE;
}