Permalink
Browse files

work around Gtk.Arrow() bug (present in gedit 3.2.6 for Mac)

  • Loading branch information...
1 parent 3d235a0 commit 8709caee91f7e13a90743e32bb946f86394b8b49 @jefferyto committed Oct 25, 2012
Showing with 13 additions and 5 deletions.
  1. +3 −0 Changelog
  2. +4 −3 README.md
  3. +1 −1 newline-madness.plugin
  4. +5 −1 newline-madness/statuscombobox.py
View
@@ -1,3 +1,6 @@
+v0.3.1: (2012-10-25):
+* Bug fix: Gtk.Arrow() can't decide if it takes 2 arguments or 0
+
v0.3.0: (2012-10-25):
* Current newline type highlighted in Edit submenu
* New selector in statusbar
View
@@ -2,7 +2,7 @@
Change newline type for the current document
<https://github.com/jefferyto/gedit-newline-madness>
-v0.3.0
+v0.3.1
All bug reports, feature requests and miscellaneous comments are
welcome at <https://github.com/jefferyto/gedit-newline-madness/issues>.
@@ -19,8 +19,9 @@ gedit 2 users should use [v0.1.0][] (requires at least gedit 2.29.5).
1. Download the source code (as [zip][] or [tar.gz][]) and extract.
2. Copy `newline-madness.plugin` and the `newline-madness` folder into
`~/.local/share/gedit/plugins` (create if it does not exist).
-3. Restart gedit, select **Edit > Preferences**, and enable the plugin
- in the **Plugins** tab.
+3. Restart gedit, select **Edit > Preferences** (or
+ **gedit > Preferences** on Mac), and enable the plugin in the
+ **Plugins** tab.
## Usage ##
View
@@ -7,4 +7,4 @@ Description=Change newline type for the current document
Authors=Jeffery To <jeffery.to@gmail.com>
Copyright=Copyright © 2010-2012 Jeffery To
Website=https://github.com/jefferyto/gedit-newline-madness
-Version=0.3.0
+Version=0.3.1
@@ -91,7 +91,11 @@ def __init__(self, label=None):
self._hbox.pack_start(self._item, True, True, 0)
- self._arrow = Gtk.Arrow(Gtk.ArrowType.DOWN, Gtk.ShadowType.NONE)
+ try:
+ self._arrow = Gtk.Arrow(Gtk.ArrowType.DOWN, Gtk.ShadowType.NONE)
+ except TypeError:
+ self._arrow = Gtk.Arrow()
+ self._arrow.set(Gtk.ArrowType.DOWN, Gtk.ShadowType.NONE)
self._arrow.show()
self._hbox.pack_start(self._arrow, False, True, 0)

0 comments on commit 8709cae

Please sign in to comment.