changeset b3b5373c662a in /home/hg/repos/gajim

branches: gtk3
details:http://hg.gajim.org/gajim?cmd=changeset;node=b3b5373c662a
description: split long lines

diffstat:

 src/disco.py |  35 +++++++++++++++++++----------------
 1 files changed, 19 insertions(+), 16 deletions(-)

diffs (105 lines):

diff -r 517b0a34c3b8 -r b3b5373c662a src/disco.py
--- a/src/disco.py      Thu Aug 15 19:28:44 2013 +0400
+++ b/src/disco.py      Thu Aug 15 19:40:59 2013 +0400
@@ -634,7 +634,7 @@
         if text_after:
             font.set_weight(Pango.Weight.NORMAL)
             markup = '%s\n<span font_desc="%s" size="small">%s</span>' % \
-                                                            (markup, 
font.to_string(), text_after)
+                (markup, font.to_string(), text_after)
         self.banner.set_markup(markup)
 
     def paint_banner(self):
@@ -765,7 +765,8 @@
                 # We can't travel anywhere else.
                 self.destroy()
             dialogs.ErrorDialog(_('The service could not be found'),
-_('There is no service at the address you entered, or it is not responding. 
Check the address and try again.'))
+_('There is no service at the address you entered, or it is not responding. '
+    'Check the address and try again.'))
             return
         klass = self.cache.get_browser(identities, features)
         if not klass:
@@ -1315,7 +1316,7 @@
             state = self.model[iter_][4]
             # Not a category, and we have something to say about state
             if jid and state > 0 and \
-                            (self.tooltip.timeout == 0 or self.tooltip.id != 
props[0]):
+            (self.tooltip.timeout == 0 or self.tooltip.id != props[0]):
                 self.tooltip.id = row
                 self.tooltip.timeout = GLib.timeout_add(500, 
self._show_tooltip,
                     state)
@@ -1356,15 +1357,15 @@
         # Connect signals
         scrollwin = self.window.services_scrollwin
         self._view_signals.append(view.connect('leave-notify-event',
-                                                                        
self.on_treeview_leave_notify_event))
+            self.on_treeview_leave_notify_event))
         self._view_signals.append(view.connect('motion-notify-event',
-                                                                        
self.on_treeview_motion_notify_event))
+            self.on_treeview_motion_notify_event))
         self._view_signals.append(view.connect('key-press-event',
-                                                                        
self.on_treeview_event_hide_tooltip))
+            self.on_treeview_event_hide_tooltip))
         self._view_signals.append(view.connect('button-press-event',
-                                                                        
self.on_treeview_event_hide_tooltip))
+            self.on_treeview_event_hide_tooltip))
         self._scroll_signal = scrollwin.connect('scroll-event',
-                                                                        
self.on_treeview_event_hide_tooltip)
+            self.on_treeview_event_hide_tooltip)
 
     def _clean_treemodel(self):
         # Disconnect signals
@@ -1881,9 +1882,8 @@
 
         for bookmark in gajim.connections[self.account].bookmarks:
             if bookmark['jid'] == bm['jid']:
-                dialogs.ErrorDialog(
-                        _('Bookmark already set'),
-                        _('Group Chat "%s" is already in your bookmarks.') % 
bm['jid'])
+                dialogs.ErrorDialog( _('Bookmark already set'),
+                _('Group Chat "%s" is already in your bookmarks.') % bm['jid'])
                 return
 
         gajim.connections[self.account].bookmarks.append(bm)
@@ -1892,8 +1892,8 @@
         gajim.interface.roster.set_actions_menu_needs_rebuild()
 
         dialogs.InformationDialog(
-                        _('Bookmark has been added successfully'),
-                        _('You can manage your bookmarks via Actions menu in 
your roster.'))
+            _('Bookmark has been added successfully'),
+            _('You can manage your bookmarks via Actions menu in your 
roster.'))
 
     def on_join_button_clicked(self, *args):
         """
@@ -2061,7 +2061,8 @@
         self.subscribe_button = None
         self.unsubscribe_button = None
 
-        gajim.connections[account].send_pb_subscription_query(jid, 
self._on_pep_subscriptions)
+        gajim.connections[account].send_pb_subscription_query(jid,
+            self._on_pep_subscriptions)
 
     def _create_treemodel(self):
         """
@@ -2233,7 +2234,8 @@
 
         groupnode = model.get_value(iter_, 1)   # 1 = groupnode
 
-        gajim.connections[self.account].send_pb_subscribe(self.jid, groupnode, 
self._on_pep_subscribe, groupnode)
+        gajim.connections[self.account].send_pb_subscribe(self.jid, groupnode,
+            self._on_pep_subscribe, groupnode)
 
     def on_unsubscribe_button_clicked(self, widget):
         """
@@ -2244,7 +2246,8 @@
 
         groupnode = model.get_value(iter_, 1) # 1 = groupnode
 
-        gajim.connections[self.account].send_pb_unsubscribe(self.jid, 
groupnode, self._on_pep_unsubscribe, groupnode)
+        gajim.connections[self.account].send_pb_unsubscribe(self.jid, 
groupnode,
+            self._on_pep_unsubscribe, groupnode)
 
     def _on_pep_subscriptions(self, conn, request):
         """
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to