[devhelp/wip/swilmet/misc-improvements: 6/18] Use G_SOURCE_REMOVE instead of FALSE in GSourceFuncs
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp/wip/swilmet/misc-improvements: 6/18] Use G_SOURCE_REMOVE instead of FALSE in GSourceFuncs
- Date: Sun, 24 May 2015 15:35:03 +0000 (UTC)
commit 43da6c50b5a540c279ebcd62c625d1f2af6a60e5
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun May 24 13:42:39 2015 +0200
Use G_SOURCE_REMOVE instead of FALSE in GSourceFuncs
So that the code is clearer. Do that for every timeout and idle
functions in Devhelp.
https://bugzilla.gnome.org/show_bug.cgi?id=749797
src/dh-book-manager.c | 2 +-
src/dh-sidebar.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/dh-book-manager.c b/src/dh-book-manager.c
index 0ce8c1d..d3cd129 100644
--- a/src/dh-book-manager.c
+++ b/src/dh-book-manager.c
@@ -421,7 +421,7 @@ book_manager_new_possible_book_cb (gpointer user_data)
g_object_unref (data->file);
g_slice_free (NewPossibleBookData, data);
- return FALSE;
+ return G_SOURCE_REMOVE;
}
static void
diff --git a/src/dh-sidebar.c b/src/dh-sidebar.c
index e0e4a25..ac81445 100644
--- a/src/dh-sidebar.c
+++ b/src/dh-sidebar.c
@@ -92,7 +92,7 @@ sidebar_filter_idle (DhSidebar *sidebar)
if (link)
g_signal_emit (sidebar, signals[LINK_SELECTED], 0, link);
- return FALSE;
+ return G_SOURCE_REMOVE;
}
static void
@@ -316,7 +316,7 @@ sidebar_complete_idle (DhSidebar *sidebar)
priv->idle_complete = 0;
- return FALSE;
+ return G_SOURCE_REMOVE;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]