texviews are no more in glade but our custom widgets
This commit is contained in:
parent
83267861c2
commit
68de2b3346
|
@ -547,10 +547,8 @@ class PreferencesWindow:
|
||||||
jids = windows.keys()
|
jids = windows.keys()
|
||||||
for jid in jids:
|
for jid in jids:
|
||||||
window = windows[jid]
|
window = windows[jid]
|
||||||
buf1[jid] = window.xmls[jid].get_widget('conversation_textview').\
|
buf1[jid] = window.conversation_textviews[jid].get_buffer()
|
||||||
get_buffer()
|
buf2[jid] = window.message_textviews[jid].get_buffer()
|
||||||
buf2[jid] = window.xmls[jid].get_widget('message_textview').\
|
|
||||||
get_buffer()
|
|
||||||
saved_var[jid] = window.save_var(jid)
|
saved_var[jid] = window.save_var(jid)
|
||||||
window.window.destroy()
|
window.window.destroy()
|
||||||
#open new tabbed chat windows
|
#open new tabbed chat windows
|
||||||
|
@ -561,10 +559,8 @@ class PreferencesWindow:
|
||||||
if kind == 'gc':
|
if kind == 'gc':
|
||||||
gajim.interface.roster.new_room(jid, saved_var[jid]['nick'], acct)
|
gajim.interface.roster.new_room(jid, saved_var[jid]['nick'], acct)
|
||||||
window = windows[jid]
|
window = windows[jid]
|
||||||
window.xmls[jid].get_widget('conversation_textview').set_buffer(
|
window.conversation_textviews[jid].set_buffer(buf1[jid])
|
||||||
buf1[jid])
|
window.message_textviews[jid].set_buffer(buf2[jid])
|
||||||
window.xmls[jid].get_widget('message_textview').set_buffer(
|
|
||||||
buf2[jid])
|
|
||||||
window.load_var(jid, saved_var[jid])
|
window.load_var(jid, saved_var[jid])
|
||||||
|
|
||||||
def split_windows(self, kind):
|
def split_windows(self, kind):
|
||||||
|
@ -580,10 +576,8 @@ class PreferencesWindow:
|
||||||
jids.remove('tabbed')
|
jids.remove('tabbed')
|
||||||
for jid in jids:
|
for jid in jids:
|
||||||
window = windows[jid]
|
window = windows[jid]
|
||||||
buf1[jid] = window.xmls[jid].get_widget('conversation_textview').\
|
buf1[jid] = window.conversation_textviews[jid].get_buffer()
|
||||||
get_buffer()
|
buf2[jid] = window.message_textviews[jid].get_buffer()
|
||||||
buf2[jid] = window.xmls[jid].get_widget('message_textview').\
|
|
||||||
get_buffer()
|
|
||||||
saved_var[jid] = window.save_var(jid)
|
saved_var[jid] = window.save_var(jid)
|
||||||
windows['tabbed'].window.destroy()
|
windows['tabbed'].window.destroy()
|
||||||
#open new tabbed chat windows
|
#open new tabbed chat windows
|
||||||
|
@ -594,10 +588,8 @@ class PreferencesWindow:
|
||||||
if kind == 'gc':
|
if kind == 'gc':
|
||||||
gajim.interface.roster.new_room(jid, saved_var[jid]['nick'], acct)
|
gajim.interface.roster.new_room(jid, saved_var[jid]['nick'], acct)
|
||||||
window = windows[jid]
|
window = windows[jid]
|
||||||
window.xmls[jid].get_widget('conversation_textview').set_buffer(
|
window.conversation_textviews[jid].set_buffer(buf1[jid])
|
||||||
buf1[jid])
|
window.message_textviews[jid].set_buffer(buf2[jid])
|
||||||
window.xmls[jid].get_widget('message_textview').set_buffer(
|
|
||||||
buf2[jid])
|
|
||||||
window.load_var(jid, saved_var[jid])
|
window.load_var(jid, saved_var[jid])
|
||||||
|
|
||||||
def on_use_tabbed_chat_window_checkbutton_toggled(self, widget):
|
def on_use_tabbed_chat_window_checkbutton_toggled(self, widget):
|
||||||
|
@ -619,7 +611,7 @@ class PreferencesWindow:
|
||||||
if jid == 'tabbed':
|
if jid == 'tabbed':
|
||||||
continue
|
continue
|
||||||
window = windows[jid]
|
window = windows[jid]
|
||||||
textview = window.xmls[jid].get_widget('message_textview')
|
textview = window.message_textviews[jid]
|
||||||
gtkspell.Spell(textview)
|
gtkspell.Spell(textview)
|
||||||
|
|
||||||
def remove_speller(self, kind):
|
def remove_speller(self, kind):
|
||||||
|
@ -630,7 +622,7 @@ class PreferencesWindow:
|
||||||
if jid == 'tabbed':
|
if jid == 'tabbed':
|
||||||
continue
|
continue
|
||||||
window = windows[jid]
|
window = windows[jid]
|
||||||
textview = window.xmls[jid].get_widget('message_textview')
|
textview = window.message_textviews[jid]
|
||||||
spell_obj = gtkspell.get_from_text_view(textview)
|
spell_obj = gtkspell.get_from_text_view(textview)
|
||||||
if spell_obj:
|
if spell_obj:
|
||||||
spell_obj.detach()
|
spell_obj.detach()
|
||||||
|
|
Loading…
Reference in New Issue