From 73522bd5b8bf240abcab90d73ed2d96174bfab42 Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Thu, 27 Nov 2008 23:20:09 +0000 Subject: [PATCH] Export the tracker logo. Export the tracker logo to be used as the MediaServer icon. svn path=/trunk/; revision=317 --- src/plugins/tracker/Makefile.am | 4 ++-- src/plugins/tracker/rygel-tracker-plugin.vala | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/plugins/tracker/Makefile.am b/src/plugins/tracker/Makefile.am index d039c64..60a45cc 100644 --- a/src/plugins/tracker/Makefile.am +++ b/src/plugins/tracker/Makefile.am @@ -6,7 +6,7 @@ AM_CFLAGS = $(LIBGUPNP_CFLAGS) \ $(LIBGUPNP_AV_CFLAGS) \ $(LIBDBUS_GLIB_CFLAGS) \ $(GEE_CFLAGS) \ - -I$(top_srcdir)/src/rygel + -I$(top_srcdir)/src/rygel -DDATA_DIR='"$(datadir)"' BUILT_SOURCES = rygel-media-tracker.stamp \ rygel-media-tracker.h \ @@ -48,7 +48,7 @@ librygel_media_tracker_la_SOURCES = rygel-media-tracker.h \ rygel-media-tracker.stamp: $(filter %.vala,$(librygel_media_tracker_la_SOURCES)) $(VALAC) -C --vapidir=$(top_srcdir)/src/rygel \ - --pkg rygel-1.0 \ + --pkg rygel-1.0 --pkg cstuff \ --pkg gupnp-1.0 --pkg gupnp-av-1.0 --pkg dbus-glib-1 --pkg gee-1.0 $^ touch $@ diff --git a/src/plugins/tracker/rygel-tracker-plugin.vala b/src/plugins/tracker/rygel-tracker-plugin.vala index 63c4b1b..b3ac8a5 100644 --- a/src/plugins/tracker/rygel-tracker-plugin.vala +++ b/src/plugins/tracker/rygel-tracker-plugin.vala @@ -24,6 +24,7 @@ using Rygel; using Gee; +using CStuff; [ModuleInit] public Plugin load_plugin () { @@ -34,8 +35,18 @@ public Plugin load_plugin () { ContentDirectory.UPNP_TYPE, ContentDirectory.DESCRIPTION_PATH, typeof (MediaTracker)); + plugin.add_resource (resource_info); + var icon_info = new IconInfo ("image/png", // Mimetype + 48, // width + 48, // height + 24, // depth + BuildConfig.DATA_DIR + // Path + "/icons/hicolor/48x48/apps/tracker.png"); + + plugin.add_icon (icon_info); + return plugin; } -- 2.7.4