Fixed glade file for Roster Item Exchange. Button have fixed sized and are aligned right. Instead of 'OK' label, currently proper text for each action is displayed ('Add', 'Modify', 'Delete')
This commit is contained in:
parent
94bef05710
commit
56fe27be26
|
@ -36,7 +36,7 @@
|
|||
<property name="editable">False</property>
|
||||
<property name="justification">center</property>
|
||||
<property name="cursor_visible">False</property>
|
||||
<property name="text" translatable="yes">Message Body</property>
|
||||
<property name="text" translatable="yes">Message Body <currently unused, so it's hidden by default></property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
|
@ -63,9 +63,10 @@
|
|||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkHBox" id="hbox1">
|
||||
<widget class="GtkHButtonBox" id="hbuttonbox1">
|
||||
<property name="visible">True</property>
|
||||
<property name="spacing">3</property>
|
||||
<property name="spacing">12</property>
|
||||
<property name="layout_style">end</property>
|
||||
<child>
|
||||
<widget class="GtkButton" id="cancel_button">
|
||||
<property name="label" translatable="yes">gtk-cancel</property>
|
||||
|
|
|
@ -2714,6 +2714,10 @@ class RosterItemExchangeWindow:
|
|||
if not is_in_roster:
|
||||
iter = model.append()
|
||||
model.set(iter, 0, True, 1, jid, 2, name, 3, groups)
|
||||
|
||||
# Change label for accept_button to action name instead of 'OK'.
|
||||
accept_button_label = self.accept_button.get_children()[0].get_children()[0].get_children()[1]
|
||||
accept_button_label.set_label(_('Add'))
|
||||
elif action == 'modify':
|
||||
for jid in self.exchange_list:
|
||||
groups = ''
|
||||
|
@ -2741,6 +2745,10 @@ class RosterItemExchangeWindow:
|
|||
if not is_right and is_in_roster:
|
||||
iter = model.append()
|
||||
model.set(iter, 0, True, 1, jid, 2, name, 3, groups)
|
||||
|
||||
# Change label for accept_button to action name instead of 'OK'.
|
||||
accept_button_label = self.accept_button.get_children()[0].get_children()[0].get_children()[1]
|
||||
accept_button_label.set_label(_('Modify'))
|
||||
elif action == 'delete':
|
||||
for jid in self.exchange_list:
|
||||
groups = ''
|
||||
|
@ -2760,7 +2768,13 @@ class RosterItemExchangeWindow:
|
|||
groups = groups + group + ', '
|
||||
if not is_right and is_in_roster:
|
||||
iter = model.append()
|
||||
model.set(iter, 0, True, 1, jid, 2, name, 3, groups)
|
||||
model.set(iter, 0, True, 1, jid, 2, name, 3, groups)
|
||||
|
||||
# Change label for accept_button to action name instead of 'OK'.
|
||||
accept_button_label = self.accept_button.get_children()[0].get_children()[0].get_children()[1]
|
||||
accept_button_label.set_label(_('Delete'))
|
||||
|
||||
|
||||
|
||||
self.window.show_all()
|
||||
|
||||
|
|
Loading…
Reference in New Issue