Permalink
Browse files

g-s 3.3.5 support

The extension can be installed locally ($HOME/.local) or system-wide
Add pref.js for gnome-shell-extension-prefs
  • Loading branch information...
1 parent d982765 commit 7ac69f0e29706a93da29e0e3bfb9e6db77ede180 @eonpatapon committed Feb 9, 2012
View
@@ -14,3 +14,5 @@ po/stamp-it
metadata.json
*.gschema.xml
*.gschema.valid
+_build
+zip-files
View
@@ -1,3 +1,29 @@
+include include.mk
+
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
SUBDIRS = src po
+
+zip-file: all
+ -rm -fR $(builddir)/_build
+ -rm -fR $(builddir)/zip-files
+ mkdir $(builddir)/_build; \
+ mkdir $(builddir)/zip-files; \
+ $(MAKE) install DESTDIR="$(abs_builddir)/_build"; \
+ cp -r "$(builddir)/_build$(extensiondir)" "$(builddir)/_build/"; \
+ cp -r "$(builddir)/_build$(datadir)/locale" "$(builddir)/_build/$(uuid)"; \
+ cp "$(srcdir)/COPYING" -t "$(builddir)/_build/$(uuid)"; \
+ if [ -f "$(builddir)/_build$(datadir)/glib-2.0/schemas/$(gschemabase).$(extensionname).gschema.xml" ]; then \
+ mkdir "$(builddir)/_build/$(uuid)/schemas"; \
+ cp "$(builddir)/_build$(datadir)/glib-2.0/schemas/$(gschemabase).$(extensionname).gschema.xml" "$(builddir)/_build/$(uuid)/schemas"; \
+ glib-compile-schemas "$(builddir)/_build/$(uuid)/schemas"; \
+ fi; \
+ (cd "$(builddir)/_build/$(uuid)"; \
+ zip -qr "$(abs_builddir)/zip-files/$(uuid).zip" .; \
+ );
+
+install-zip: zip-file
+ mkdir -p $(localextensiondir) && unzip -o $(abs_builddir)/zip-files/$(uuid).zip -d $(localextensiondir);
+
+uninstall-zip: Makefile
+ -rm -fR $(localextensiondir)
View
@@ -1,6 +1,6 @@
AC_PREREQ(2.63)
dnl be carefull, the version needs to be in sync with your gnome shell version
-AC_INIT([gnome-shell-extension-mediaplayer],[0.1],[https://github.com/eonpatapon/gnome-shell-extensions-mediaplayer])
+AC_INIT([gnome-shell-extensions-mediaplayer],[0.1],[https://github.com/eonpatapon/gnome-shell-extensions-mediaplayer])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([config])
@@ -9,7 +9,7 @@ AM_INIT_AUTOMAKE([1.10 dist-bzip2 no-dist-gzip foreign tar-ustar])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
-GETTEXT_PACKAGE=gnome-shell-extension-mediaplayer
+GETTEXT_PACKAGE=gnome-shell-extensions-mediaplayer
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
[The prefix for our gettext translation domains.])
View
@@ -0,0 +1,7 @@
+gschemabase = org.gnome.shell.extensions
+topextensiondir = $(datadir)/gnome-shell/extensions
+extensionname = mediaplayer
+uuid = $(extensionname)@patapon.info
+extensiondir = $(topextensiondir)/$(uuid)
+localextensiondir = $(HOME)/.local/share/gnome-shell/extensions/$(uuid)
+extensionurl = http://github.com/eonpatapon/gnome-shell-extensions-mediaplayer
View
@@ -1 +1,2 @@
src/extension.js
+src/prefs.js
View
@@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: gnome-shell-extension-mediaplayer\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-12-09 20:36+0100\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"POT-Creation-Date: 2012-02-09 13:45+0100\n"
+"PO-Revision-Date: 2012-02-09 13:26+0100\n"
"Last-Translator: Jean-Philippe Braun <eon@patapon.info>\n"
"Language-Team: Jean-Philippe Braun <eon@patapon.info>\n"
"Language: French\n"
@@ -12,47 +12,62 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
#. dummy vars for translation
-#: ../src/extension.js:148
+#: ../src/extension.js:53
msgid "Playing"
msgstr "En cours"
-#: ../src/extension.js:149
+#: ../src/extension.js:54
msgid "Paused"
msgstr "En pause"
-#: ../src/extension.js:150
+#: ../src/extension.js:55
msgid "Stopped"
msgstr "Stoppé"
-#: ../src/extension.js:154
-#, c-format
-msgid "Schema \"%s\" not found."
-msgstr "Schéma \"%s\" non trouvé."
-
-#: ../src/extension.js:482
+#: ../src/extension.js:103
msgid "by"
msgstr "par"
-#: ../src/extension.js:484
+#: ../src/extension.js:105
msgid "from"
msgstr "sur"
-#: ../src/extension.js:519
+#: ../src/extension.js:149
msgid "Volume"
msgstr "Volume"
-#: ../src/extension.js:626
+#: ../src/extension.js:242
msgid "Playlists"
msgstr "Listes de lecture"
-#: ../src/extension.js:696
+#: ../src/extension.js:313
msgid "Unknown Artist"
msgstr "Artiste inconnu"
-#: ../src/extension.js:700
+#: ../src/extension.js:317
msgid "Unknown Album"
msgstr "Album inconnu"
-#: ../src/extension.js:704
+#: ../src/extension.js:322
msgid "Unknown Title"
msgstr "Titre inconnu"
+
+#: ../src/prefs.js:29
+msgid "Show the media player in the volume menu"
+msgstr "Afficher le lecteur multimédia dans le menu du volume"
+
+#: ../src/prefs.js:30
+msgid "Show the media player volume slider"
+msgstr "Afficher le controle du volume du lecteur multimédia"
+
+#: ../src/prefs.js:31
+msgid "Show the media player position slider"
+msgstr "Afficher la barre de progression du lecteur multimédia"
+
+#: ../src/prefs.js:32
+msgid "Show media player playlists"
+msgstr "Afficher les listes de lecture du lecteur multimédia"
+
+#: ../src/prefs.js:35
+msgid "Album cover size"
+msgstr "Taille de la pochette de l'album"
View
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: gnome-shell-extension-mediaplayer\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-12-09 20:36+0100\n"
+"POT-Creation-Date: 2012-02-09 13:45+0100\n"
"PO-Revision-Date: 2011-12-06 04:37+0100\n"
"Last-Translator: Fran Dieguez <frandieguez@gnome.org>\n"
"Language-Team: Galician <gnome-l10n-gl@gnome.org>\n"
@@ -18,48 +18,69 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n!=1);\n"
#. dummy vars for translation
-#: ../src/extension.js:148
+#: ../src/extension.js:53
msgid "Playing"
msgstr "Reproducindo"
-#: ../src/extension.js:149
+#: ../src/extension.js:54
msgid "Paused"
msgstr "Pausado"
-#: ../src/extension.js:150
+#: ../src/extension.js:55
msgid "Stopped"
msgstr "Detido"
-#: ../src/extension.js:154
-#, c-format
-msgid "Schema \"%s\" not found."
-msgstr "Non foi posíbel atopar o esquema «%s»"
-
-#: ../src/extension.js:482
+#: ../src/extension.js:103
msgid "by"
msgstr "por"
-#: ../src/extension.js:484
+#: ../src/extension.js:105
msgid "from"
msgstr "de"
-#: ../src/extension.js:519
+#: ../src/extension.js:149
msgid "Volume"
msgstr "Volume"
-#: ../src/extension.js:626
+#: ../src/extension.js:242
#, fuzzy
msgid "Playlists"
msgstr "Reproducindo"
-#: ../src/extension.js:696
+#: ../src/extension.js:313
msgid "Unknown Artist"
msgstr "Artista descoñecido"
-#: ../src/extension.js:700
+#: ../src/extension.js:317
msgid "Unknown Album"
msgstr "Álbum descoñecido"
-#: ../src/extension.js:704
+#: ../src/extension.js:322
msgid "Unknown Title"
msgstr "Título descoñecido"
+
+#: ../src/prefs.js:29
+msgid "Show the media player in the volume menu"
+msgstr ""
+
+#: ../src/prefs.js:30
+#, fuzzy
+msgid "Show the media player volume slider"
+msgstr "Reproducindo"
+
+#: ../src/prefs.js:31
+#, fuzzy
+msgid "Show the media player position slider"
+msgstr "Reproducindo"
+
+#: ../src/prefs.js:32
+#, fuzzy
+msgid "Show media player playlists"
+msgstr "Reproducindo"
+
+#: ../src/prefs.js:35
+msgid "Album cover size"
+msgstr ""
+
+#~ msgid "Schema \"%s\" not found."
+#~ msgstr "Non foi posíbel atopar o esquema «%s»"
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-12-09 20:36+0100\n"
+"POT-Creation-Date: 2012-02-09 13:45+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -18,47 +18,62 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
#. dummy vars for translation
-#: ../src/extension.js:148
+#: ../src/extension.js:53
msgid "Playing"
msgstr ""
-#: ../src/extension.js:149
+#: ../src/extension.js:54
msgid "Paused"
msgstr ""
-#: ../src/extension.js:150
+#: ../src/extension.js:55
msgid "Stopped"
msgstr ""
-#: ../src/extension.js:154
-#, c-format
-msgid "Schema \"%s\" not found."
-msgstr ""
-
-#: ../src/extension.js:482
+#: ../src/extension.js:103
msgid "by"
msgstr ""
-#: ../src/extension.js:484
+#: ../src/extension.js:105
msgid "from"
msgstr ""
-#: ../src/extension.js:519
+#: ../src/extension.js:149
msgid "Volume"
msgstr ""
-#: ../src/extension.js:626
+#: ../src/extension.js:242
msgid "Playlists"
msgstr ""
-#: ../src/extension.js:696
+#: ../src/extension.js:313
msgid "Unknown Artist"
msgstr ""
-#: ../src/extension.js:700
+#: ../src/extension.js:317
msgid "Unknown Album"
msgstr ""
-#: ../src/extension.js:704
+#: ../src/extension.js:322
msgid "Unknown Title"
msgstr ""
+
+#: ../src/prefs.js:29
+msgid "Show the media player in the volume menu"
+msgstr ""
+
+#: ../src/prefs.js:30
+msgid "Show the media player volume slider"
+msgstr ""
+
+#: ../src/prefs.js:31
+msgid "Show the media player position slider"
+msgstr ""
+
+#: ../src/prefs.js:32
+msgid "Show media player playlists"
+msgstr ""
+
+#: ../src/prefs.js:35
+msgid "Album cover size"
+msgstr ""
Oops, something went wrong.

0 comments on commit 7ac69f0

Please sign in to comment.