summaryrefslogtreecommitdiff
path: root/thumbnailer
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-11-09 18:44:56 -0300
committerPerberos <[email protected]>2011-11-09 18:44:56 -0300
commitda7bb154d27d3b872867223a5df60df8f5fb6e7d (patch)
treec1a40fbb481956cf2fda2263bf78389622eba0a5 /thumbnailer
parent342e9e9bf91625bf6f0102fb7bbc652dea222064 (diff)
downloadatril-da7bb154d27d3b872867223a5df60df8f5fb6e7d.tar.bz2
atril-da7bb154d27d3b872867223a5df60df8f5fb6e7d.tar.xz
renaming evince to atril
Diffstat (limited to 'thumbnailer')
-rw-r--r--thumbnailer/Makefile.am38
-rw-r--r--thumbnailer/atril-thumbnailer-comics.schemas.in (renamed from thumbnailer/evince-thumbnailer-comics.schemas.in)24
-rw-r--r--thumbnailer/atril-thumbnailer-djvu.schemas.in (renamed from thumbnailer/evince-thumbnailer-djvu.schemas.in)6
-rw-r--r--thumbnailer/atril-thumbnailer-dvi.schemas.in (renamed from thumbnailer/evince-thumbnailer-dvi.schemas.in)18
-rw-r--r--thumbnailer/atril-thumbnailer-ps.schemas.in (renamed from thumbnailer/evince-thumbnailer-ps.schemas.in)36
-rw-r--r--thumbnailer/atril-thumbnailer.c (renamed from thumbnailer/evince-thumbnailer.c)20
-rw-r--r--thumbnailer/atril-thumbnailer.schemas.in (renamed from thumbnailer/evince-thumbnailer.schemas.in)18
7 files changed, 80 insertions, 80 deletions
diff --git a/thumbnailer/Makefile.am b/thumbnailer/Makefile.am
index bc5a3314..dd1590a5 100644
--- a/thumbnailer/Makefile.am
+++ b/thumbnailer/Makefile.am
@@ -1,39 +1,39 @@
-bin_PROGRAMS = evince-thumbnailer
+bin_PROGRAMS = atril-thumbnailer
-evince_thumbnailer_SOURCES = \
- evince-thumbnailer.c
+atril_thumbnailer_SOURCES = \
+ atril-thumbnailer.c
-evince_thumbnailer_CPPFLAGS = \
- -DEVINCEDATADIR=\"$(pkgdatadir)\" \
+atril_thumbnailer_CPPFLAGS = \
+ -DATRILDATADIR=\"$(pkgdatadir)\" \
-I$(top_srcdir) \
-I$(top_builddir) \
-DMATELOCALEDIR=\"$(datadir)/locale\" \
-DMATEICONDIR=\""$(datadir)/pixmaps"\" \
$(AM_CPPFLAGS)
-evince_thumbnailer_CFLAGS = \
+atril_thumbnailer_CFLAGS = \
$(FRONTEND_CFLAGS) \
$(DISABLE_DEPRECATED) \
$(WARN_CFLAGS) \
$(AM_CFLAGS)
-evince_thumbnailer_LDFLAGS = $(AM_LDFLAGS)
+atril_thumbnailer_LDFLAGS = $(AM_LDFLAGS)
if PLATFORM_WIN32
-evince_thumbnailer_LDFLAGS += -mwindows
+atril_thumbnailer_LDFLAGS += -mwindows
endif
-evince_thumbnailer_LDADD = \
+atril_thumbnailer_LDADD = \
$(top_builddir)/libdocument/libevdocument.la \
$(FRONTEND_LIBS)
schema_files = \
- evince-thumbnailer-dvi.schemas.in \
- evince-thumbnailer-djvu.schemas.in \
- evince-thumbnailer-comics.schemas.in \
- evince-thumbnailer-ps.schemas.in \
- evince-thumbnailer.schemas.in
+ atril-thumbnailer-dvi.schemas.in \
+ atril-thumbnailer-djvu.schemas.in \
+ atril-thumbnailer-comics.schemas.in \
+ atril-thumbnailer-ps.schemas.in \
+ atril-thumbnailer.schemas.in
if WITH_MATECONF
@@ -42,23 +42,23 @@ if WITH_MATECONF
schema_DATA =
if ENABLE_PDF
-schema_DATA += evince-thumbnailer.schemas
+schema_DATA += atril-thumbnailer.schemas
endif
if ENABLE_PS
-schema_DATA += evince-thumbnailer-ps.schemas
+schema_DATA += atril-thumbnailer-ps.schemas
endif
if ENABLE_DJVU
-schema_DATA += evince-thumbnailer-djvu.schemas
+schema_DATA += atril-thumbnailer-djvu.schemas
endif
if ENABLE_DVI
-schema_DATA += evince-thumbnailer-dvi.schemas
+schema_DATA += atril-thumbnailer-dvi.schemas
endif
if ENABLE_COMICS
-schema_DATA += evince-thumbnailer-comics.schemas
+schema_DATA += atril-thumbnailer-comics.schemas
endif
schemadir = $(MATECONF_SCHEMA_FILE_DIR)
diff --git a/thumbnailer/evince-thumbnailer-comics.schemas.in b/thumbnailer/atril-thumbnailer-comics.schemas.in
index 2f00a802..49496d51 100644
--- a/thumbnailer/evince-thumbnailer-comics.schemas.in
+++ b/thumbnailer/atril-thumbnailer-comics.schemas.in
@@ -4,7 +4,7 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@x-cbz/enable</key>
<applyto>/desktop/mate/thumbnailers/application@x-cbz/enable</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>bool</type>
<default>true</default>
<locale name="C">
@@ -17,9 +17,9 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@x-cbz/command</key>
<applyto>/desktop/mate/thumbnailers/application@x-cbz/command</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>string</type>
- <default>evince-thumbnailer -s %s %u %o</default>
+ <default>atril-thumbnailer -s %s %u %o</default>
<locale name="C">
<short></short>
<long></long>
@@ -29,7 +29,7 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@x-cbr/enable</key>
<applyto>/desktop/mate/thumbnailers/application@x-cbr/enable</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>bool</type>
<default>true</default>
<locale name="C">
@@ -42,9 +42,9 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@x-cbr/command</key>
<applyto>/desktop/mate/thumbnailers/application@x-cbr/command</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>string</type>
- <default>evince-thumbnailer -s %s %u %o</default>
+ <default>atril-thumbnailer -s %s %u %o</default>
<locale name="C">
<short></short>
<long></long>
@@ -55,7 +55,7 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@x-cb7/enable</key>
<applyto>/desktop/mate/thumbnailers/application@x-cb7/enable</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>bool</type>
<default>true</default>
<locale name="C">
@@ -68,9 +68,9 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@x-cb7/command</key>
<applyto>/desktop/mate/thumbnailers/application@x-cb7/command</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>string</type>
- <default>evince-thumbnailer -s %s %u %o</default>
+ <default>atril-thumbnailer -s %s %u %o</default>
<locale name="C">
<short></short>
<long></long>
@@ -80,7 +80,7 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@x-cbt/enable</key>
<applyto>/desktop/mate/thumbnailers/application@x-cbt/enable</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>bool</type>
<default>true</default>
<locale name="C">
@@ -93,9 +93,9 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@x-cbt/command</key>
<applyto>/desktop/mate/thumbnailers/application@x-cbt/command</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>string</type>
- <default>evince-thumbnailer -s %s %u %o</default>
+ <default>atril-thumbnailer -s %s %u %o</default>
<locale name="C">
<short></short>
<long></long>
diff --git a/thumbnailer/evince-thumbnailer-djvu.schemas.in b/thumbnailer/atril-thumbnailer-djvu.schemas.in
index 4ea35272..bb0b216f 100644
--- a/thumbnailer/evince-thumbnailer-djvu.schemas.in
+++ b/thumbnailer/atril-thumbnailer-djvu.schemas.in
@@ -4,7 +4,7 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/[email protected]/enable</key>
<applyto>/desktop/mate/thumbnailers/[email protected]/enable</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>bool</type>
<default>true</default>
<locale name="C">
@@ -17,9 +17,9 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/[email protected]/command</key>
<applyto>/desktop/mate/thumbnailers/[email protected]/command</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>string</type>
- <default>evince-thumbnailer -s %s %u %o</default>
+ <default>atril-thumbnailer -s %s %u %o</default>
<locale name="C">
<short></short>
<long></long>
diff --git a/thumbnailer/evince-thumbnailer-dvi.schemas.in b/thumbnailer/atril-thumbnailer-dvi.schemas.in
index eab49a61..bad7e853 100644
--- a/thumbnailer/evince-thumbnailer-dvi.schemas.in
+++ b/thumbnailer/atril-thumbnailer-dvi.schemas.in
@@ -4,7 +4,7 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@x-dvi/enable</key>
<applyto>/desktop/mate/thumbnailers/application@x-dvi/enable</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>bool</type>
<default>true</default>
<locale name="C">
@@ -17,9 +17,9 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@x-dvi/command</key>
<applyto>/desktop/mate/thumbnailers/application@x-dvi/command</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>string</type>
- <default>evince-thumbnailer -s %s %u %o</default>
+ <default>atril-thumbnailer -s %s %u %o</default>
<locale name="C">
<short></short>
<long></long>
@@ -30,7 +30,7 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@x-gzdvi/enable</key>
<applyto>/desktop/mate/thumbnailers/application@x-gzdvi/enable</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>bool</type>
<default>true</default>
<locale name="C">
@@ -43,9 +43,9 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@x-gzdvi/command</key>
<applyto>/desktop/mate/thumbnailers/application@x-gzdvi/command</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>string</type>
- <default>evince-thumbnailer -s %s %u %o</default>
+ <default>atril-thumbnailer -s %s %u %o</default>
<locale name="C">
<short></short>
<long></long>
@@ -56,7 +56,7 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@x-bzdvi/enable</key>
<applyto>/desktop/mate/thumbnailers/application@x-bzdvi/enable</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>bool</type>
<default>true</default>
<locale name="C">
@@ -69,9 +69,9 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@x-bzdvi/command</key>
<applyto>/desktop/mate/thumbnailers/application@x-bzdvi/command</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>string</type>
- <default>evince-thumbnailer -s %s %u %o</default>
+ <default>atril-thumbnailer -s %s %u %o</default>
<locale name="C">
<short></short>
<long></long>
diff --git a/thumbnailer/evince-thumbnailer-ps.schemas.in b/thumbnailer/atril-thumbnailer-ps.schemas.in
index 6866ef5a..c8192e5a 100644
--- a/thumbnailer/evince-thumbnailer-ps.schemas.in
+++ b/thumbnailer/atril-thumbnailer-ps.schemas.in
@@ -4,7 +4,7 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@postscript/enable</key>
<applyto>/desktop/mate/thumbnailers/application@postscript/enable</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>bool</type>
<default>true</default>
<locale name="C">
@@ -16,9 +16,9 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@postscript/command</key>
<applyto>/desktop/mate/thumbnailers/application@postscript/command</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>string</type>
- <default>evince-thumbnailer -s %s %u %o</default>
+ <default>atril-thumbnailer -s %s %u %o</default>
<locale name="C">
<short></short>
<long></long>
@@ -29,7 +29,7 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@x-bzpostscript/enable</key>
<applyto>/desktop/mate/thumbnailers/application@x-bzpostscript/enable</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>bool</type>
<default>true</default>
<locale name="C">
@@ -41,9 +41,9 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@x-bzpostscript/command</key>
<applyto>/desktop/mate/thumbnailers/application@x-bzpostscript/command</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>string</type>
- <default>evince-thumbnailer -s %s %u %o</default>
+ <default>atril-thumbnailer -s %s %u %o</default>
<locale name="C">
<short></short>
<long></long>
@@ -54,7 +54,7 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@x-gzpostscript/enable</key>
<applyto>/desktop/mate/thumbnailers/application@x-gzpostscript/enable</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>bool</type>
<default>true</default>
<locale name="C">
@@ -66,9 +66,9 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@x-gzpostscript/command</key>
<applyto>/desktop/mate/thumbnailers/application@x-gzpostscript/command</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>string</type>
- <default>evince-thumbnailer -s %s %u %o</default>
+ <default>atril-thumbnailer -s %s %u %o</default>
<locale name="C">
<short></short>
<long></long>
@@ -79,7 +79,7 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/image@x-eps/enable</key>
<applyto>/desktop/mate/thumbnailers/image@x-eps/enable</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>bool</type>
<default>true</default>
<locale name="C">
@@ -91,9 +91,9 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/image@x-eps/command</key>
<applyto>/desktop/mate/thumbnailers/image@x-eps/command</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>string</type>
- <default>evince-thumbnailer -s %s %u %o</default>
+ <default>atril-thumbnailer -s %s %u %o</default>
<locale name="C">
<short></short>
<long></long>
@@ -104,7 +104,7 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/image@x-bzeps/enable</key>
<applyto>/desktop/mate/thumbnailers/image@x-bzeps/enable</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>bool</type>
<default>true</default>
<locale name="C">
@@ -116,9 +116,9 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/image@x-bzeps/command</key>
<applyto>/desktop/mate/thumbnailers/image@x-bzeps/command</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>string</type>
- <default>evince-thumbnailer -s %s %u %o</default>
+ <default>atril-thumbnailer -s %s %u %o</default>
<locale name="C">
<short></short>
<long></long>
@@ -129,7 +129,7 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/image@x-gzeps/enable</key>
<applyto>/desktop/mate/thumbnailers/image@x-gzeps/enable</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>bool</type>
<default>true</default>
<locale name="C">
@@ -141,9 +141,9 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/image@x-gzeps/command</key>
<applyto>/desktop/mate/thumbnailers/image@x-gzeps/command</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>string</type>
- <default>evince-thumbnailer -s %s %u %o</default>
+ <default>atril-thumbnailer -s %s %u %o</default>
<locale name="C">
<short></short>
<long></long>
diff --git a/thumbnailer/evince-thumbnailer.c b/thumbnailer/atril-thumbnailer.c
index 23ad92b0..7dfc79a5 100644
--- a/thumbnailer/evince-thumbnailer.c
+++ b/thumbnailer/atril-thumbnailer.c
@@ -18,7 +18,7 @@
#include <config.h>
-#include <evince-document.h>
+#include <atril-document.h>
#include <gio/gio.h>
@@ -60,7 +60,7 @@ delete_temp_file (GFile *file)
}
static EvDocument *
-evince_thumbnailer_get_document (GFile *file)
+atril_thumbnailer_get_document (GFile *file)
{
EvDocument *document = NULL;
gchar *uri;
@@ -125,7 +125,7 @@ evince_thumbnailer_get_document (GFile *file)
}
static gboolean
-evince_thumbnail_pngenc_get (EvDocument *document, const char *thumbnail, int size)
+atril_thumbnail_pngenc_get (EvDocument *document, const char *thumbnail, int size)
{
EvRenderContext *rc;
double width, height;
@@ -150,10 +150,10 @@ evince_thumbnail_pngenc_get (EvDocument *document, const char *thumbnail, int si
#ifdef G_OS_WIN32
gchar *dir = g_win32_get_package_installation_directory_of_module (NULL);
- gchar *overlaid_icon_path = g_build_filename (dir, "share", "evince", overlaid_icon_name, NULL);
+ gchar *overlaid_icon_path = g_build_filename (dir, "share", "atril", overlaid_icon_name, NULL);
g_free (dir);
#else
- gchar *overlaid_icon_path = g_strdup_printf ("%s/%s", EVINCEDATADIR, overlaid_icon_name);
+ gchar *overlaid_icon_path = g_strdup_printf ("%s/%s", ATRILDATADIR, overlaid_icon_name);
#endif
overlaid_pixbuf = gdk_pixbuf_new_from_file (overlaid_icon_path, NULL);
g_free (overlaid_icon_path);
@@ -189,10 +189,10 @@ evince_thumbnail_pngenc_get (EvDocument *document, const char *thumbnail, int si
}
static gpointer
-evince_thumbnail_pngenc_get_async (struct AsyncData *data)
+atril_thumbnail_pngenc_get_async (struct AsyncData *data)
{
ev_document_doc_mutex_lock ();
- data->success = evince_thumbnail_pngenc_get (data->document,
+ data->success = atril_thumbnail_pngenc_get (data->document,
data->output,
data->size);
ev_document_doc_mutex_unlock ();
@@ -262,7 +262,7 @@ main (int argc, char *argv[])
return -1;
file = g_file_new_for_commandline_arg (input);
- document = evince_thumbnailer_get_document (file);
+ document = atril_thumbnailer_get_document (file);
g_object_unref (file);
if (!document) {
@@ -285,7 +285,7 @@ main (int argc, char *argv[])
data.output = output;
data.size = size;
- g_thread_create ((GThreadFunc) evince_thumbnail_pngenc_get_async,
+ g_thread_create ((GThreadFunc) atril_thumbnail_pngenc_get_async,
&data, FALSE, NULL);
gtk_main ();
@@ -296,7 +296,7 @@ main (int argc, char *argv[])
return data.success ? 0 : -2;
}
- if (!evince_thumbnail_pngenc_get (document, output, size)) {
+ if (!atril_thumbnail_pngenc_get (document, output, size)) {
g_object_unref (document);
ev_shutdown ();
return -2;
diff --git a/thumbnailer/evince-thumbnailer.schemas.in b/thumbnailer/atril-thumbnailer.schemas.in
index 6dafb8f0..19d1d4da 100644
--- a/thumbnailer/evince-thumbnailer.schemas.in
+++ b/thumbnailer/atril-thumbnailer.schemas.in
@@ -4,7 +4,7 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@pdf/enable</key>
<applyto>/desktop/mate/thumbnailers/application@pdf/enable</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>bool</type>
<default>true</default>
<locale name="C">
@@ -17,9 +17,9 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@pdf/command</key>
<applyto>/desktop/mate/thumbnailers/application@pdf/command</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>string</type>
- <default>evince-thumbnailer -s %s %u %o</default>
+ <default>atril-thumbnailer -s %s %u %o</default>
<locale name="C">
<short>Thumbnail command for PDF Documents</short>
<long>Valid command plus arguments for the PDF Document thumbnailer. See Caja thumbnailer documentation for more information.</long>
@@ -29,7 +29,7 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@x-bzpdf/enable</key>
<applyto>/desktop/mate/thumbnailers/application@x-bzpdf/enable</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>bool</type>
<default>true</default>
<locale name="C">
@@ -42,9 +42,9 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@x-bzpdf/command</key>
<applyto>/desktop/mate/thumbnailers/application@x-bzpdf/command</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>string</type>
- <default>evince-thumbnailer -s %s %u %o</default>
+ <default>atril-thumbnailer -s %s %u %o</default>
<locale name="C">
<short>Thumbnail command for PDF Documents</short>
<long>Valid command plus arguments for the PDF Document thumbnailer. See Caja thumbnailer documentation for more information.</long>
@@ -54,7 +54,7 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@x-gzpdf/enable</key>
<applyto>/desktop/mate/thumbnailers/application@x-gzpdf/enable</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>bool</type>
<default>true</default>
<locale name="C">
@@ -67,9 +67,9 @@
<schema>
<key>/schemas/desktop/mate/thumbnailers/application@x-gzpdf/command</key>
<applyto>/desktop/mate/thumbnailers/application@x-gzpdf/command</applyto>
- <owner>evince</owner>
+ <owner>atril</owner>
<type>string</type>
- <default>evince-thumbnailer -s %s %u %o</default>
+ <default>atril-thumbnailer -s %s %u %o</default>
<locale name="C">
<short>Thumbnail command for PDF Documents</short>
<long>Valid command plus arguments for the PDF Document thumbnailer. See Caja thumbnailer documentation for more information.</long>