show the account name when we receive a subscription request
This commit is contained in:
parent
a19e89fbfb
commit
ef1771c479
2 changed files with 7 additions and 8 deletions
|
@ -462,12 +462,11 @@ class HigDialog(Dialog):
|
||||||
return response
|
return response
|
||||||
|
|
||||||
class ConfirmationDialog(HigDialog):
|
class ConfirmationDialog(HigDialog):
|
||||||
def __init__(self, pritext, sectext=''):
|
|
||||||
"""HIG compliant confirmation dialog."""
|
"""HIG compliant confirmation dialog."""
|
||||||
HigDialog.__init__(
|
def __init__(self, pritext, sectext=''):
|
||||||
self, None, pritext, sectext, gtk.STOCK_DIALOG_WARNING,
|
HigDialog.__init__(self, None, pritext, sectext,
|
||||||
[ [gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL], [ gtk.STOCK_OK, gtk.RESPONSE_OK ] ]
|
gtk.STOCK_DIALOG_WARNING, [ [gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL],
|
||||||
)
|
[ gtk.STOCK_OK, gtk.RESPONSE_OK ] ])
|
||||||
|
|
||||||
class WarningDialog(HigDialog):
|
class WarningDialog(HigDialog):
|
||||||
def __init__(self, pritext, sectext=''):
|
def __init__(self, pritext, sectext=''):
|
||||||
|
@ -515,7 +514,7 @@ class Subscription_request_window:
|
||||||
self.jid = jid
|
self.jid = jid
|
||||||
self.account = account
|
self.account = account
|
||||||
xml.get_widget('from_label').set_text(
|
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.get_widget('message_textview').get_buffer().set_text(text)
|
||||||
xml.signal_autoconnect(self)
|
xml.signal_autoconnect(self)
|
||||||
self.window.show_all()
|
self.window.show_all()
|
||||||
|
|
|
@ -1963,7 +1963,7 @@
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkLabel" id="from_label">
|
<widget class="GtkLabel" id="from_label">
|
||||||
<property name="visible">True</property>
|
<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_underline">False</property>
|
||||||
<property name="use_markup">False</property>
|
<property name="use_markup">False</property>
|
||||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||||
|
|
Loading…
Add table
Reference in a new issue