Removed set_transient_for(roster) for windows/dialogs that can be launched from

message windows (i.e., the window appears on the roster desktop rather than the current
desktop).  There may be some more places where this may be wanted, but this hits the
major ones.
This commit is contained in:
Travis Shirk 2006-08-30 03:25:28 +00:00
parent 13a50ad633
commit 6fe8efff64
2 changed files with 2 additions and 7 deletions

View File

@ -249,7 +249,6 @@ class ChooseGPGKeyDialog:
#list : {keyID: userName, ...} #list : {keyID: userName, ...}
xml = gtkgui_helpers.get_glade('choose_gpg_key_dialog.glade') xml = gtkgui_helpers.get_glade('choose_gpg_key_dialog.glade')
self.window = xml.get_widget('choose_gpg_key_dialog') self.window = xml.get_widget('choose_gpg_key_dialog')
self.window.set_transient_for(gajim.interface.roster.window)
self.window.set_title(title_text) self.window.set_title(title_text)
self.keys_treeview = xml.get_widget('keys_treeview') self.keys_treeview = xml.get_widget('keys_treeview')
prompt_label = xml.get_widget('prompt_label') prompt_label = xml.get_widget('prompt_label')
@ -426,7 +425,6 @@ class AddNewContactWindow:
location['add_contact'] = self location['add_contact'] = self
self.xml = gtkgui_helpers.get_glade('add_new_contact_window.glade') self.xml = gtkgui_helpers.get_glade('add_new_contact_window.glade')
self.window = self.xml.get_widget('add_new_contact_window') self.window = self.xml.get_widget('add_new_contact_window')
self.window.set_transient_for(gajim.interface.roster.window)
for w in ('account_combobox', 'account_hbox', 'account_label', for w in ('account_combobox', 'account_hbox', 'account_label',
'uid_label', 'uid_entry', 'protocol_combobox', 'protocol_jid_combobox', 'uid_label', 'uid_entry', 'protocol_combobox', 'protocol_jid_combobox',
'protocol_hbox', 'nickname_entry', 'message_scrolledwindow', 'protocol_hbox', 'nickname_entry', 'message_scrolledwindow',
@ -692,7 +690,7 @@ class AboutDialog:
% (_('A GTK+ jabber client'), \ % (_('A GTK+ jabber client'), \
_('GTK+ Version:'), self.tuple2str(gtk.gtk_version), \ _('GTK+ Version:'), self.tuple2str(gtk.gtk_version), \
_('PyGTK Version:'), self.tuple2str(gtk.pygtk_version))) _('PyGTK Version:'), self.tuple2str(gtk.pygtk_version)))
dlg.set_website('http://www.gajim.org') dlg.set_website('http://www.gajim.org/')
authors = [] authors = []
authors_file = open('../AUTHORS').read() authors_file = open('../AUTHORS').read()
@ -701,7 +699,7 @@ class AboutDialog:
if author == 'CURRENT DEVELOPERS:': if author == 'CURRENT DEVELOPERS:':
authors.append(_('Current Developers:')) authors.append(_('Current Developers:'))
elif author == 'PAST DEVELOPERS:': elif author == 'PAST DEVELOPERS:':
authors.append('\n' +_('Past Developers:')) authors.append('\n' + _('Past Developers:'))
elif author != '': # Real author line elif author != '': # Real author line
authors.append(author) authors.append(author)
@ -990,7 +988,6 @@ class SubscriptionRequestWindow:
def __init__(self, jid, text, account, user_nick = None): def __init__(self, jid, text, account, user_nick = None):
xml = gtkgui_helpers.get_glade('subscription_request_window.glade') xml = gtkgui_helpers.get_glade('subscription_request_window.glade')
self.window = xml.get_widget('subscription_request_window') self.window = xml.get_widget('subscription_request_window')
self.window.set_transient_for(gajim.interface.roster.window)
self.jid = jid self.jid = jid
self.account = account self.account = account
self.user_nick = user_nick self.user_nick = user_nick
@ -1057,7 +1054,6 @@ _('You can not join a group chat unless you are connected.'))
self.xml = gtkgui_helpers.get_glade('join_groupchat_window.glade') self.xml = gtkgui_helpers.get_glade('join_groupchat_window.glade')
self.window = self.xml.get_widget('join_groupchat_window') self.window = self.xml.get_widget('join_groupchat_window')
self.window.set_transient_for(gajim.interface.roster.window)
self.xml.get_widget('server_entry').set_text(server) self.xml.get_widget('server_entry').set_text(server)
self.xml.get_widget('room_entry').set_text(room) self.xml.get_widget('room_entry').set_text(room)
self.xml.get_widget('nickname_entry').set_text(nick) self.xml.get_widget('nickname_entry').set_text(nick)

View File

@ -61,7 +61,6 @@ class VcardWindow:
# the contact variable is the jid if vcard is true # the contact variable is the jid if vcard is true
self.xml = gtkgui_helpers.get_glade('vcard_information_window.glade') self.xml = gtkgui_helpers.get_glade('vcard_information_window.glade')
self.window = self.xml.get_widget('vcard_information_window') self.window = self.xml.get_widget('vcard_information_window')
self.window.set_transient_for(gajim.interface.roster.window)
self.publish_button = self.xml.get_widget('publish_button') self.publish_button = self.xml.get_widget('publish_button')
self.retrieve_button = self.xml.get_widget('retrieve_button') self.retrieve_button = self.xml.get_widget('retrieve_button')