[starcal] Add support for gnome-shell 3.2 extension system

Hedayat Vatankhah hedayat at fedoraproject.org
Wed Oct 19 20:41:59 UTC 2011


commit d1a08600a7e03f732b00db175498f2ad535dabe3
Author: Hedayat Vatankhah <hedayat.fwd at gmail.com>
Date:   Thu Oct 20 00:07:28 2011 +0330

    Add support for gnome-shell 3.2 extension system

 extension.js  |   14 +++++++++++---
 metadata.json |    2 +-
 starcal.spec  |    5 ++++-
 3 files changed, 16 insertions(+), 5 deletions(-)
---
diff --git a/extension.js b/extension.js
index 3ac08f5..ef2f092 100644
--- a/extension.js
+++ b/extension.js
@@ -4,7 +4,15 @@
 const Panel = imports.ui.panel;
 const StatusIconDispatcher = imports.ui.statusIconDispatcher;
 
-function main() {
-    StatusIconDispatcher.STANDARD_TRAY_ICON_IMPLEMENTATIONS['starcal2.py'] = 'starcal2.py';
-    StatusIconDispatcher.STANDARD_TRAY_ICON_IMPLEMENTATIONS['starcal.py'] = 'starcal.py';
+function init() {
+}
+
+function enable() {
+    StatusIconDispatcher.STANDARD_TRAY_ICON_IMPLEMENTATIONS['starcal2.py'] = 'StarCalendar';
+    StatusIconDispatcher.STANDARD_TRAY_ICON_IMPLEMENTATIONS['starcal.py'] = 'StarCalendar';
+}
+
+function disable() {
+    StatusIconDispatcher.STANDARD_TRAY_ICON_IMPLEMENTATIONS['starcal2.py'] = '';
+    StatusIconDispatcher.STANDARD_TRAY_ICON_IMPLEMENTATIONS['starcal.py'] = '';
 }
diff --git a/metadata.json b/metadata.json
index ca92f8b..3c22c1b 100644
--- a/metadata.json
+++ b/metadata.json
@@ -1 +1 @@
-{"shell-version": ["3.0"], "uuid": "starcal at hedayatvk.wordpress.com", "name": "StarCal Integration", "description": "Integrate StarCal with Gnome Shell's top bar"}
+{"shell-version": ["3.2"], "uuid": "starcal at hedayatvk.wordpress.com", "name": "StarCal Integration", "description": "Integrate StarCal with Gnome Shell's top bar"}
diff --git a/starcal.spec b/starcal.spec
index 644c788..7766ab5 100644
--- a/starcal.spec
+++ b/starcal.spec
@@ -2,7 +2,7 @@
 
 Name:           starcal
 Version:        1.9.4
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        A full-featured international calendar written in Python
 
 Group:          User Interface/Desktops
@@ -83,6 +83,9 @@ desktop-file-install     \
 %{_datadir}/gnome-shell/extensions/*
 
 %changelog
+* Thu Oct 20 2011 Hedayat Vatankhah <hedayat.fwd+rpmchlog at gmail.com> - 1.9.4-2
+- Add support gnome-shell 3.2 by starcal integration extention
+
 * Thu Oct 13 2011 Hedayat Vatankhah <hedayat.fwd+rpmchlog at gmail.com> - 1.9.4-1
 - Updated to 1.9.4
 


More information about the scm-commits mailing list