show subscription in info_user window

This commit is contained in:
Yann Leboulanger 2004-02-17 19:16:55 +00:00
parent 3adcd36e5f
commit b553f44952
2 changed files with 50 additions and 1 deletions

View File

@ -3713,7 +3713,7 @@ when NOT onlie</property>
<child>
<widget class="GtkTable" id="table4">
<property name="visible">True</property>
<property name="n_rows">4</property>
<property name="n_rows">5</property>
<property name="n_columns">2</property>
<property name="homogeneous">False</property>
<property name="row_spacing">0</property>
@ -3907,6 +3907,54 @@ when NOT onlie</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="label66">
<property name="visible">True</property>
<property name="label" translatable="yes">Subscription :</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">5</property>
<property name="ypad">5</property>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="right_attach">1</property>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="label_sub">
<property name="visible">True</property>
<property name="label" translatable="yes">sub</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">5</property>
<property name="ypad">5</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
</widget>
<packing>
<property name="tab_expand">False</property>

View File

@ -155,6 +155,7 @@ class infoUser_Window:
xml.get_widget('label_name').set_text(user.name)
xml.get_widget('label_id').set_text(user.jid)
xml.get_widget('label_resource').set_text(user.resource)
xml.get_widget('label_sub').set_text(user.sub)
self.entry_name = xml.get_widget('entry_name')
self.entry_name.set_text(user.name)
if not user.status: