Skip to content

GTK3 update, plus a few minor new features. #1

Merged
merged 4 commits into from Nov 27, 2011

2 participants

@killarny

I switched to logilab-astng as you suggested, and improved some of the gedit plugin code so that the pane hides when a non-python source file is being viewed, instead of showing an empty pane. I also added some error displays, so that when the source file has a SyntaxError that prevents the outline from being rendered, it'll show why the pane is blank, and let the user click on the error to go to the line that caused it.

In short, replicates the same functionality as your original, and adds a few very minor niceties that I've wanted for a while.

killarny added some commits Nov 9, 2011
@killarny killarny Updated to GTK3.
Switched to logilab-astng for generating the code tree, since the compiler package was deprecated in python 2.6.
When the outline can't be generated due to invalid code in the source text, an error is displayed instead of the outline. Selecting the error will jump to the location in the source where the error was raised by astng.
Improved the handling of the outline pane; it will now completely hide when non-python source is in the text area, and reappear when needed.
Display of from-imports (ie, from foo import bar) and aliased imports (ie, import foo as bar) are different.
More attributes display, and look slightly different. For example, attributes on a class are no longer prefaced with "self.".
Attributes now have an icon.
Removed the "outline rendered in N seconds" label.
Changed the stock icon used for the outline pane.
d86dafb
@killarny killarny Added new plugin file for GTK3, and removed the old GTK2 gedit-plugin…
… file.
e39c22b
@killarny killarny Added error display in the outline when the logilab.astng module can'…
…t be imported.

Prevent scrolling when clicking on an outline row that has a line number of -1. Primarily for showing errors that are not related to a specific line of the source text.
499192e
@killarny killarny Improved output of parsing errors with long messages by making the er…
…ror display two lines.
a3ce312
@dieterv dieterv merged commit d5052b2 into dieterv:master Nov 27, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.