From d62da96bdf2aff605fb338b19c2f729dfaca93b4 Mon Sep 17 00:00:00 2001 From: monsta Date: Wed, 30 Nov 2016 22:08:37 +0300 Subject: plugins: make them actually recognized and loaded by eom - use *.plugin extension instead of *.eom-plugin - use "Plugin" section name instead of "Eom Plugin" mostly adapted from: https://git.gnome.org/browse/eog/commit/?id=40bedbf33812e65f4a8e79691b1fadfaace94035 https://git.gnome.org/browse/eog/commit/?id=af184104018f36272ff8e49012c52d503f48eae7 --- plugins/Makefile.am | 10 +++++----- plugins/fullscreen/fullscreen.eom-plugin.desktop.in | 9 --------- plugins/fullscreen/fullscreen.plugin.desktop.in | 9 +++++++++ plugins/reload/reload.eom-plugin.desktop.in | 9 --------- plugins/reload/reload.plugin.desktop.in | 9 +++++++++ plugins/statusbar-date/statusbar-date.eom-plugin.desktop.in | 8 -------- plugins/statusbar-date/statusbar-date.plugin.desktop.in | 8 ++++++++ po/POTFILES.in | 6 +++--- 8 files changed, 34 insertions(+), 34 deletions(-) delete mode 100644 plugins/fullscreen/fullscreen.eom-plugin.desktop.in create mode 100644 plugins/fullscreen/fullscreen.plugin.desktop.in delete mode 100644 plugins/reload/reload.eom-plugin.desktop.in create mode 100644 plugins/reload/reload.plugin.desktop.in delete mode 100644 plugins/statusbar-date/statusbar-date.eom-plugin.desktop.in create mode 100644 plugins/statusbar-date/statusbar-date.plugin.desktop.in diff --git a/plugins/Makefile.am b/plugins/Makefile.am index 02b74e6..6398011 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am @@ -15,8 +15,8 @@ plugins_LTLIBRARIES = \ reload/libreload.la plugins_in_files = \ - fullscreen/fullscreen.eom-plugin.desktop.in \ - reload/reload.eom-plugin.desktop.in + fullscreen/fullscreen.plugin.desktop.in \ + reload/reload.plugin.desktop.in # Fullscreen plugin fullscreen_libfullscreen_la_SOURCES = \ @@ -41,14 +41,14 @@ statusbar_date_libstatusbar_date_la_SOURCES = \ statusbar-date/eom-statusbar-date-plugin.c statusbar_date_libstatusbar_date_la_LIBADD = $(EOM_LIBS) -plugins_in_files += statusbar-date/statusbar-date.eom-plugin.desktop.in +plugins_in_files += statusbar-date/statusbar-date.plugin.desktop.in endif # Generate plugin info files -%.eom-plugin: %.eom-plugin.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(AM_V_GEN)$(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache +%.plugin: %.plugin.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(AM_V_GEN)$(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache -plugins_DATA = $(plugins_in_files:.eom-plugin.desktop.in=.eom-plugin) +plugins_DATA = $(plugins_in_files:.plugin.desktop.in=.plugin) DISTCLEANFILES = $(plugins_DATA) CLEANFILES = $(plugins_DATA) diff --git a/plugins/fullscreen/fullscreen.eom-plugin.desktop.in b/plugins/fullscreen/fullscreen.eom-plugin.desktop.in deleted file mode 100644 index 2aab901..0000000 --- a/plugins/fullscreen/fullscreen.eom-plugin.desktop.in +++ /dev/null @@ -1,9 +0,0 @@ -[Eom Plugin] -Module=fullscreen -IAge=2 -_Name=Fullscreen with double-click -Icon=view-fullscreen -_Description=Activate fullscreen mode with double-click -Authors=Lucas Rocha -Copyright=Copyright © 2007 Lucas Rocha -Website=http://www.mate-desktop.org/ diff --git a/plugins/fullscreen/fullscreen.plugin.desktop.in b/plugins/fullscreen/fullscreen.plugin.desktop.in new file mode 100644 index 0000000..12d2cb8 --- /dev/null +++ b/plugins/fullscreen/fullscreen.plugin.desktop.in @@ -0,0 +1,9 @@ +[Plugin] +Module=fullscreen +IAge=2 +_Name=Fullscreen with double-click +Icon=view-fullscreen +_Description=Activate fullscreen mode with double-click +Authors=Lucas Rocha +Copyright=Copyright © 2007 Lucas Rocha +Website=http://www.mate-desktop.org/ diff --git a/plugins/reload/reload.eom-plugin.desktop.in b/plugins/reload/reload.eom-plugin.desktop.in deleted file mode 100644 index 0a2bb86..0000000 --- a/plugins/reload/reload.eom-plugin.desktop.in +++ /dev/null @@ -1,9 +0,0 @@ -[Eom Plugin] -Module=reload -IAge=2 -_Name=Reload Image -Icon=view-refresh -_Description=Reload current image -Authors=Lucas Rocha -Copyright=Copyright © 2007 Lucas Rocha -Website=http://www.mate-desktop.org/ diff --git a/plugins/reload/reload.plugin.desktop.in b/plugins/reload/reload.plugin.desktop.in new file mode 100644 index 0000000..4b0ff92 --- /dev/null +++ b/plugins/reload/reload.plugin.desktop.in @@ -0,0 +1,9 @@ +[Plugin] +Module=reload +IAge=2 +_Name=Reload Image +Icon=view-refresh +_Description=Reload current image +Authors=Lucas Rocha +Copyright=Copyright © 2007 Lucas Rocha +Website=http://www.mate-desktop.org/ diff --git a/plugins/statusbar-date/statusbar-date.eom-plugin.desktop.in b/plugins/statusbar-date/statusbar-date.eom-plugin.desktop.in deleted file mode 100644 index 92dea2e..0000000 --- a/plugins/statusbar-date/statusbar-date.eom-plugin.desktop.in +++ /dev/null @@ -1,8 +0,0 @@ -[Eom Plugin] -Module=statusbar-date -IAge=2 -_Name=Date in statusbar -_Description=Shows the image date in the window statusbar -Authors=Claudio Saavedra -Copyright=Copyright © 2008 Free Software Foundation -Website=http://www.mate-desktop.org/ diff --git a/plugins/statusbar-date/statusbar-date.plugin.desktop.in b/plugins/statusbar-date/statusbar-date.plugin.desktop.in new file mode 100644 index 0000000..55a1e8c --- /dev/null +++ b/plugins/statusbar-date/statusbar-date.plugin.desktop.in @@ -0,0 +1,8 @@ +[Plugin] +Module=statusbar-date +IAge=2 +_Name=Date in statusbar +_Description=Shows the image date in the window statusbar +Authors=Claudio Saavedra +Copyright=Copyright © 2008 Free Software Foundation +Website=http://www.mate-desktop.org/ diff --git a/po/POTFILES.in b/po/POTFILES.in index bef2e1a..fcd7965 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -10,10 +10,10 @@ data/eom.desktop.in.in [type: gettext/glade]data/eom-preferences-dialog.ui [type: gettext/gsettings]data/org.mate.eom.gschema.xml.in plugins/fullscreen/eom-fullscreen-plugin.c -plugins/fullscreen/fullscreen.eom-plugin.desktop.in +plugins/fullscreen/fullscreen.plugin.desktop.in plugins/reload/eom-reload-plugin.c -plugins/reload/reload.eom-plugin.desktop.in -plugins/statusbar-date/statusbar-date.eom-plugin.desktop.in +plugins/reload/reload.plugin.desktop.in +plugins/statusbar-date/statusbar-date.plugin.desktop.in src/eom-application.c src/eom-close-confirmation-dialog.c src/eom-file-chooser.c -- cgit v1.2.1