Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 8709caee91f7e13a90743e32bb946f86394b8b49 1 parent 3d235a0
@jefferyto authored
View
3  Changelog
@@ -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
7 README.md
@@ -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
2  newline-madness.plugin
@@ -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
View
6 newline-madness/statuscombobox.py
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.