summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/av-cp/Makefile.am14
-rw-r--r--src/av-cp/gui.c4
2 files changed, 16 insertions, 2 deletions
diff --git a/src/av-cp/Makefile.am b/src/av-cp/Makefile.am
index b1f8db6..45578f5 100644
--- a/src/av-cp/Makefile.am
+++ b/src/av-cp/Makefile.am
@@ -15,7 +15,21 @@ AM_CFLAGS = $(LIBGUPNP_CFLAGS) \
bin_PROGRAMS = gupnp-av-cp
+RESOURCEFILE = $(top_srcdir)/data/org.gupnp.Tools.AV-CP.gresource.xml
+
+resource_depends = \
+ $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies \
+ --sourcedir=$(top_srcdir)/data \
+ $(RESOURCEFILE))
+
+
+
+resource.c: $(RESOURCEFILE) $(resource_depends)
+ $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(top_srcdir)/data --generate $(RESOURCEFILE)
+
+
gupnp_av_cp_SOURCES = main.c \
+ resource.c \
gui.c \
playlist-treeview.c \
renderer-combo.c \
diff --git a/src/av-cp/gui.c b/src/av-cp/gui.c
index d1422dd..6017f60 100644
--- a/src/av-cp/gui.c
+++ b/src/av-cp/gui.c
@@ -30,7 +30,7 @@
#include "main.h"
#include "icons.h"
-#define UI_FILE DATA_DIR "/gupnp-av-cp.ui"
+#define UI_FILE "/org/gupnp/Tools/AV-CP/gupnp-av-cp.ui"
#define ICON_FILE "pixmaps/av-cp.png"
static GtkBuilder *builder;
@@ -97,7 +97,7 @@ init_ui (void)
g_assert (builder != NULL);
gtk_builder_set_translation_domain (builder, GETTEXT_PACKAGE);
- if (!gtk_builder_add_from_file (builder, UI_FILE, &error)) {
+ if (!gtk_builder_add_from_resource (builder, UI_FILE, &error)) {
g_critical ("Unable to load the GUI file %s: %s",
UI_FILE,
error->message);