changeset 997a15816bdc in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=997a15816bdc
description: [mako] missing translated string. Fixes #6103
diffstat:
src/common/config.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r da5c0ff460f4 -r 997a15816bdc src/common/config.py
--- a/src/common/config.py Sat Dec 11 20:51:34 2010 +0300
+++ b/src/common/config.py Mon Dec 13 06:38:27 2010 +0100
@@ -169,7 +169,7 @@
'muc_restore_lines': [opt_int, 20, _('How many lines to request to server when entering a groupchat.')],
'muc_restore_timeout': [opt_int, 60, _('How many minutes back to request logs when a entering a groupchat.')],
'muc_autorejoin_timeout': [opt_int, 1, _('How many seconds to wait before trying to autorejoin to a conference you are being disconnected from. Set to 0 to disable autorejoining.')],
- 'muc_autorejoin_on_kick': [opt_bool, False, 'Should autorejoin be activated when we are being kicked from a conference?'],
+ 'muc_autorejoin_on_kick': [opt_bool, False, _('Should autorejoin be activated when we are being kicked from a conference?')],
'send_on_ctrl_enter': [opt_bool, False, _('Send message on Ctrl+Enter and with Enter make new line (Mirabilis ICQ Client default behaviour).')],
'show_roster_on_startup': [opt_bool, True],
'key_up_lines': [opt_int, 25, _('How many lines to store for Ctrl+KeyUP.')],
changeset 53b97cb41c61 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=53b97cb41c61
description: tab_eventbox widget. do not grab focus
diffstat:
src/message_window.py | 37 +++++++++++++++++++++----------------
1 files changed, 21 insertions(+), 16 deletions(-)
diffs (103 lines):
diff -r 03bb76314e01 -r 53b97cb41c61 src/message_window.py
--- a/src/message_window.py Sat Dec 11 10:58:12 2010 +0300
+++ b/src/message_window.py Sat Dec 11 12:15:55 2010 +0300
@@ -219,9 +219,9 @@
# destroy window
return False
dialogs.YesNoDialog(
- _('You are going to close several tabs'),
-_('Do you really want to close them all?'),
- checktext=_('_Do not ask me again'), on_response_yes=on_yes1)
+ _('You are going to close several tabs'),
+ _('Do you really want to close them all?'),
+ checktext=_('_Do not ask me again'), on_response_yes=on_yes1)
return True
def on_yes(ctrl):
@@ -292,8 +292,8 @@
id_ = widget.connect('clicked', self._on_close_button_clicked, control)
control.handlers[id_] = widget
- id_ = tab_label_box.connect('button-press-event', self.on_tab_eventbox_button_press_event,
- control.widget)
+ id_ = tab_label_box.connect('button-press-event',
+ self.on_tab_eventbox_button_press_event, control.widget)
control.handlers[id_] = tab_label_box
self.notebook.append_page(control.widget, tab_label_box)
@@ -317,6 +317,9 @@
elif event.button == 2: # middle click
ctrl = self._widget_to_control(child)
self.remove_tab(ctrl, self.CLOSE_TAB_MIDDLE_CLICK)
+ else:
+ ctrl = self._widget_to_control(child)
+ gobject.idle_add(ctrl.msg_textview.grab_focus)
def _on_message_textview_mykeypress_event(self, widget, event_keyval,
event_keymod):
@@ -591,7 +594,7 @@
elif self.get_num_controls() == 1: # we are going from two tabs to one
window_mode = gajim.interface.msg_win_mgr.mode
show_tabs_if_one_tab = gajim.config.get('tabs_always_visible') or \
- window_mode == MessageWindowMgr.ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER
+ window_mode == MessageWindowMgr.ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER
self.notebook.set_show_tabs(show_tabs_if_one_tab)
def redraw_tab(self, ctrl, chatstate = None):
@@ -719,8 +722,8 @@
ind = self.notebook.get_current_page()
current = ind
found = False
- first_composing_ind = -1 # id of first composing ctrl to switch to
- # if no others controls have awaiting events
+ first_composing_ind = -1 # id of first composing ctrl to switch to
+ # if no others controls have awaiting events
# loop until finding an unread tab or having done a complete cycle
while True:
if forward == True: # look for the first unread tab on the right
@@ -735,7 +738,8 @@
if ctrl.get_nb_unread() > 0:
found = True
break # found
- elif gajim.config.get('ctrl_tab_go_to_next_composing') : # Search for a composing contact
+ elif gajim.config.get('ctrl_tab_go_to_next_composing') :
+ # Search for a composing contact
contact = ctrl.contact
if first_composing_ind == -1 and contact.chatstate == 'composing':
# If no composing contact found yet, check if this one is composing
@@ -780,7 +784,8 @@
control.msg_textview.grab_focus()
def _on_notebook_key_press(self, widget, event):
- # when tab itself is selected, make sure <- and -> are allowed for navigating between tabs
+ # when tab itself is selected,
+ # make sure <- and -> are allowed for navigating between tabs
if event.keyval in (gtk.keysyms.Left, gtk.keysyms.Right):
return False
@@ -888,11 +893,11 @@
def __init__(self, parent_window, parent_paned):
"""
A dictionary of windows; the key depends on the config:
- ONE_MSG_WINDOW_NEVER: The key is the contact JID
- ONE_MSG_WINDOW_ALWAYS: The key is MessageWindowMgr.MAIN_WIN
- ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER: The key is MessageWindowMgr.MAIN_WIN
- ONE_MSG_WINDOW_PERACCT: The key is the account name
- ONE_MSG_WINDOW_PERTYPE: The key is a message type constant
+ ONE_MSG_WINDOW_NEVER: The key is the contact JID
+ ONE_MSG_WINDOW_ALWAYS: The key is MessageWindowMgr.MAIN_WIN
+ ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER: The key is MessageWindowMgr.MAIN_WIN
+ ONE_MSG_WINDOW_PERACCT: The key is the account name
+ ONE_MSG_WINDOW_PERTYPE: The key is a message type constant
"""
gobject.GObject.__init__(self)
self._windows = {}
@@ -939,7 +944,7 @@
def one_window_opened(self, contact=None, acct=None, type_=None):
try:
return \
- self._windows[self._mode_to_key(contact, acct, type_)] is not None
+ self._windows[self._mode_to_key(contact, acct, type_)] is not None
except KeyError:
return False