show the account name when we receive a subscription request

This commit is contained in:
Yann Leboulanger 2005-06-12 16:56:26 +00:00
parent a19e89fbfb
commit ef1771c479
2 changed files with 7 additions and 8 deletions

View File

@ -462,12 +462,11 @@ class HigDialog(Dialog):
return response
class ConfirmationDialog(HigDialog):
def __init__(self, pritext, sectext=''):
"""HIG compliant confirmation dialog."""
HigDialog.__init__(
self, None, pritext, sectext, gtk.STOCK_DIALOG_WARNING,
[ [gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL], [ gtk.STOCK_OK, gtk.RESPONSE_OK ] ]
)
"""HIG compliant confirmation dialog."""
def __init__(self, pritext, sectext=''):
HigDialog.__init__(self, None, pritext, sectext,
gtk.STOCK_DIALOG_WARNING, [ [gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL],
[ gtk.STOCK_OK, gtk.RESPONSE_OK ] ])
class WarningDialog(HigDialog):
def __init__(self, pritext, sectext=''):
@ -515,7 +514,7 @@ class Subscription_request_window:
self.jid = jid
self.account = account
xml.get_widget('from_label').set_text(
_('Subscription request from %s') % self.jid)
_('Subscription request for account %s from %s') % (account, self.jid))
xml.get_widget('message_textview').get_buffer().set_text(text)
xml.signal_autoconnect(self)
self.window.show_all()

View File

@ -1963,7 +1963,7 @@
<child>
<widget class="GtkLabel" id="from_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Subscription request from</property>
<property name="label" translatable="yes"></property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>