rygel r317 - trunk/src/plugins/tracker
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r317 - trunk/src/plugins/tracker
- Date: Thu, 27 Nov 2008 23:20:09 +0000 (UTC)
Author: zeeshanak
Date: Thu Nov 27 23:20:09 2008
New Revision: 317
URL: http://svn.gnome.org/viewvc/rygel?rev=317&view=rev
Log:
Export the tracker logo.
Export the tracker logo to be used as the MediaServer icon.
Modified:
trunk/src/plugins/tracker/Makefile.am
trunk/src/plugins/tracker/rygel-tracker-plugin.vala
Modified: trunk/src/plugins/tracker/Makefile.am
==============================================================================
--- trunk/src/plugins/tracker/Makefile.am (original)
+++ trunk/src/plugins/tracker/Makefile.am Thu Nov 27 23:20:09 2008
@@ -6,7 +6,7 @@
$(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 @@
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 $@
Modified: trunk/src/plugins/tracker/rygel-tracker-plugin.vala
==============================================================================
--- trunk/src/plugins/tracker/rygel-tracker-plugin.vala (original)
+++ trunk/src/plugins/tracker/rygel-tracker-plugin.vala Thu Nov 27 23:20:09 2008
@@ -24,6 +24,7 @@
using Rygel;
using Gee;
+using CStuff;
[ModuleInit]
public Plugin load_plugin () {
@@ -34,8 +35,18 @@
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]