From 1ffb8673554818a08930712b141091b246cd9d90 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Mon, 17 Oct 2005 12:45:55 +0000 Subject: [PATCH] better varname --- src/common/config.py | 8 ++++---- src/dialogs.py | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/common/config.py b/src/common/config.py index f6dfc2581..4d44d037d 100644 --- a/src/common/config.py +++ b/src/common/config.py @@ -95,10 +95,10 @@ class Config: 'chat-y-position': [opt_int, 0], 'chat-width': [opt_int, 480], 'chat-height': [opt_int, 440], - 'single-x-position': [opt_int, 0], - 'single-y-position': [opt_int, 0], - 'single-width': [opt_int, 400], - 'single-height': [opt_int, 280], + 'single_msg-x-position': [opt_int, 0], + 'single_msg-y-position': [opt_int, 0], + 'single_msg-width': [opt_int, 400], + 'single_msg-height': [opt_int, 280], 'roster_x-position': [ opt_int, 0 ], 'roster_y-position': [ opt_int, 0 ], 'roster_width': [ opt_int, 150 ], diff --git a/src/dialogs.py b/src/dialogs.py index 29a7e357a..5d515153b 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -1013,22 +1013,22 @@ class SingleMessageWindow: if gajim.config.get('saveposition'): # get window position and size from config gtkgui_helpers.move_window(self.window, - gajim.config.get('single-x-position'), - gajim.config.get('single-y-position')) + gajim.config.get('single_msg-x-position'), + gajim.config.get('single_msg-y-position')) gtkgui_helpers.resize_window(self.window, - gajim.config.get('single-width'), - gajim.config.get('single-height')) + gajim.config.get('single_msg-width'), + gajim.config.get('single_msg-height')) self.window.show_all() def on_single_message_window_destroy(self, window): if gajim.config.get('saveposition'): # save the window size and position x, y = self.window.get_position() - gajim.config.set('single-x-position', x) - gajim.config.set('single-y-position', y) + gajim.config.set('single_msg-x-position', x) + gajim.config.set('single_msg-y-position', y) width, height = self.window.get_size() - gajim.config.set('single-width', width) - gajim.config.set('single-height', height) + gajim.config.set('single_msg-width', width) + gajim.config.set('single_msg-height', height) def prepare_widgets_for(self, action): our_jid = gajim.config.get_per('accounts', self.account, 'name') + '@' + \