Ticket #3941: 0004-Journal-details-view-fix-textviews-can-resize-outsid.patch

File 0004-Journal-details-view-fix-textviews-can-resize-outsid.patch, 1.5 KB (added by manuq, 11 years ago)

Patch.

  • src/jarabe/journal/expandedentry.py

    From ff01dd6fd3449ca982ec07a4eb21300ad72dfe7f Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
    Date: Thu, 15 Nov 2012 17:39:25 -0300
    Subject: [PATCH toolkit 4/4] Journal details view: fix textviews can resize
     outside the window - SL #3941
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
    
    There is an inconsistent behaviour when a TextView with wrap mode
    WORD_CHAR is inside a ScrolledWindow with horizontal policy NEVER.  Is
    now reported upstream [1] with a testcase.  The solution is set the
    horizontal policy to AUTOMATIC.
    
    [1] https://bugzilla.gnome.org/show_bug.cgi?id=688472
    
    Signed-off-by: Manuel Quiñones <manuq@laptop.org>
    ---
     src/jarabe/journal/expandedentry.py | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/jarabe/journal/expandedentry.py b/src/jarabe/journal/expandedentry.py
    index b8c340a..8a52bdc 100644
    a b class ExpandedEntry(Gtk.EventBox): 
    330330        vbox.pack_start(halign, False, False, 0)
    331331
    332332        scrolled_window = Gtk.ScrolledWindow()
    333         scrolled_window.set_policy(Gtk.PolicyType.NEVER,
     333        scrolled_window.set_policy(Gtk.PolicyType.AUTOMATIC,
    334334                                   Gtk.PolicyType.AUTOMATIC)
    335335        scrolled_window.set_shadow_type(Gtk.ShadowType.ETCHED_IN)
    336336        text_buffer = Gtk.TextBuffer()