From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A4A0A1381F3 for ; Wed, 25 Sep 2013 15:51:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 97213E0D92; Wed, 25 Sep 2013 15:51:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0A93AE0D8F for ; Wed, 25 Sep 2013 15:51:11 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F1BD133EBD1 for ; Wed, 25 Sep 2013 15:51:10 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 2264) id 8F2B22004E; Wed, 25 Sep 2013 15:51:09 +0000 (UTC) From: "Justin Lecher (jlec)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, jlec@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in x11-terms/terminator/files: terminator-0.97-brightness.patch X-VCS-Repository: gentoo-x86 X-VCS-Files: terminator-0.97-brightness.patch X-VCS-Directories: x11-terms/terminator/files X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Message-Id: <20130925155109.8F2B22004E@flycatcher.gentoo.org> Date: Wed, 25 Sep 2013 15:51:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: efbee6b5-ac4d-4cf8-836e-e3a4ed851f01 X-Archives-Hash: 3f1ef73731cfc5674bf7bf7cac418d53 jlec 13/09/25 15:51:09 Added: terminator-0.97-brightness.patch Log: x11-terms/terminator: Backport patch for brightness setting problems, #485750 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!) Revision Changes Path 1.1 x11-terms/terminator/files/terminator-0.97-brightness.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-terms/terminator/files/terminator-0.97-brightness.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-terms/terminator/files/terminator-0.97-brightness.patch?rev=1.1&content-type=text/plain Index: terminator-0.97-brightness.patch =================================================================== === modified file 'terminatorlib/prefseditor.py' --- terminatorlib/prefseditor.py 2013-02-16 00:10:45 +0000 +++ terminatorlib/prefseditor.py 2013-05-11 22:03:46 +0000 @@ -923,6 +923,8 @@ def on_inactive_color_offset_change_value(self, widget, scroll, value): """Inactive color offset setting changed""" + if value > 1.0: + value = 1.0 self.config['inactive_color_offset'] = round(value, 2) self.config.save() === modified file 'terminatorlib/terminal.py' --- terminatorlib/terminal.py 2013-02-15 15:10:55 +0000 +++ terminatorlib/terminal.py 2013-05-11 22:03:46 +0000 @@ -621,11 +621,17 @@ factor = self.config['inactive_color_offset'] self.fgcolor_inactive = self.fgcolor_active.copy() + dbg(("fgcolor_inactive set to: RGB(%s,%s,%s)", getattr(self.fgcolor_inactive, "red"), + getattr(self.fgcolor_inactive, "green"), + getattr(self.fgcolor_inactive, "blue"))) for bit in ['red', 'green', 'blue']: setattr(self.fgcolor_inactive, bit, getattr(self.fgcolor_inactive, bit) * factor) + dbg(("fgcolor_inactive set to: RGB(%s,%s,%s)", getattr(self.fgcolor_inactive, "red"), + getattr(self.fgcolor_inactive, "green"), + getattr(self.fgcolor_inactive, "blue"))) colors = self.config['palette'].split(':') self.palette_active = [] self.palette_inactive = []