[gnome-shell-extension-theme-selector] Initial import

Tim Lauridsen timlau at fedoraproject.org
Mon Jun 20 16:26:52 UTC 2011


commit 25b9ac37289cbaf90a3b9854cd915173d6031f26
Author: Tim Lauridsen <timlau at fedoraproject.org>
Date:   Mon Jun 20 18:26:26 2011 +0200

    Initial import

 .gitignore                                |    1 +
 5-columns.patch                           |   25 +++++++++++++
 gnome-shell-extension-theme-selector.spec |   57 +++++++++++++++++++++++++++++
 sources                                   |    1 +
 system-wide-themes.patch                  |   28 ++++++++++++++
 5 files changed, 112 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2ba7db0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/themeselector-0.9.tar.gz
diff --git a/5-columns.patch b/5-columns.patch
new file mode 100644
index 0000000..4a1755b
--- /dev/null
+++ b/5-columns.patch
@@ -0,0 +1,25 @@
+From 913d64c24a6c46d677aaed382b2237d8e8aa1e65 Mon Sep 17 00:00:00 2001
+From: Tim Lauridsen <timlau at fedoraproject.org>
+Date: Fri, 10 Jun 2011 18:01:11 +0200
+Subject: [PATCH 1/2] Increase number of columns to 5
+
+---
+ extension.js |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/extension.js b/extension.js
+index d5f30da..884a8f7 100644
+--- a/extension.js
++++ b/extension.js
+@@ -173,7 +173,7 @@ ThemeSelector.prototype = {
+         // move these to constants
+         let gridSpacing = 10;
+         let gridPadding = 25;
+-        let numColumns = 3;
++        let numColumns = 5;
+         let numDrop = 40;
+ 
+         let w = Math.floor((this._grid.width - ( (numColumns - 1) * gridSpacing + 2 * gridPadding )) / numColumns);
+-- 
+1.7.5.2
+
diff --git a/gnome-shell-extension-theme-selector.spec b/gnome-shell-extension-theme-selector.spec
new file mode 100644
index 0000000..353a799
--- /dev/null
+++ b/gnome-shell-extension-theme-selector.spec
@@ -0,0 +1,57 @@
+%global uuid themeselector at fpmurphy.com
+
+
+Name:           gnome-shell-extension-theme-selector
+Version:        0.9
+Release:        3%{?dist}
+Summary:        Gnome shell user theme selector 
+Group:          User Interface/Desktops     
+
+License:        GPLv2+
+URL:            http://blog.fpmurphy.com/2011/04/gnome-shell-theme-selector-preview.html
+Source0:        http://www.fpmurphy.com/gnome-shell-extensions/themeselector-%{version}.tar.gz
+# 5 columns to show more themes
+Patch0:         5-columns.patch
+# Show system wide themes (/usr/share/themes/<ThemeName>/gnome-shell/)
+Patch1:         system-wide-themes.patch
+
+Requires:       gnome-shell-extensions-user-theme
+Requires:       gnome-shell >= 3.0.1
+BuildArch:      noarch
+
+%description
+Gnome shell user theme selector with preview
+
+%prep
+%setup -q -c 
+%patch0 -p1
+%patch1 -p1
+
+
+%install
+rm -rf %{buildroot}
+mkdir -p -m755 %{buildroot}%{_datadir}/gnome-shell/extensions/%{uuid}
+install -Dp -m 0644 {extension.js,metadata.json} \
+  %{buildroot}%{_datadir}/gnome-shell/extensions/%{uuid}/
+  
+# Install preview & theme metadata for Gnome3 default theme Adwaita so it can be selected.
+mkdir -p -m755 %{buildroot}%{_datadir}/themes/Adwaita/gnome-shell  
+install -Dp -m 0644 Adwaita/gnome-shell/{theme.json,preview-adwaita.png} \
+  %{buildroot}%{_datadir}/themes/Adwaita/gnome-shell 
+
+%files
+%doc README
+%{_datadir}/gnome-shell/extensions/%{uuid}/
+%{_datadir}/themes/Adwaita/gnome-shell/
+
+%changelog
+* Sat Jun 11 2011 Tim Lauridsen <timlau at fedoraproject.org> 0.9-3
+- Install preview & theme metadata for Gnome3 default theme Adwaita so it can be selected.
+
+* Thu Jun 9 2011 Tim Lauridsen <timlau at fedoraproject.org> 0.9-2
+- remove themes and theme install helper
+- Added patch to show 5 columns of theme previews.
+- Added patch to support system wide themes
+
+* Sat May 14 2011 Tim Lauridsen <timlau at fedoraproject.org> 0.9-1
+- initial rpm build
diff --git a/sources b/sources
index e69de29..c8901b6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+61640cfdc9ad1a418b18d6be195705f5  themeselector-0.9.tar.gz
diff --git a/system-wide-themes.patch b/system-wide-themes.patch
new file mode 100644
index 0000000..8668ede
--- /dev/null
+++ b/system-wide-themes.patch
@@ -0,0 +1,28 @@
+From a685ae27fa1d7db0f4ec3959e0d6d79ee5a55a82 Mon Sep 17 00:00:00 2001
+From: Tim Lauridsen <timlau at fedoraproject.org>
+Date: Fri, 10 Jun 2011 18:04:36 +0200
+Subject: [PATCH 2/2] Add support from system wide themes
+
+---
+ extension.js |    4 ++++
+ 1 files changed, 4 insertions(+), 0 deletions(-)
+
+diff --git a/extension.js b/extension.js
+index 884a8f7..a59464e 100644
+--- a/extension.js
++++ b/extension.js
+@@ -123,7 +123,11 @@ ThemeSelector.prototype = {
+         this._themes = [];
+         
+         let _home_dir = GLib.get_home_dir();
++        let _sysdirs = GLib.get_system_data_dirs();
+         this._themesDirs = [GLib.build_filenamev([_home_dir, '/.themes'])];
++		for (let i = 0; i < _sysdirs.length; i++) {
++			this._themesDirs.push(_sysdirs[i] + '/themes');
++		}
+ 
+         // retrieve the current theme if set
+         this._settings = new Gio.Settings({ schema: GSETTINGS_SCHEMA });
+-- 
+1.7.5.2
+


More information about the scm-commits mailing list