Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Fomin <fominde@gmail.com>2013-07-31 19:07:43 +0400
committerDenis Fomin <fominde@gmail.com>2013-07-31 19:07:43 +0400
commit82c868595b67ec30b5fd22dc9bc6c3161915597c (patch)
tree7634333c6f0bd4a24a8fd093da7ad31a954be9de
parent32a6504dd0f5d36b40821650284c3873b3802437 (diff)
Make plugins not activatable under windows(dbus support needed)
-rw-r--r--hamster/hamster.py6
-rw-r--r--hamster/manifest.ini2
-rw-r--r--mpris2_support/manifest.ini2
-rw-r--r--mpris2_support/mpris2_support.py4
-rw-r--r--now_listen/manifest.ini2
-rw-r--r--now_listen/now_listen.py4
-rw-r--r--wicd_support/manifest.ini2
-rw-r--r--wicd_support/wicd_support.py5
8 files changed, 22 insertions, 5 deletions
diff --git a/hamster/hamster.py b/hamster/hamster.py
index 6e736ef..3daff27 100644
--- a/hamster/hamster.py
+++ b/hamster/hamster.py
@@ -3,10 +3,11 @@
import dbus
import datetime as dt
import gobject
+import os
+
from common import gajim
from common import ged
from common import dbus_support
-
from plugins import GajimPlugin
from plugins.helpers import log_calls, log
from common.pep import ACTIVITIES
@@ -29,6 +30,9 @@ class HamsterIntegrationPlugin(GajimPlugin):
'and http://projecthamster.wordpress.com/about/')
self.config_dialog = None
self.events_handlers = {}
+ if os.name == 'nt':
+ self.available_text = _('Plugin can\'t be run under Windows.')
+ self.activatable = False
@log_calls('HamsterIntegrationPlugin')
def activate(self):
diff --git a/hamster/manifest.ini b/hamster/manifest.ini
index 5e54870..1f80b29 100644
--- a/hamster/manifest.ini
+++ b/hamster/manifest.ini
@@ -1,7 +1,7 @@
[info]
name: Hamster integration
short_name: hamster_integration
-version: 0.1.2
+version: 0.1.3
description: Integration with project hamster
see https://trac.gajim.org/ticket/6993
and http://projecthamster.wordpress.com/about/
diff --git a/mpris2_support/manifest.ini b/mpris2_support/manifest.ini
index 9a67013..830c414 100644
--- a/mpris2_support/manifest.ini
+++ b/mpris2_support/manifest.ini
@@ -1,7 +1,7 @@
[info]
name: MPRIS2 support
short_name: mpris2_support
-version: 0.3.1
+version: 0.3.2
description: MPRIS2 support. Allows to update status message according to the music you're listening via the MPRIS2 D-Bus API.
authors = Denis Fomin <fominde@gmail.com>
homepage = http://trac-plugins.gajim.org/wiki/MprisSupportPlugin
diff --git a/mpris2_support/mpris2_support.py b/mpris2_support/mpris2_support.py
index 386f59a..deb95aa 100644
--- a/mpris2_support/mpris2_support.py
+++ b/mpris2_support/mpris2_support.py
@@ -2,6 +2,7 @@
import gtk
import gobject
+import os
from common import gajim
from plugins import GajimPlugin
@@ -26,6 +27,9 @@ class Mpris2Plugin(GajimPlugin):
self.config_dialog = None
self.artist = self.title = self.source = ''
self.listener = MusicTrackListener().get()
+ if os.name == 'nt':
+ self.available_text = _('Plugin can\'t be run under Windows.')
+ self.activatable = False
@log_calls('NowListenPlugin')
def activate(self):
diff --git a/now_listen/manifest.ini b/now_listen/manifest.ini
index 4555b64..60be890 100644
--- a/now_listen/manifest.ini
+++ b/now_listen/manifest.ini
@@ -1,7 +1,7 @@
[info]
name: Now Listen
short_name: now-listen
-version: 0.2.1
+version: 0.2.2
description: Copy tune info to conversation input box (alt + n) at cursor position
authors = Denis Fomin <fominde@gmail.com>
homepage = http://trac-plugins.gajim.org/wiki/NowListenPlugin
diff --git a/now_listen/now_listen.py b/now_listen/now_listen.py
index de8ce45..44b9e3b 100644
--- a/now_listen/now_listen.py
+++ b/now_listen/now_listen.py
@@ -2,6 +2,7 @@
import gtk
import gobject
+import os
from common import gajim
from plugins import GajimPlugin
@@ -30,6 +31,9 @@ class NowListenPlugin(GajimPlugin):
self.controls = []
self.first_run = True
self.music_track_changed_signal = None
+ if os.name == 'nt':
+ self.available_text = _('Plugin can\'t be run under Windows.')
+ self.activatable = False
@log_calls('NowListenPlugin')
def connect_with_chat_control(self, chat_control):
diff --git a/wicd_support/manifest.ini b/wicd_support/manifest.ini
index 3c78b35..6f0b8f9 100644
--- a/wicd_support/manifest.ini
+++ b/wicd_support/manifest.ini
@@ -1,7 +1,7 @@
[info]
name: Wicd support
short_name: wicd_support
-version: 0.1.1
+version: 0.1.2
description: Support for autodetection of network status for Wicd Network Manager.
Requires wicd and python-dbus.
authors = Denis Fomin <fominde@gmail.com>
diff --git a/wicd_support/wicd_support.py b/wicd_support/wicd_support.py
index 0bf9034..f8ee86d 100644
--- a/wicd_support/wicd_support.py
+++ b/wicd_support/wicd_support.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
import gobject
+import os
from common import gajim
from plugins import GajimPlugin
@@ -18,6 +19,10 @@ class WicdPlugin(GajimPlugin):
def test_activatable(self):
self.available_text = ''
+ if os.name == 'nt':
+ self.available_text = _('Plugin can\'t be run under Windows.')
+ self.activatable = False
+ return
if not dbus_support.supported:
self.activatable = False
self.available_text += _('python-dbus is missing! '