Removed unused functions
This commit is contained in:
parent
cd974302b5
commit
6b8474299e
|
@ -738,13 +738,6 @@ class ChatControl(ChatControlBase):
|
||||||
if self.show_bigger_avatar_timeout_id is not None:
|
if self.show_bigger_avatar_timeout_id is not None:
|
||||||
gobject.source_remove(self.show_bigger_avatar_timeout_id)
|
gobject.source_remove(self.show_bigger_avatar_timeout_id)
|
||||||
|
|
||||||
def save_var(self):
|
|
||||||
gpg_enabled = self.xml.get_widget('gpg_togglebutton').get_active()
|
|
||||||
return {'gpg_enabled': gpg_enabled}
|
|
||||||
|
|
||||||
def load_var(self, var):
|
|
||||||
self.xml.get_widget('gpg_togglebutton').set_active(var['gpg_enabled'])
|
|
||||||
|
|
||||||
def _on_window_motion_notify(self, widget, event):
|
def _on_window_motion_notify(self, widget, event):
|
||||||
'''it gets called no matter if it is the active window or not'''
|
'''it gets called no matter if it is the active window or not'''
|
||||||
if self.parent_win.get_active_jid() == self.contact.jid:
|
if self.parent_win.get_active_jid() == self.contact.jid:
|
||||||
|
|
|
@ -523,21 +523,6 @@ class GroupchatControl(ChatControlBase):
|
||||||
# tooltip must always hold ALL the subject
|
# tooltip must always hold ALL the subject
|
||||||
self.subject_tooltip.set_tip(event_box, self.subject)
|
self.subject_tooltip.set_tip(event_box, self.subject)
|
||||||
|
|
||||||
def save_var(self):
|
|
||||||
return {
|
|
||||||
'nick': self.nick,
|
|
||||||
'model': self.list_treeview.get_model(),
|
|
||||||
'subject': self.subject,
|
|
||||||
}
|
|
||||||
|
|
||||||
def load_var(self, var):
|
|
||||||
self.list_treeview.set_model(var['model'])
|
|
||||||
self.list_treeviewexpand_all()
|
|
||||||
self.set_subject(var['subject'])
|
|
||||||
self.subject= var['subject']
|
|
||||||
if gajim.gc_connected[self.account][self.room_jid]:
|
|
||||||
self.got_connected()
|
|
||||||
|
|
||||||
def got_connected(self):
|
def got_connected(self):
|
||||||
gajim.gc_connected[self.account][self.room_jid] = True
|
gajim.gc_connected[self.account][self.room_jid] = True
|
||||||
self.msg_textview.set_sensitive(True)
|
self.msg_textview.set_sensitive(True)
|
||||||
|
|
|
@ -107,14 +107,6 @@ class MessageControl:
|
||||||
# NOTE: Derived classes MAY implement this
|
# NOTE: Derived classes MAY implement this
|
||||||
self.compact_view_current = state
|
self.compact_view_current = state
|
||||||
|
|
||||||
def save_var(self):
|
|
||||||
'''When called, the derived type should serialize it's state in the form of a
|
|
||||||
name/value (i.e. dict) result.
|
|
||||||
the return value must be compatible with wthe one given to load_var'''
|
|
||||||
pass # Derived classes SHOULD implement this
|
|
||||||
def load_var(self, var):
|
|
||||||
pass # Derived classes SHOULD implement this
|
|
||||||
|
|
||||||
def get_specific_unread(self):
|
def get_specific_unread(self):
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue