Commit b5fabea5 authored by Philipp Hörist's avatar Philipp Hörist

Merge branch 'allow-smaller-preferences-window' into 'gajim_0.16'

Allow preferences window to shrink

See merge request !81
parents 755b9bed 36b147df
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -115,6 +115,19 @@ class PreferencesWindow:
'auto_xa_time_spinbutton')
self.auto_xa_message_entry = self.xml.get_object('auto_xa_message_entry')
### Default Window Size ###
tallest = 0
for n in range(0, self.notebook.get_n_pages()):
page = self.notebook.get_nth_page(n)
content = page.get_children()[0].get_children()[0]
width, height = content.size_request()
if height > tallest:
tallest = height
wwidth, wheight = self.window.get_size()
tallest += wheight
self.window.set_default_size(-1, min(gtk.gdk.screen_height(), tallest))
### General tab ###
# Display avatars in roster
st = gajim.config.get('show_avatars_in_roster')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment