Fix some random indentation errors and missing imports.
This commit is contained in:
parent
c92c12893a
commit
16e8369e23
6 changed files with 15 additions and 18 deletions
|
@ -1333,8 +1333,6 @@ class AccountsWindow:
|
||||||
st = gajim.config.get('mergeaccounts')
|
st = gajim.config.get('mergeaccounts')
|
||||||
self.xml.get_widget('merge_checkbutton').set_active(st)
|
self.xml.get_widget('merge_checkbutton').set_active(st)
|
||||||
|
|
||||||
import os
|
|
||||||
|
|
||||||
self.avahi_available = True
|
self.avahi_available = True
|
||||||
try:
|
try:
|
||||||
import avahi
|
import avahi
|
||||||
|
|
|
@ -1898,7 +1898,7 @@ class SingleMessageWindow:
|
||||||
spell1.set_language(lang)
|
spell1.set_language(lang)
|
||||||
spell2.set_language(lang)
|
spell2.set_language(lang)
|
||||||
except gobject.GError, msg:
|
except gobject.GError, msg:
|
||||||
dialogs.AspellDictError(lang)
|
self.AspellDictError(lang)
|
||||||
|
|
||||||
self.prepare_widgets_for(self.action)
|
self.prepare_widgets_for(self.action)
|
||||||
|
|
||||||
|
|
|
@ -2364,13 +2364,13 @@ class RosterWindow:
|
||||||
if gajim.connections[account] and gajim.connections[account].\
|
if gajim.connections[account] and gajim.connections[account].\
|
||||||
privacy_rules_supported:
|
privacy_rules_supported:
|
||||||
if jid in gajim.connections[account].blocked_contacts:
|
if jid in gajim.connections[account].blocked_contacts:
|
||||||
block_menuitem.set_no_show_all(True)
|
block_menuitem.set_no_show_all(True)
|
||||||
unblock_menuitem.connect('activate', self.on_unblock, iter, None)
|
unblock_menuitem.connect('activate', self.on_unblock, iter, None)
|
||||||
block_menuitem.hide()
|
block_menuitem.hide()
|
||||||
else:
|
else:
|
||||||
unblock_menuitem.set_no_show_all(True)
|
unblock_menuitem.set_no_show_all(True)
|
||||||
block_menuitem.connect('activate', self.on_block, iter, None)
|
block_menuitem.connect('activate', self.on_block, iter, None)
|
||||||
unblock_menuitem.hide()
|
unblock_menuitem.hide()
|
||||||
else:
|
else:
|
||||||
unblock_menuitem.set_no_show_all(True)
|
unblock_menuitem.set_no_show_all(True)
|
||||||
block_menuitem.set_sensitive(False)
|
block_menuitem.set_sensitive(False)
|
||||||
|
@ -5419,13 +5419,13 @@ class RosterWindow:
|
||||||
## accounts has no effect until they are connected.
|
## accounts has no effect until they are connected.
|
||||||
st = gajim.config.get('set_status_msg_from_current_music_track')
|
st = gajim.config.get('set_status_msg_from_current_music_track')
|
||||||
if st:
|
if st:
|
||||||
gobject.timeout_add(1000,
|
gobject.timeout_add(1000,
|
||||||
self.enable_syncing_status_msg_from_current_music_track,
|
self.enable_syncing_status_msg_from_current_music_track,
|
||||||
st)
|
st)
|
||||||
else:
|
else:
|
||||||
gobject.timeout_add(1000,
|
gobject.timeout_add(1000,
|
||||||
self.enable_syncing_status_msg_from_lastfm,
|
self.enable_syncing_status_msg_from_lastfm,
|
||||||
gajim.config.get('set_status_msg_from_lastfm'))
|
gajim.config.get('set_status_msg_from_lastfm'))
|
||||||
|
|
||||||
if gajim.config.get('show_roster_on_startup'):
|
if gajim.config.get('show_roster_on_startup'):
|
||||||
self.window.show_all()
|
self.window.show_all()
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
import gobject
|
import gobject
|
||||||
import gtk
|
import gtk
|
||||||
|
|
||||||
from common import xmpp, gajim, dataforms
|
from common import gajim, dataforms
|
||||||
|
|
||||||
import gtkgui_helpers
|
import gtkgui_helpers
|
||||||
import dialogs
|
import dialogs
|
||||||
|
|
|
@ -30,7 +30,6 @@ import gtkgui_helpers
|
||||||
|
|
||||||
from common import gajim
|
from common import gajim
|
||||||
from common import helpers
|
from common import helpers
|
||||||
from common import i18n
|
|
||||||
|
|
||||||
class BaseTooltip:
|
class BaseTooltip:
|
||||||
''' Base Tooltip class;
|
''' Base Tooltip class;
|
||||||
|
|
Loading…
Add table
Reference in a new issue