[totem] main: Move media_is_local() earlier in the file
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: Move media_is_local() earlier in the file
- Date: Tue, 14 Oct 2014 17:57:34 +0000 (UTC)
commit e280006708b0acbccc70d965c7a1d1d82dd1e9f2
Author: Bastien Nocera <hadess hadess net>
Date: Tue Oct 14 19:36:41 2014 +0200
main: Move media_is_local() earlier in the file
src/icon-helpers.c | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/src/icon-helpers.c b/src/icon-helpers.c
index 2b8ea47..a24418f 100644
--- a/src/icon-helpers.c
+++ b/src/icon-helpers.c
@@ -46,6 +46,19 @@ static GThreadPool *thumbnail_pool;
static GdkPixbuf *icons[NUM_ICONS];
static GHashTable *cache_thumbnails; /* key=url, value=GdkPixbuf */
+static gboolean
+media_is_local (GrlMedia *media)
+{
+ const char *id;
+
+ id = grl_media_get_source (media);
+ if (g_strcmp0 (id, "grl-tracker-source") == 0 ||
+ g_strcmp0 (id, "grl-filesystem") == 0 ||
+ g_strcmp0 (id, "grl-bookmarks") == 0)
+ return TRUE;
+ return FALSE;
+}
+
GdkPixbuf *
totem_grilo_get_thumbnail_finish (GObject *source_object,
GAsyncResult *res,
@@ -188,19 +201,6 @@ thumbnail_media_cb (GObject *source_object,
g_object_unref (task);
}
-static gboolean
-media_is_local (GrlMedia *media)
-{
- const char *id;
-
- id = grl_media_get_source (media);
- if (g_strcmp0 (id, "grl-tracker-source") == 0 ||
- g_strcmp0 (id, "grl-filesystem") == 0 ||
- g_strcmp0 (id, "grl-bookmarks") == 0)
- return TRUE;
- return FALSE;
-}
-
void
totem_grilo_get_thumbnail (GObject *object,
GCancellable *cancellable,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]