[yelp] [yelp-simple-document] Idle funcs should return a boolean.
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp] [yelp-simple-document] Idle funcs should return a boolean.
- Date: Mon, 10 May 2010 19:00:44 +0000 (UTC)
commit 66ffe63eec59f0e5235b04625fd61e75bfb60587
Author: Shaun McCance <shaunm gnome org>
Date: Mon May 10 10:47:58 2010 -0500
[yelp-simple-document] Idle funcs should return a boolean.
libyelp/yelp-simple-document.c | 24 +++++++++++++-----------
1 files changed, 13 insertions(+), 11 deletions(-)
---
diff --git a/libyelp/yelp-simple-document.c b/libyelp/yelp-simple-document.c
index a566dca..0d50c8e 100644
--- a/libyelp/yelp-simple-document.c
+++ b/libyelp/yelp-simple-document.c
@@ -1,4 +1,4 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* Copyright (C) 2003-2009 Shaun McCance <shaunm gnome org>
*
@@ -76,7 +76,7 @@ static void document_finish_read (YelpDocument
const gchar *contents);
static gchar * document_get_mime_type (YelpDocument *document,
const gchar *mime_type);
-static void document_signal_all (YelpSimpleDocument *document);
+static gboolean document_signal_all (YelpSimpleDocument *document);
static void file_info_cb (GFile *file,
GAsyncResult *result,
@@ -93,7 +93,7 @@ static void stream_close_cb (GInputStream
static void request_cancel (GCancellable *cancellable,
Request *request);
-static void request_try_free (Request *request);
+static gboolean request_try_free (Request *request);
static void request_free (Request *request);
static void
@@ -253,18 +253,19 @@ document_get_mime_type (YelpDocument *document,
return NULL;
}
-static void
+static gboolean
document_signal_all (YelpSimpleDocument *document)
{
GSList *cur;
for (cur = document->priv->reqs; cur != NULL; cur = cur->next) {
- Request *request = (Request *) cur->data;
- if (request->callback)
- request->callback (request->document,
- YELP_DOCUMENT_SIGNAL_CONTENTS,
- request->user_data,
- NULL);
+ Request *request = (Request *) cur->data;
+ if (request->callback)
+ request->callback (request->document,
+ YELP_DOCUMENT_SIGNAL_CONTENTS,
+ request->user_data,
+ NULL);
}
+ return FALSE;
}
/******************************************************************************/
@@ -396,7 +397,7 @@ request_cancel (GCancellable *cancellable, Request *request)
request_try_free (request);
}
-static void
+static gboolean
request_try_free (Request *request)
{
if (!g_cancellable_is_cancelled (request->cancellable))
@@ -406,6 +407,7 @@ request_try_free (Request *request)
request_free (request);
else
g_idle_add ((GSourceFunc) request_try_free, request);
+ return FALSE;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]