add some newline
This commit is contained in:
parent
df08d2f0c6
commit
8b1e70c396
|
@ -331,11 +331,13 @@ class MessageWindow:
|
||||||
notebook = self.notebook
|
notebook = self.notebook
|
||||||
active_widget = notebook.get_nth_page(notebook.get_current_page())
|
active_widget = notebook.get_nth_page(notebook.get_current_page())
|
||||||
return self._widget_to_control(active_widget)
|
return self._widget_to_control(active_widget)
|
||||||
|
|
||||||
def get_active_contact(self):
|
def get_active_contact(self):
|
||||||
ctrl = self.get_active_control()
|
ctrl = self.get_active_control()
|
||||||
if ctrl:
|
if ctrl:
|
||||||
return ctrl.contact
|
return ctrl.contact
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def get_active_jid(self):
|
def get_active_jid(self):
|
||||||
contact = self.get_active_contact()
|
contact = self.get_active_contact()
|
||||||
if contact:
|
if contact:
|
||||||
|
@ -344,15 +346,18 @@ class MessageWindow:
|
||||||
|
|
||||||
def is_active(self):
|
def is_active(self):
|
||||||
return self.window.is_active()
|
return self.window.is_active()
|
||||||
|
|
||||||
def get_origin(self):
|
def get_origin(self):
|
||||||
return self.window.window.get_origin()
|
return self.window.window.get_origin()
|
||||||
|
|
||||||
def toggle_emoticons(self):
|
def toggle_emoticons(self):
|
||||||
for ctrl in self.controls():
|
for ctrl in self.controls():
|
||||||
ctrl.toggle_emoticons()
|
ctrl.toggle_emoticons()
|
||||||
|
|
||||||
def update_font(self):
|
def update_font(self):
|
||||||
for ctrl in self.controls():
|
for ctrl in self.controls():
|
||||||
ctrl.update_font()
|
ctrl.update_font()
|
||||||
|
|
||||||
def update_tags(self):
|
def update_tags(self):
|
||||||
for ctrl in self.controls():
|
for ctrl in self.controls():
|
||||||
ctrl.update_tags()
|
ctrl.update_tags()
|
||||||
|
@ -429,6 +434,7 @@ class MessageWindow:
|
||||||
else: # traverse for ever (eg. don't stop at first tab)
|
else: # traverse for ever (eg. don't stop at first tab)
|
||||||
self.notebook.set_current_page(
|
self.notebook.set_current_page(
|
||||||
self.notebook.get_n_pages() - 1)
|
self.notebook.get_n_pages() - 1)
|
||||||
|
|
||||||
def popup_menu(self, event):
|
def popup_menu(self, event):
|
||||||
menu = self.get_active_control().prepare_context_menu()
|
menu = self.get_active_control().prepare_context_menu()
|
||||||
# common menuitems (tab switches)
|
# common menuitems (tab switches)
|
||||||
|
|
Loading…
Reference in New Issue