changeset c190d442ea41 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=c190d442ea41 description: show MUC configuration form title in the MUC config window. Fixes #5886
diffstat:
data/gui/data_form_window.ui | 6 +++--- src/config.py | 12 ++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-)
diffs (55 lines):
diff -r f09377c97f04 -r c190d442ea41 data/gui/data_form_window.ui --- a/data/gui/data_form_window.ui Fri Sep 03 11:29:15 2010 +0200 +++ b/data/gui/data_form_window.ui Wed Sep 08 08:56:06 2010 +0200 @@ -34,7 +34,7 @@ <property name="orientation">vertical</property> <property name="spacing">5</property> <child> - <object class="GtkLabel" id="instructions_label"> + <object class="GtkLabel" id="title_label"> <property name="visible">True</property> <property name="xalign">0</property> <property name="wrap">True</property> @@ -47,7 +47,7 @@ </packing> </child> <child> - <object class="GtkHSeparator" id="hseparator15"> + <object class="GtkHSeparator" id="title_hseparator"> <property name="visible">True</property> </object> <packing> @@ -65,7 +65,7 @@ </packing> </child> <child> - <object class="GtkHSeparator" id="hseparator14"> + <object class="GtkHSeparator" id="config_hseparator"> <property name="visible">True</property> </object> <packing> diff -r f09377c97f04 -r c190d442ea41 src/config.py --- a/src/config.py Fri Sep 03 11:29:15 2010 +0200 +++ b/src/config.py Wed Sep 08 08:56:06 2010 +0200 @@ -2740,9 +2740,21 @@ # widget sw = self.data_form_widget.xml.get_object('single_form_scrolledwindow') sw.set_policy(gtk.POLICY_NEVER, gtk.POLICY_NEVER) + if self.form.title: + self.xml.get_object('title_label').set_text(self.form.title) + else: + self.xml.get_object('title_hseparator').set_no_show_all(True) +# self.xml.get_object('title_hseparator').hide()
self.data_form_widget.show() config_vbox.pack_start(self.data_form_widget) + else: + self.xml.get_object('title_label').set_no_show_all(True) + self.xml.get_object('title_label').hide() + self.xml.get_object('title_hseparator').set_no_show_all(True) + self.xml.get_object('title_hseparator').hide() + self.xml.get_object('config_hseparator').set_no_show_all(True) + self.xml.get_object('config_hseparator').hide()
# Draw the edit affiliation list things add_on_vbox = self.xml.get_object('add_on_vbox')