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

File 0001-Borders-in-the-Bookmark-Description-entry-SL-3561.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 b7d25fd19c086096da19b37bc37b8799a1efac08 Mon Sep 17 00:00:00 2001
    Message-Id: <b7d25fd19c086096da19b37bc37b8799a1efac08.1338478676.git.humitos@gmail.com>
    From: Manuel Kaufmann <humitos@gmail.com>
    Date: Thu, 31 May 2012 12:32:34 -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 |    4 +++-
     1 file changed, 3 insertions(+), 1 deletion(-)
    
    diff --git a/readdialog.py b/readdialog.py
    index e4081ef..0268c89 100644
    a b class BookmarkDialog(BaseReadDialog): 
    154154
    155155        self._content_entry = Gtk.TextView()
    156156        self._content_entry.set_wrap_mode(Gtk.WrapMode.WORD)
    157 
     157        for side in (Gtk.TextWindowType.BOTTOM, Gtk.TextWindowType.TOP,
     158                     Gtk.TextWindowType.LEFT, Gtk.TextWindowType.RIGTH):
     159            self._content_entry.set_border_window_size(side, 2)
    158160        sw.add(self._content_entry)
    159161        sw.set_shadow_type(Gtk.ShadowType.ETCHED_IN)
    160162