Ticket #1232: 0001-Make-UI-visually-consistent-with-the-other-CPSection.patch

File 0001-Make-UI-visually-consistent-with-the-other-CPSection.patch, 1.6 KB (added by sayamindu, 15 years ago)

Patch

  • extensions/cpsection/language/view.py

    From 51be9474f316cc0e01c37951f04b0424d6576d89 Mon Sep 17 00:00:00 2001
    From: Sayamindu Dasgupta <sayamindu@gmail.com>
    Date: Tue, 25 Aug 2009 02:58:04 +0530
    Subject: [PATCH] Make UI visually consistent with the other CPSections
    
    ---
     extensions/cpsection/language/view.py |    4 ++++
     1 files changed, 4 insertions(+), 0 deletions(-)
    
    diff --git a/extensions/cpsection/language/view.py b/extensions/cpsection/language/view.py
    index a896aa5..4489b15 100644
    a b class Language(SectionView): 
    5757                                          " If a translation is not available,"\
    5858                                          " the next in the list will be used.")
    5959        self._text = gtk.Label(explanation)
     60        self._text.set_width_chars(100)
    6061        self._text.set_line_wrap(True)
    6162        self._text.set_alignment(0, 0)
    6263        self.pack_start(self._text, False)
    6364        self._text.show()
    6465
    6566        self._table = gtk.Table(rows=1, columns=3, homogeneous=False)
     67        self._table.set_border_width(style.DEFAULT_SPACING * 2)       
    6668        self.pack_start(self._table, False)
    6769        self._table.show()
    6870
    class Language(SectionView): 
    8688        self._table.resize(self._selected_lang_count, 3)
    8789
    8890        label = gtk.Label(str=str(self._selected_lang_count))
     91        label.modify_fg(gtk.STATE_NORMAL,
     92            style.COLOR_SELECTION_GREY.get_gdk_color())
    8993        self._labels.append(label)
    9094        self._attach_to_table(label, 0, 1, padding=1)
    9195        label.show()