[gnome-nds-thumbnailer] Update to the GNOME 3 way of doing thumbnailers
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nds-thumbnailer] Update to the GNOME 3 way of doing thumbnailers
- Date: Wed, 14 Sep 2011 12:58:06 +0000 (UTC)
commit 6b9a03b92c97fa1ff06a85593c1c02de447704d4
Author: Bastien Nocera <hadess hadess net>
Date: Wed Sep 14 13:34:04 2011 +0100
Update to the GNOME 3 way of doing thumbnailers
Makefile.am | 25 +++++--------------------
configure.ac | 8 --------
gnome-nds-thumbnailer.schemas.in | 29 -----------------------------
gnome-nds-thumbnailer.thumbnailer.in | 4 ++++
4 files changed, 9 insertions(+), 57 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index a3824dc..188e670 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -7,26 +7,11 @@ gnome_nds_thumbnailer_CPPFLAGS = $(GDK_PIXBUF_CFLAGS) $(GIO_CFLAGS)
gnome_nds_thumbnailer_LDADD = $(GDK_PIXBUF_LIBS) $(GIO_LIBS)
-
-schemasdir = $(GCONF_SCHEMA_FILE_DIR)
-schemas_in_files = gnome-nds-thumbnailer.schemas.in
-schemas_DATA = gnome-nds-thumbnailer.schemas
-
-# Rule to make the service file with bindir expanded
-$(schemas_DATA): $(schemas_in_files) Makefile
+thumbnailerdir = $(datadir)/thumbnailers/
+thumbnailer_DATA = gnome-nds-thumbnailer.thumbnailer
+gnome-nds-thumbnailer.thumbnailer: gnome-nds-thumbnailer.thumbnailer.in Makefile
@$(SED) -e "s|\ bindir\@|$(bindir)|" $< > $@
-if GCONF_SCHEMAS_INSTALL
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schemas_DATA) ; do \
- GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $$p ; \
- done \
- fi
-else
-install-data-local:
-endif
-
-EXTRA_DIST = gnome-nds-thumbnailer.schemas.in AUTHORS COPYING README
+EXTRA_DIST = gnome-nds-thumbnailer.thumbnailer.in AUTHORS COPYING README
-CLEANFILES = gnome-nds-thumbnailer.schemas
+CLEANFILES = gnome-nds-thumbnailer.thumbnailer
diff --git a/configure.ac b/configure.ac
index 0a04be7..bfcd3d5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -15,13 +15,5 @@ AC_SUBST(GDK_PIXBUF_LIBS)
PKG_CHECK_MODULES(GIO, gio-2.0, [], [AC_MSG_FAILURE([You need glib 2.16 or newer installed])])
-AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
-
-if test x$GCONFTOOL = "xno"; then
- AC_MSG_FAILURE([gconftool-2 is needed])
-fi
-
-AM_GCONF_SOURCE_2
-
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
diff --git a/gnome-nds-thumbnailer.thumbnailer.in b/gnome-nds-thumbnailer.thumbnailer.in
new file mode 100644
index 0000000..8da599a
--- /dev/null
+++ b/gnome-nds-thumbnailer.thumbnailer.in
@@ -0,0 +1,4 @@
+[Thumbnailer Entry]
+TryExec= bindir@/gnome-nds-thumbnailer
+Exec= bindir@/gnome-nds-thumbnailer -s %s %u %o
+MimeType=application/x-nintendo-ds-rom;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]