Ticket #4397: 0004-ViewSource-add-gear-icon-on-the-left-of-the-toolbar-.patch

File 0004-ViewSource-add-gear-icon-on-the-left-of-the-toolbar-.patch, 1.3 KB (added by manuq, 10 years ago)
  • src/jarabe/view/viewsource.py

    From 2c891a4f6b544ae0618e40a9b7054e5c59011dbb Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
    Date: Thu, 14 Feb 2013 14:40:41 -0300
    Subject: [PATCH 4/4] ViewSource: add gear icon on the left of the toolbar, to
     identify the view - SL 4397
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
    
    It has a tooltip "View Source", which is a reused string.
    
    Signed-off-by: Manuel Quiñones <manuq@laptop.org>
    ---
     src/jarabe/view/viewsource.py | 5 ++++-
     1 file changed, 4 insertions(+), 1 deletion(-)
    
    diff --git a/src/jarabe/view/viewsource.py b/src/jarabe/view/viewsource.py
    index 124a055..aff277e 100644
    a b class Toolbar(Gtk.Toolbar): 
    354354    def __init__(self, title, bundle_path, document_path, sugar_toolkit_path):
    355355        Gtk.Toolbar.__init__(self)
    356356
     357        view_source_button = ToolButton(icon_name='view-source')
     358        view_source_button.set_tooltip(_('View Source'))
     359        self._add_widget(view_source_button)
     360
    357361        separator = Gtk.SeparatorToolItem()
    358         separator.props.draw = False
    359362        self.insert(separator, -1)
    360363        separator.show()
    361364