[gnome-software: 11/14] gs-plugin: Use G_SOURCE_REMOVE rather than boolean
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 11/14] gs-plugin: Use G_SOURCE_REMOVE rather than boolean
- Date: Wed, 2 Mar 2022 11:47:37 +0000 (UTC)
commit 5ee27c08e96e4160a79c0fd783c79ec806a9406a
Author: Philip Withnall <pwithnall endlessos org>
Date: Tue Mar 1 14:48:58 2022 +0000
gs-plugin: Use G_SOURCE_REMOVE rather than boolean
This makes the intent of the return value clearer.
It introduces no functional changes.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
lib/gs-plugin.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/lib/gs-plugin.c b/lib/gs-plugin.c
index 306d184ae..0ff2316d3 100644
--- a/lib/gs-plugin.c
+++ b/lib/gs-plugin.c
@@ -726,7 +726,7 @@ gs_plugin_status_update_cb (gpointer user_data)
helper->app,
helper->status);
- return FALSE;
+ return G_SOURCE_REMOVE;
}
/**
@@ -827,7 +827,7 @@ gs_plugin_app_launch_cb (gpointer user_data)
if (!g_app_info_launch (appinfo, NULL, context, &error))
g_warning ("Failed to launch: %s", error->message);
- return FALSE;
+ return G_SOURCE_REMOVE;
}
/**
@@ -880,7 +880,8 @@ gs_plugin_updates_changed_cb (gpointer user_data)
{
GsPlugin *plugin = GS_PLUGIN (user_data);
g_signal_emit (plugin, signals[SIGNAL_UPDATES_CHANGED], 0);
- return FALSE;
+
+ return G_SOURCE_REMOVE;
}
/**
@@ -903,7 +904,8 @@ gs_plugin_reload_cb (gpointer user_data)
{
GsPlugin *plugin = GS_PLUGIN (user_data);
g_signal_emit (plugin, signals[SIGNAL_RELOAD], 0);
- return FALSE;
+
+ return G_SOURCE_REMOVE;
}
/**
@@ -1843,7 +1845,7 @@ gs_plugin_repository_changed_cb (gpointer user_data)
signals[SIGNAL_REPOSITORY_CHANGED], 0,
helper->repository);
- return FALSE;
+ return G_SOURCE_REMOVE;
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]