fixing a fix
This commit is contained in:
parent
c3b94f76ca
commit
89337ea5bc
|
@ -245,10 +245,6 @@ class ChangeStatusMessageDialog:
|
||||||
class AddNewContactWindow:
|
class AddNewContactWindow:
|
||||||
'''Class for AddNewContactWindow'''
|
'''Class for AddNewContactWindow'''
|
||||||
def __init__(self, plugin, account, jid = None):
|
def __init__(self, plugin, account, jid = None):
|
||||||
if gajim.connections[account].connected < 2:
|
|
||||||
ErrorDialog(_('You are not connected to the server.'), \
|
|
||||||
_('Without a connection, you can not add a contact')).get_response()
|
|
||||||
return
|
|
||||||
self.plugin = plugin
|
self.plugin = plugin
|
||||||
self.account = account
|
self.account = account
|
||||||
self.xml = gtk.glade.XML(GTKGUI_GLADE, 'add_new_contact_window', APP)
|
self.xml = gtk.glade.XML(GTKGUI_GLADE, 'add_new_contact_window', APP)
|
||||||
|
@ -257,9 +253,14 @@ class AddNewContactWindow:
|
||||||
self.protocol_combobox = self.xml.get_widget('protocol_combobox')
|
self.protocol_combobox = self.xml.get_widget('protocol_combobox')
|
||||||
self.jid_entry = self.xml.get_widget('jid_entry')
|
self.jid_entry = self.xml.get_widget('jid_entry')
|
||||||
self.nickname_entry = self.xml.get_widget('nickname_entry')
|
self.nickname_entry = self.xml.get_widget('nickname_entry')
|
||||||
self.xml.get_widget('title_label').set_text('Fill in the data for the contact you want to add in contact ' + account)
|
if len(gajim.connections) >= 2:
|
||||||
|
prompt_text =\
|
||||||
|
_('Please fill in the data of the contact you want to add in account %s') %account
|
||||||
|
else:
|
||||||
|
prompt_text = _('Please fill in the data of the contact you want to add')
|
||||||
|
self.xml.get_widget('prompt_label').set_text(prompt_text)
|
||||||
self.old_uid_value = ''
|
self.old_uid_value = ''
|
||||||
liststore = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_STRING)
|
liststore = gtk.ListStore(str, str)
|
||||||
liststore.append(['Jabber', ''])
|
liststore.append(['Jabber', ''])
|
||||||
self.agents = ['Jabber']
|
self.agents = ['Jabber']
|
||||||
jid_agents = []
|
jid_agents = []
|
||||||
|
|
|
@ -1644,7 +1644,7 @@
|
||||||
<property name="spacing">6</property>
|
<property name="spacing">6</property>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkLabel" id="title_label">
|
<widget class="GtkLabel" id="prompt_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label" translatable="yes"></property>
|
<property name="label" translatable="yes"></property>
|
||||||
<property name="use_underline">False</property>
|
<property name="use_underline">False</property>
|
||||||
|
|
Loading…
Reference in New Issue