Commit 84b6cc89 authored by chrysn's avatar chrysn

Version 0.1.7.1

* Build even with no translations present
* Fix AttributeError when modes with same name have different resolutions
* Show the entire output submenu as disabled instead of the "Active" checkbox
parents d6a8f76a 846451d1
commit 846451d14cfde701277d6ec0d9ebce0600dcbab1
Author: chrysn <chrysn@fsfe.org>
Date: Mon Mar 4 18:15:55 2013 +0100
ready for release 0.1.7.1
commit 08e7739ec5b96dabcb055704bbf79954c83329d7
Merge: f7f44c7 e10ca80
Author: chrysn <chrysn@fsfe.org>
Date: Mon Mar 4 18:12:38 2013 +0100
some fixes for website/readme
commit f7f44c735321e6d09d452824eaaaf492dcf160b5
Author: chrysn <chrysn@fsfe.org>
Date: Mon Mar 4 17:57:07 2013 +0100
setup.py: be installable even without locales
the install_data step previously failed in absence of translations. the
build/locale directory is now built by build_trans unconditionally,
making everything work even without present translations.
the problem came up in gentoo, where translation files are deleted
selectively to only install what the user wants.
commit 2fa045379e3e9652701861a491a46806fcee52e1
Author: chrysn <chrysn@fsfe.org>
Date: Mon Mar 4 17:31:42 2013 +0100
fix unassigned variable error
manifests in "AttributeError: 'Size' object has no attribute '_size'"
when different modes with the same name have different screen sizes.
commit 8535870c4cda27e4d23dd4f0802006fb6ba7ef28
Author: chrysn <chrysn@fsfe.org>
Date: Fri Mar 1 13:47:14 2013 +0100
disable the output submenu instead of the checkbox
result of feedback from the OpenSUSE package maintainer Stefan Seyfried.
this makes it easier for graphics cards with many outputs to see which
one was just plugged in and can be activated.
commit 74e5fba2b2f2b7f303699ca2c20b7b1d9c9a230b
Author: chrysn <chrysn@fsfe.org>
Date: Thu Feb 28 19:12:46 2013 +0100
......
Version 0.1.7.1
* Build even with no translations present
* Fix AttributeError when modes with same name have different resolutions
* Show the entire output submenu as disabled instead of the "Active" checkbox
Version 0.1.7
* Fix the 'primary' issue
- ignores the primary keyword
......
......@@ -42,9 +42,11 @@ Installation
* Gentoo_::
ACCEPT_KEYWORDS="~x86" emerge arandr
emerge arandr
(or ``ACCEPT_KEYWORDS="~amd64" ...`` for 64-bit systems)
* Fedora_::
yum install arandr
* From source:
......@@ -52,9 +54,9 @@ Installation
* the `latest release`_::
wget http://christian.amsuess.com/tools/arandr/files/arandr-0.1.7.tar.gz
tar xzf arandr-0.1.7.tar.gz
cd arandr-0.1.7
wget http://christian.amsuess.com/tools/arandr/files/arandr-0.1.7.1.tar.gz
tar xzf arandr-0.1.7.1.tar.gz
cd arandr-0.1.7.1
* or get it directly from GIT (`hosted on gitorious`_)::
......@@ -161,7 +163,7 @@ Translations by
.. _XRandR: http://www.x.org/wiki/Projects/XRandR
.. _xsetwacom: http://linuxwacom.sourceforge.net/index.php/howto/xsetwacom
.. _TODO: ./TODO
.. _`latest release`: http://christian.amsuess.com/tools/arandr/files/arandr-0.1.7.tar.gz
.. _`latest release`: http://christian.amsuess.com/tools/arandr/files/arandr-0.1.7.1.tar.gz
.. _archlinux: http://www.archlinux.org/packages/community/any/arandr/
.. _chrysn: http://christian.amsuess.com
.. _GPLv3: http://www.gnu.org/licenses/gpl-3.0.txt
......@@ -171,11 +173,12 @@ Translations by
.. _Debian: http://packages.debian.org/arandr
.. _Ubuntu: http://packages.ubuntu.com/arandr
.. _gettext: http://www.gnu.org/software/gettext/
.. _`ARandR's page on hosted Weblate`: http://hosted.weblate.org/projects/arandr/master/
.. _`ARandR's page on hosted Weblate`: http://hosted.weblate.org/projects/arandr/translations/
.. _me: mailto:chrysn@fsfe.org
.. _python: http://www.python.org/
.. _PyGTK: http://www.pygtk.org/
.. _`slackbuild by PhantomX`: http://github.com/PhantomX/slackbuilds/tree/master/arandr/
.. _Gentoo: http://packages.gentoo.org/package/x11-misc/arandr
.. _Fedora: https://admin.fedoraproject.org/pkgdb/applications/Arandr
.. _docutils: http://docutils.sourceforge.net/
.. _`debian bug #507521`: http://bugs.debian.org/507521
......@@ -7,6 +7,7 @@ ARandR TODO list
* receive notifications on changes (XRRScreenChangeNotify)
* useful resources: <http://www.mail-archive.com/sawfish-list@gnome.org/msg03630.html> (a patch to sawfish for xrandr event support), Xrandr.c (that defines XRRSelectInput), SelInput.c (compare XSelectInput /XRRSelectInput), ./eventdemo.py
* use x-on-resize (http://keithp.com/blogs/x-on-resize/)
* don't reset displays moved over edges; instead, move as far as possible
* allow setting dpi
......
......@@ -19,7 +19,7 @@
import gettext
gettext.install('arandr')
__version__ = '0.1.7'
__version__ = '0.1.7.1'
PROGRAMNAME = _(u'ARandR Screen Layout Editor')
## translators, please translate in the style of "Another XRandR GUI
## (ein weiteres GUI für XRandR)" so users get both the explanation of
......
......@@ -287,9 +287,15 @@ class ARandRWidget(gtk.DrawingArea):
def contextmenu(self):
m = gtk.Menu()
for on in self._xrandr.outputs:
oc = self._xrandr.configuration.outputs[on]
os = self._xrandr.state.outputs[on]
i = gtk.MenuItem(on)
i.props.submenu = self._contextmenu(on)
m.add(i)
if not oc.active and not os.connected:
i.props.sensitive = False
m.show_all()
return m
......@@ -300,8 +306,6 @@ class ARandRWidget(gtk.DrawingArea):
enabled = gtk.CheckMenuItem(_("Active"))
enabled.props.active = oc.active
if not oc.active and not os.connected:
enabled.props.sensitive = False
enabled.connect('activate', lambda menuitem: self.set_active(on, menuitem.props.active))
m.add(enabled)
......
......@@ -174,7 +174,7 @@ class XRandR(object):
for old_mode in o.modes:
if old_mode.name == n:
if tuple(old_mode) != tuple(r):
warnings.warn("Supressing duplicate mode %s even though it has different resolutions (%s, %s)."%(n, r._size, s._size))
warnings.warn("Supressing duplicate mode %s even though it has different resolutions (%s, %s)."%(n, r, old_mode))
break
else:
# the mode is really new
......
......@@ -41,7 +41,7 @@ PO_DIR = 'data/po'
POT_FILE = os.path.join(PO_DIR, 'messages.pot')
PACKAGENAME = "arandr"
PACKAGEVERSION = "0.1.7"
PACKAGEVERSION = "0.1.7.1"
AUTHOR = "chrysn"
AUTHOR_MAIL = "chrysn@fsfe.org"
URL = "http://christian.amsuess.com/tools/arandr/"
......@@ -79,6 +79,7 @@ class build_trans(NoOptionCommand):
description = 'Compile .po files into .mo files'
def run(self):
self.mkpath(os.path.join("build", "locale")) # create directory even if there are no files, otherwise install would complain
for po in glob.glob(os.path.join(PO_DIR,'*.po')):
lang = os.path.basename(po[:-3])
mo = os.path.join('build', 'locale', lang, 'LC_MESSAGES', 'arandr.mo')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment