e G_SOURCE_CONTINUE/REMOVE internally

Now that we have these macros, we should use them.
This commit covers everything in gio/.
This commit is contained in:
Matthias Clasen 2012-01-25 14:18:34 -05:00
parent ef159af00f
commit 4e9f59bff8
10 changed files with 13 additions and 13 deletions

View File

@ -1243,7 +1243,7 @@ inactivity_timeout_expired (gpointer data)
application->priv->inactivity_timeout_id = 0;
return FALSE;
return G_SOURCE_REMOVE;
}

View File

@ -200,7 +200,7 @@ reply_non_handled_in_idle (gpointer data)
GMountOperation *op = data;
g_mount_operation_reply (op, G_MOUNT_OPERATION_UNHANDLED);
return FALSE;
return G_SOURCE_REMOVE;
}
static void

View File

@ -167,7 +167,7 @@ poll_file_timeout (gpointer data)
g_file_query_info_async (poll_monitor->file, G_FILE_ATTRIBUTE_ETAG_VALUE "," G_FILE_ATTRIBUTE_STANDARD_SIZE,
0, 0, NULL, got_new_info, g_object_ref (poll_monitor));
return FALSE;
return G_SOURCE_REMOVE;
}
static void

View File

@ -1377,7 +1377,7 @@ watch_handler (RegistryEvent *event)
g_object_unref (event->self);
g_slice_free (RegistryEvent, event);
return FALSE;
return G_SOURCE_REMOVE;
};

View File

@ -387,7 +387,7 @@ handle_error:
g_free (data);
}
return FALSE;
return G_SOURCE_REMOVE;
}
static void

View File

@ -87,7 +87,7 @@ idle_start_test1_thread (gpointer loop)
g_mutex_unlock (&test1_mutex);
g_main_loop_quit (loop);
return FALSE;
return G_SOURCE_REMOVE;
}
static gpointer

View File

@ -67,7 +67,7 @@ my_cmdline_handler (gpointer data)
/* we are done handling this commandline */
g_object_unref (cmdline);
return FALSE;
return G_SOURCE_REMOVE;
}
static int

View File

@ -253,7 +253,7 @@ static gboolean
release_app (gpointer user_data)
{
g_application_release (user_data);
return FALSE;
return G_SOURCE_REMOVE;
}
static void

View File

@ -44,7 +44,7 @@ poll_source_callback (GPollableInputStream *in,
g_assert_cmpstr (buf, ==, "x");
*success = TRUE;
return FALSE;
return G_SOURCE_REMOVE;
}
static gboolean
@ -55,7 +55,7 @@ check_source_readability_callback (gpointer user_data)
readable = g_pollable_input_stream_is_readable (in);
g_assert_cmpint (readable, ==, expected);
return FALSE;
return G_SOURCE_REMOVE;
}
static gboolean
@ -71,7 +71,7 @@ write_callback (gpointer user_data)
check_source_readability_callback (GINT_TO_POINTER (TRUE));
return FALSE;
return G_SOURCE_REMOVE;
}
static gboolean
@ -79,7 +79,7 @@ check_source_and_quit_callback (gpointer user_data)
{
check_source_readability_callback (user_data);
g_main_loop_quit (loop);
return FALSE;
return G_SOURCE_REMOVE;
}
static void

View File

@ -88,7 +88,7 @@ test_simple_async_idle (gpointer user_data)
ensure_destroyed (c);
*ran = TRUE;
return FALSE;
return G_SOURCE_REMOVE;
}
static void