diff options
author | Aneesh Dogra <lionaneesh@gmail.com> | 2012-12-13 19:23:07 (GMT) |
---|---|---|
committer | Aneesh Dogra <lionaneesh@gmail.com> | 2012-12-13 19:24:34 (GMT) |
commit | 3c9df9fa37a6fc6241cdb1127806a2e0ec015ef8 (patch) | |
tree | 4672868840a6b55c4756838389c4c822f2b32b90 | |
parent | f240dff283d05a86f12b8b36b7c429a8267f8ee3 (diff) |
Add scrollbar to the conversation box.
-rw-r--r-- | MiniChat_gtk3/minichat.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/MiniChat_gtk3/minichat.py b/MiniChat_gtk3/minichat.py index 2614438..c77b9bf 100644 --- a/MiniChat_gtk3/minichat.py +++ b/MiniChat_gtk3/minichat.py @@ -49,7 +49,8 @@ class MiniChat(Activity): toolbox.show() self.scroller = Gtk.ScrolledWindow() - self.scroller.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC) + self.scroller.set_policy(Gtk.PolicyType.NEVER, + Gtk.PolicyType.AUTOMATIC) root = self.make_root() self.set_canvas(root) @@ -168,7 +169,8 @@ class MiniChat(Activity): self.conversation = Gtk.VBox() self.conversation.show_all() - vbox.pack_start(self.conversation, False, False, 0) + self.scroller.add_with_viewport(self.conversation) + vbox.pack_start(self.scroller, False, False, 0) self.entry = Gtk.Entry() self.entry.modify_bg(Gtk.StateType.INSENSITIVE, |