Skip to content
Snippets Groups Projects
Commit 5af3964f authored by Dicson's avatar Dicson
Browse files

roster_buttons.do not translate buttons lebel.

triggers.remove unused import,coding style
parent 5b32b639
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@
<property name="layout_style">spread</property>
<child>
<object class="GtkButton" id="roster_button_1">
<property name="label" translatable="yes">1</property>
<property name="label">1</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
......@@ -24,7 +24,7 @@
</child>
<child>
<object class="GtkButton" id="roster_button_2">
<property name="label" translatable="yes">2</property>
<property name="label">2</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
......@@ -38,7 +38,7 @@
</child>
<child>
<object class="GtkButton" id="roster_button_3">
<property name="label" translatable="yes">3</property>
<property name="label">3</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
......@@ -52,7 +52,7 @@
</child>
<child>
<object class="GtkButton" id="roster_button_4">
<property name="label" translatable="yes">4</property>
<property name="label">4</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
......
......@@ -24,7 +24,7 @@
from common import gajim
from plugins import GajimPlugin
from plugins.helpers import log_calls, log
from plugins.helpers import log_calls
from plugins.gui import GajimPluginConfigDialog
from common import ged
from common import helpers
......@@ -38,7 +38,7 @@ def init(self):
self.config_dialog = TriggersPluginConfigDialog(self)
self.config_default_values = {}
self.events_handlers = {'notification' : (ged.PREGUI, self._nec_notif),
self.events_handlers = {'notification': (ged.PREGUI, self._nec_notif),
'decrypted-message-received': (ged.PREGUI2,
self._nec_decrypted_message_received),
'presence-received': (ged.PREGUI, self._nec_presence_received)}
......@@ -436,7 +436,7 @@ def on_delete_button_clicked(self, widget):
while iter2:
num = model[iter2][0]
model[iter2][0] = num - 1
self.config[num-1] = self.config[num].copy()
self.config[num - 1] = self.config[num].copy()
iter2 = model.iter_next(iter2)
model.remove(iter_)
del self.config[num]
......@@ -454,7 +454,7 @@ def on_up_button_clicked(self, widget):
self.config[self.active_num] = self.config[self.active_num - 1]
self.config[self.active_num - 1] = conf
model[iter_][0] =self.active_num - 1
model[iter_][0] = self.active_num - 1
# get previous iter
path = model.get_path(iter_)
iter_ = model.get_iter((path[0] - 1,))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment