Ticket #3561: 0001-Borders-in-the-Bookmark-Description-entry-SL-3561.2.patch

File 0001-Borders-in-the-Bookmark-Description-entry-SL-3561.2.patch, 1.2 KB (added by humitos, 12 years ago)

This is the correct patch - using the enumerates provided by Gtk (thanks manuq)

  • readdialog.py

    From d855316e0f97710f576aaba1d7aeaef7131efdad Mon Sep 17 00:00:00 2001
    Message-Id: <d855316e0f97710f576aaba1d7aeaef7131efdad.1338479051.git.humitos@gmail.com>
    From: Manuel Kaufmann <humitos@gmail.com>
    Date: Thu, 31 May 2012 12:43:26 -0300
    Subject: [PATCH Read] Borders in the Bookmark Description entry SL #3561
    
    Show 2 pixels borders in the TextView entry that is shown when the user click
    to add or
    edit a bookmark.
    
    These borders are not rounded as the Title Entry.
    
    Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
    ---
     readdialog.py |    3 +++
     1 file changed, 3 insertions(+)
    
    diff --git a/readdialog.py b/readdialog.py
    index e4081ef..4217a03 100644
    a b class BookmarkDialog(BaseReadDialog): 
    154154
    155155        self._content_entry = Gtk.TextView()
    156156        self._content_entry.set_wrap_mode(Gtk.WrapMode.WORD)
     157        for side in (Gtk.TextWindowType.BOTTOM, Gtk.TextWindowType.TOP,
     158                     Gtk.TextWindowType.LEFT, Gtk.TextWindowType.RIGHT):
     159            self._content_entry.set_border_window_size(side, 2)
    157160
    158161        sw.add(self._content_entry)
    159162        sw.set_shadow_type(Gtk.ShadowType.ETCHED_IN)