changeset 6c2112dbef99 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=6c2112dbef99
description: [mq]: Do_not_scroll_the_chat_if_you_started_typing_a_message

diffstat:

 src/chat_control.py |  6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diffs (25 lines):

diff -r 6ac29ff1c8f0 -r 6c2112dbef99 src/chat_control.py
--- a/src/chat_control.py       Wed Mar 30 15:23:10 2011 +0200
+++ b/src/chat_control.py       Wed Mar 30 21:59:06 2011 +0400
@@ -1231,20 +1231,16 @@
                 if message_height + conversation_height - min_height > 
min_height:
                     policy = self.msg_scrolledwindow.get_property(
                             'vscrollbar-policy')
-                    # scroll only when scrollbar appear
                     if policy != gtk.POLICY_AUTOMATIC:
                         
self.msg_scrolledwindow.set_property('vscrollbar-policy',
                                 gtk.POLICY_AUTOMATIC)
                         self.msg_scrolledwindow.set_property('height-request',
                                 message_height + conversation_height - 
min_height)
-                        self.bring_scroll_to_end(msg_textview)
             else:
                 self.msg_scrolledwindow.set_property('vscrollbar-policy',
                         gtk.POLICY_NEVER)
                 self.msg_scrolledwindow.set_property('height-request', -1)
-            self.conv_textview.bring_scroll_to_end(diff_y - 18, False)
-        else:
-            self.conv_textview.bring_scroll_to_end(diff_y - 18, self.smooth)
+
         self.smooth = True # reinit the flag
         # enable scrollbar automatic policy for horizontal scrollbar
         # if message we have in message_textview is too big
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to