mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
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:
parent
ef159af00f
commit
4e9f59bff8
@ -1243,7 +1243,7 @@ inactivity_timeout_expired (gpointer data)
|
||||
|
||||
application->priv->inactivity_timeout_id = 0;
|
||||
|
||||
return FALSE;
|
||||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -1377,7 +1377,7 @@ watch_handler (RegistryEvent *event)
|
||||
g_object_unref (event->self);
|
||||
|
||||
g_slice_free (RegistryEvent, event);
|
||||
return FALSE;
|
||||
return G_SOURCE_REMOVE;
|
||||
};
|
||||
|
||||
|
||||
|
@ -387,7 +387,7 @@ handle_error:
|
||||
g_free (data);
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -253,7 +253,7 @@ static gboolean
|
||||
release_app (gpointer user_data)
|
||||
{
|
||||
g_application_release (user_data);
|
||||
return FALSE;
|
||||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -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
|
||||
|
@ -88,7 +88,7 @@ test_simple_async_idle (gpointer user_data)
|
||||
ensure_destroyed (c);
|
||||
|
||||
*ran = TRUE;
|
||||
return FALSE;
|
||||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user