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:
-rw-r--r--gui_for_me/gui_for_me.py2
-rw-r--r--url_shortener/manifest.ini2
-rw-r--r--url_shortener/url_shortener.py15
3 files changed, 6 insertions, 13 deletions
diff --git a/gui_for_me/gui_for_me.py b/gui_for_me/gui_for_me.py
index d8e6494..dbd14ef 100644
--- a/gui_for_me/gui_for_me.py
+++ b/gui_for_me/gui_for_me.py
@@ -56,7 +56,7 @@ class Base(object):
self.create_buttons()
def create_buttons(self):
- # create juick button
+ # create /me button
actions_hbox = self.chat_control.xml.get_object('actions_hbox')
self.button = Gtk.Button(label=None, stock=None, use_underline=True)
self.button.set_property('relief', Gtk.ReliefStyle.NONE)
diff --git a/url_shortener/manifest.ini b/url_shortener/manifest.ini
index 45a2475..0c6b1d5 100644
--- a/url_shortener/manifest.ini
+++ b/url_shortener/manifest.ini
@@ -1,7 +1,7 @@
[info]
name: Url Shortener
short_name: url_shortener
-version: 0.3.2
+version: 0.3.3
description: Plugin that allows users to shorten a long URL in messages.
For example, you can turn this link:
https://trac.gajim.org/timeline
diff --git a/url_shortener/url_shortener.py b/url_shortener/url_shortener.py
index c4019ec..2a02be0 100644
--- a/url_shortener/url_shortener.py
+++ b/url_shortener/url_shortener.py
@@ -32,13 +32,12 @@ class UrlShortenerPlugin(GajimPlugin):
'MAX_CHARS': (50, ('MAX_CHARS(30-...)')),
'IN_MAX_CHARS': (50, ('MAX_CHARS(30-...)')),
'SHORTEN_OUTGOING': (False, ''),}
- self.events_handlers['message-outgoing'] = (ged.OUT_PRECORE,
- self.handle_outgoing_msg)
- self.events_handlers['gc-message-outgoing'] = (ged.OUT_PRECORE,
- self.handle_outgoing_msg)
+ self.events_handlers = {'message-outgoing': (ged.OUT_PRECORE,
+ self.handle_outgoing_msg),
+ 'gc-message-outgoing': (ged.OUT_PRECORE,
+ self.handle_outgoing_msg)}
self.chat_control = None
self.controls = []
- self.is_active = None
def handle_outgoing_msg(self, event):
if not self.active:
@@ -99,12 +98,6 @@ class UrlShortenerPlugin(GajimPlugin):
control.disconnect_from_chat_control()
self.controls.remove(control)
- def activate(self):
- self.active = True
-
- def deactivate(self):
- self.active = False
-
class Base(object):
def __init__(self, plugin, chat_control):