prevent window resizing by including the textview in a scrolled window
authorThomasV <thomasv@gitorious>
Fri, 16 Nov 2012 18:18:14 +0000 (19:18 +0100)
committerThomasV <thomasv@gitorious>
Fri, 16 Nov 2012 18:18:14 +0000 (19:18 +0100)
lib/gui.py

index 6ca8f52..9fbcee9 100644 (file)
@@ -841,7 +841,9 @@ class ElectrumWindow:
         tv.set_editable(False)
         tv.set_cursor_visible(False)
         tv.modify_font(pango.FontDescription(MONOSPACE_FONT))
-        page.pack_start(tv)
+        scroll = gtk.ScrolledWindow()
+        scroll.add(tv)
+        page.pack_start(scroll)
         self.info = tv.get_buffer()
         self.add_tab(page, 'Wall')