better var name, use int instead of float
This commit is contained in:
parent
25572229da
commit
039fbb7953
4 changed files with 5 additions and 5 deletions
|
@ -784,8 +784,8 @@ class ChatControlBase(MessageControl):
|
|||
def sent_messages_scroll(self, direction, conv_buf):
|
||||
size = len(self.sent_history)
|
||||
if self.orig_msg is None:
|
||||
#user was typing something and then went into history, so save
|
||||
#whatever is already typed
|
||||
# user was typing something and then went into history, so save
|
||||
# whatever is already typed
|
||||
start_iter = conv_buf.get_start_iter()
|
||||
end_iter = conv_buf.get_end_iter()
|
||||
self.orig_msg = conv_buf.get_text(start_iter, end_iter, 0).decode(
|
||||
|
|
|
@ -761,7 +761,7 @@ class PreferencesWindow:
|
|||
|
||||
def on_reset_colors_button_clicked(self, widget):
|
||||
for i in ('inmsgcolor', 'outmsgcolor', 'statusmsgcolor', 'urlmsgcolor'):
|
||||
gajim.config.set(i, gajim.interface.default_values[i])
|
||||
gajim.config.set(i, gajim.interface.default_colors[i])
|
||||
|
||||
self.xml.get_widget('incoming_msg_colorbutton').set_color(\
|
||||
gtk.gdk.color_parse(gajim.config.get('inmsgcolor')))
|
||||
|
|
|
@ -2067,7 +2067,7 @@ class Interface:
|
|||
self.emoticons_menu = None
|
||||
# handler when an emoticon is clicked in emoticons_menu
|
||||
self.emoticon_menuitem_clicked = None
|
||||
self.default_values = {
|
||||
self.default_colors = {
|
||||
'inmsgcolor': gajim.config.get('inmsgcolor'),
|
||||
'outmsgcolor': gajim.config.get('outmsgcolor'),
|
||||
'statusmsgcolor': gajim.config.get('statusmsgcolor'),
|
||||
|
|
|
@ -195,7 +195,7 @@ class GroupchatControl(ChatControlBase):
|
|||
# muc attention flag (when we are mentioned in a muc)
|
||||
# if True, the room has mentioned us
|
||||
self.attention_flag = False
|
||||
self.room_creation = time.time()
|
||||
self.room_creation = int(time.time()) # Use int to reduce mem usage
|
||||
self.nick_hits = []
|
||||
self.cmd_hits = []
|
||||
self.last_key_tabs = False
|
||||
|
|
Loading…
Add table
Reference in a new issue