OSDN Git Service
Martin Renold [Mon, 18 Apr 2011 06:48:05 +0000 (08:48 +0200)]
draw_dab: small speedup, update lock_alpha
pass 16bit integer for color, instead of 32bit
brushengine_paint_hires: 2% speedup (significant)
and update lock_alpha blend mode
Martin Renold [Mon, 11 Apr 2011 19:36:19 +0000 (21:36 +0200)]
draw_dab: run length encoding for mask
Makes the blendmode code shorter as it doesn't have to deal
with region of interest any more.
brushengine_paint_hires: about 4% performance gain
Martin Renold [Mon, 11 Apr 2011 15:26:11 +0000 (17:26 +0200)]
draw_dab: add back opacity==0 check in inner loop
brushengine_paint_hires: 22% performance gain
Martin Renold [Mon, 11 Apr 2011 14:52:05 +0000 (16:52 +0200)]
draw_dab: code refactoring
Get rid of multiple mask calculations.
Get rid of C++ templates.
guciek [Mon, 11 Apr 2011 13:34:42 +0000 (15:34 +0200)]
add lock_alpha; blend mode refactoring
Squashed branch "blend_modes" by guciek into a single
commit, without modification. Based on
9818189 from
http://github.com/guciek/mypaint.git
Squashed log messages:
* add lock_alpha to brush setting window
* fix calls to removed function
* updated backend for blend modes
* switching blend modes
* a try at gui for blend modes
* pluggable blend modes in draw_dab
* quick hack to test feature
Jon Nordby [Wed, 11 May 2011 18:54:06 +0000 (20:54 +0200)]
brusheditor: Move/reorder widgets for not-so-common actions
- Put brush icon editing in separate page
- Live update at the bottom of
Also, put page title and back button outside of the notebook page itself,
and let the brush icon widget be 200% of icon size.
Martin Renold [Mon, 2 May 2011 13:03:29 +0000 (15:03 +0200)]
testing: include smudging brush in paint test
To check that new blending mode code does not change existing brushes.
Martin Renold [Sun, 10 Apr 2011 14:54:15 +0000 (16:54 +0200)]
testing: new test brushengine_paint_hires
Raw brush engine performance. Uncluttered by the arbitrary choice
of GUI frame rate, and without the background processing that
happens during natural breaks between strokes.
Martin Renold [Sun, 10 Apr 2011 14:00:01 +0000 (16:00 +0200)]
testing: fix brush selection
Performance tests accidentally used the default brush instead
of the one selected during the test.
Martin Renold [Mon, 4 Apr 2011 08:04:07 +0000 (10:04 +0200)]
windowing: allow keyboard input in brushsettings
Makes numerical entry fields in the brush settings curve editing
widget usable again. Pressing numbers did select a predefined
brush, which hurt badly during brush creation workflow.
Andrew Chadwick [Sun, 3 Apr 2011 19:27:11 +0000 (20:27 +0100)]
layout: fix saved window positions with x=0 or y=0
Restored tool windows with x=0 or y=0 would return on the far right or
bottom of the screen. Fix by accepting 0 as a valid top or left
position when positioning windows.
Alao, since negative x or y has meaning with our new window positioning
code and is generally unhelpful anyway, don't save negative x or y
window positions. The value 0 will be saved instead.
Andrew Chadwick [Sun, 3 Apr 2011 19:08:31 +0000 (20:08 +0100)]
layout: positioning fixes
No longer use gtk.WIN_POS_MOUSE: https://gna.org/bugs/?17915
Favour gtk.Window.parse_geometry if we have all the required window
position and size info. This works better with some window managers.
Definitively set the position of tools which are snapped out by
dragging with the mouse and the preview window to take of the preview
window in a deferred handler.
Andrew Chadwick [Sun, 3 Apr 2011 18:48:05 +0000 (19:48 +0100)]
frame: fix crash when set to non-multiple of 64
Fix a crash when the user manually sets frame dimensions to something
other than a multiple of 64. Reported via IRC.
Martin Renold [Thu, 31 Mar 2011 07:34:50 +0000 (09:34 +0200)]
windowing: disable gtk color selector by default
This is just a workaround for a problem in the gtk color selector
code requiring a very recent pygtk version that is not availabile
to many git users yet: https://gna.org/bugs/?17947
With the new default, mypaint is at least is able to start with
an empty config directory on such a setup.
Andrew Chadwick [Mon, 28 Mar 2011 22:38:22 +0000 (23:38 +0100)]
tdw: can now draw sequences of straight lines
Add support for drawing continuous sequences of straight lines starting
from the end of the previous line drawn. It's not enabled by default,
but it's available in the preferences dialog.
Сан Саныч [Sun, 27 Mar 2011 18:18:48 +0000 (20:18 +0200)]
update background patterns by MrMamurk
MrMamurk_pat_25-03-2011.zip
Now with readme and license (public domain).
http://forum.intilinux.com/mypaint-development-and-suggestions/better-background-patterns/msg8196/#msg8196
Martin Renold [Sun, 27 Mar 2011 16:27:08 +0000 (18:27 +0200)]
saving: ask for confirmation for >=8s of work
Before, there was a confirmation dialog only for >= 30s of work.
Andrew Chadwick [Fri, 25 Mar 2011 05:39:53 +0000 (05:39 +0000)]
brushmanager: better default eraser and pen
Name changes in the Deevad set caused our heuristics and defaults to
pick strange brushes. Update eraser heuristics and pick a nice default
pen and sharp-edged eraser that are visible on-screen with the default
window positions.
Andrew Chadwick [Fri, 25 Mar 2011 05:21:21 +0000 (05:21 +0000)]
brush settings: reinstate eraser setting
Bugfix: leaving the eraser brush setting out breaks eraser mode, and
presumably it wasn't intentional. Reinstate it in the basic group.
https://gna.org/bugs/?17941 (thanks, David Gowers!)
Andrew Chadwick [Fri, 25 Mar 2011 04:51:56 +0000 (04:51 +0000)]
tdw & color picker: avoid unnecessary redraws
Set an override cursor on the viewport during the colour picker state.
Far simpler, and much more efficient than doing something that forces a
redraw.
Martin Renold [Fri, 25 Mar 2011 03:30:42 +0000 (04:30 +0100)]
update credits
Сан Саныч [Fri, 25 Mar 2011 03:32:58 +0000 (04:32 +0100)]
background patterns by MrMamurk
Originally posted here:
http://forum.intilinux.com/mypaint-development-and-suggestions/better-background-patterns/
readme.txt with license expected to follow soon
Ramón Miranda [Fri, 25 Mar 2011 02:55:36 +0000 (03:55 +0100)]
background patterns by Ramón
See readme_papers.txt for information.
http://ramonmirandavisualart.blogspot.com/2011/03/mypaint-hr-tileable-papers-artistic.html
Martin Renold [Fri, 25 Mar 2011 03:15:32 +0000 (04:15 +0100)]
backgrounds: search in subdirectories
Andrew Chadwick [Thu, 24 Mar 2011 23:53:53 +0000 (23:53 +0000)]
color picker: fix broken pointer ungrab
Fix the colour picker (Ctrl+click by default) causing susequent clicks
on UI elements docked into the UI to temporarily fail and hit the canvas
instead. Using a GTK-level grab rather than a GDK one appears to work
around the problem, for this key-held-down grab anyway.
https://gna.org/bugs/?17940
Andrew Chadwick [Thu, 24 Mar 2011 21:45:10 +0000 (21:45 +0000)]
brush selector: fix a race condition
Work around situations where the expose callback might not have been
called before motion notify events are handled resulting in an exception
on some (and only some) initial brush selector widget shows.
Tentative fix for https://gna.org/bugs/index.php?17913
Jon Nordby [Sun, 20 Mar 2011 23:04:27 +0000 (23:04 +0000)]
brusheditor: Tweak looks
Always have horizontal scollbar, widgets changing and making
the scrollbar neccesary will happen often, less distracting
if it is always there.
Add header label for brushsettings page and make it align
with the header for the brushinput page.
Remove unnecessary padding from live update option
Jon Nordby [Sun, 20 Mar 2011 18:34:35 +0000 (18:34 +0000)]
brusheditor: Move brush actions out of expander.
This makes common actions like "save brush (settings)" more accessible,
and the name of the current brush is also in a more natural position.
This splits the previous brushcreator widget into two
classes, BrushIconEditorWidget and BrushManipulationWidget.
Jon Nordby [Sun, 20 Mar 2011 15:25:18 +0000 (15:25 +0000)]
brusheditor: Input mapping in drilldown page instead of new windows
Jon Nordby [Sun, 20 Mar 2011 14:46:39 +0000 (14:46 +0000)]
brusheditor: Separate out widget creation to own method
Andrew Chadwick [Sun, 20 Mar 2011 17:44:09 +0000 (17:44 +0000)]
layout: hopefully fix blank floating hidden tools
Hopefully fix tools which were remembered as both hidden and floating
being displayed as blank when toggled on initially.
Andrew Chadwick [Sun, 20 Mar 2011 17:08:34 +0000 (17:08 +0000)]
layout: save pos immediately for tool windows
There's no reason to do a delayed position save for windows that can't
be fullscreened.
Jon Nordby [Sun, 20 Mar 2011 13:58:01 +0000 (13:58 +0000)]
brusheditor: Set window title to "Brush Editor"
Jon Nordby [Sun, 20 Mar 2011 13:56:07 +0000 (13:56 +0000)]
brusheditor: Expand basic brushsettings group by default
Jon Nordby [Sun, 20 Mar 2011 13:53:51 +0000 (13:53 +0000)]
brusheditor: Bold titles for brushsetting groups
Jon Nordby [Sat, 19 Mar 2011 17:13:32 +0000 (17:13 +0000)]
brusheditor: More compact edit/save brush section
Till Hartmann [Sat, 19 Mar 2011 17:45:35 +0000 (18:45 +0100)]
brusheditor: group settings
Based on design by Ramon Miranda.
https://gna.org/bugs/?17907
Till Hartmann [Wed, 16 Mar 2011 20:41:27 +0000 (21:41 +0100)]
frame: Added autocrop-options.
https://gna.org/bugs/index.php?9099#comment13
Andrew Chadwick [Thu, 17 Mar 2011 23:41:59 +0000 (23:41 +0000)]
gtk color selector: fix sizing, make default again
Use a gtk.HSV directly to avoid weird sizing issues when docked.
Make the colorSelectionWindow the default color selector again.
Andrew Chadwick [Tue, 15 Mar 2011 22:06:23 +0000 (22:06 +0000)]
layout: fix tab loss of focus in metacity
Fix annoying behavioural regression: https://gna.org/bugs/?17899
Andrew Chadwick [Tue, 15 Mar 2011 21:50:35 +0000 (21:50 +0000)]
filehandling: fix resave crasher
Ensure the save file dialog is properly destroyed after each use. We can
always make a new one for the next save-as.
Fixes the crasher described at https://gna.org/bugs/?17902
Martin Renold [Tue, 15 Mar 2011 21:32:39 +0000 (22:32 +0100)]
config: always create subdirectories
So the user knows where to drop backgrounds.
Andrew Chadwick [Tue, 15 Mar 2011 19:55:33 +0000 (19:55 +0000)]
drawwindow: fix exception when no window
Bugfix for the main loop destroying GDK windows for GTK windows we have
in the list of known toplevels during cursor spins.
Andrew Chadwick [Tue, 15 Mar 2011 18:57:54 +0000 (18:57 +0000)]
tdw: snapshot directly upon becoming insensitive
Avoids accidental drawing of a white background when loading files, and
removes an unneccessary redraw.
Andrew Chadwick [Mon, 14 Mar 2011 23:23:40 +0000 (23:23 +0000)]
window_factory: catch & suppress import exceptions
Partially addresses https://gna.org/bugs/?17884 - though we probably
need to do more sanity checking.
Andrew Chadwick [Mon, 14 Mar 2011 18:09:09 +0000 (18:09 +0000)]
tdw: fix cursor not redrawing
Quick fix for the cursor not redrawing at the end of loading, when
zooming in or out, or when switching between locked or unlocked layers.
Andrew Chadwick [Sun, 13 Mar 2011 22:34:21 +0000 (22:34 +0000)]
drawwindow: make whole UI insensitive in file ops
Set the UI as insensitive during saving or loading, and spin the wait
cursor on all toplevel windows. Handle redraws that happen while we're
loading or saving using a cached pixmap in the tdw to avoid ugly
multiple redrawing of partially loaded files.
Andrew Chadwick [Sun, 13 Mar 2011 18:19:43 +0000 (18:19 +0000)]
filehandling: permit feedback while saving
Framework for calling the GTK main loop during saving and loading to
prevent greyed windows and to permit feedback while saving huge files.
Andrew Chadwick [Sat, 12 Mar 2011 22:31:05 +0000 (22:31 +0000)]
prefs: make settings.json more readable
Pretty-print the saved settings JSON when we're using the usual built-in
json module: we're gaining quite a lot of settings now window positions
are stored in there.
Andrew Chadwick [Sat, 12 Mar 2011 22:15:18 +0000 (22:15 +0000)]
layout/windowing: update positioning code
User-visble changes:
* New default window positions.
* Nothing's in the sidebar by default now.
* Bugfix for bad sbwidth starting when nothing's in the sidebar at startup...
Internal changes:
* Can now assign default position to plain (non-tool) SubWindows
* Generalise position saving and loading with a couple of mixins.
* Can now set position relative to both left and right screen edges, and
top/bottom.
* Document positioning.
* Support calulated widths (based on monitor size)
* Might as well claim copyright over the new module.
Andrew Chadwick [Tue, 22 Feb 2011 23:01:35 +0000 (23:01 +0000)]
drawwindow: move mouse handlers to main widget
Prevent annoyances when using menus in sidebar widgets.
Andrew Chadwick [Sat, 19 Feb 2011 21:28:41 +0000 (21:28 +0000)]
app: sane default tool sizes and positions
Everything's docked in the sidebar initially, and the main window will
default to an on-screen position that's nicely centred.
Andrew Chadwick [Sat, 19 Feb 2011 18:49:16 +0000 (18:49 +0000)]
subwindows: convert to ToolWidgets
Allow the layer dialog, GTK color selector, new color selector
and brush selector to be packed into the new sidebar.
Andrew Chadwick [Sat, 19 Feb 2011 18:41:38 +0000 (18:41 +0000)]
drawwindow: begin using the layout framework
Gain a sidebar and nicer initial window positioning from the new layout
framework without affecting the existing hierarchy.
Andrew Chadwick [Fri, 18 Feb 2011 17:48:39 +0000 (17:48 +0000)]
app: switch to layoutmanager from windowmanager
More subwindow loading is now deferred, which should speed up loading
times a bit. In addition, this change is necessary for supporting
dockable ToolWidgets later on.
Functional code, but this change breaks subwindow positioning. The
new layout framework will allow us to get most of that back, eventually.
Andrew Chadwick [Fri, 18 Feb 2011 17:25:28 +0000 (17:25 +0000)]
drawwindow: don't just trust that fullscreen works
Do fullscreen properly by not just assuming that it works when we ask
for it, but by listening for GTK window-state-events. This may *seem* to
break fullscreen in ancient, weird WMs that don't support EWMH and
_NET_WM_STATE_FULLSCREEN. Additionally it means that if something other
than the callback fullscreens MyPaint, it will respond correctly.
Andrew Chadwick [Fri, 18 Feb 2011 16:25:57 +0000 (16:25 +0000)]
fullscreen: use gtk fullscreen method, not gdk
Call gtk.Window.fullscreen() rather than gdk.Window.fullscreen() for
the main window. A member variable was shadowing the method name which
is probably why this came about.
Andrew Chadwick [Fri, 18 Feb 2011 14:22:57 +0000 (14:22 +0000)]
layout: add library code for managing sidebars
Introduce a layout manager class that can construct tool widgets or
windows or parts of the main gui using a factory method and cache
combination. Tool widgets can be docked into the main app's sidebar, or
snapped free into floating windows. Window and tool positions will be
saved and loaded to the user's runtime configuration.
Martin Renold [Tue, 8 Mar 2011 19:38:11 +0000 (20:38 +0100)]
startup: don't modify sys.argv
Fixes gtk warning about not being able to interpret sys.argv.
It was a bad idea to manipulate it anway.
Martin Renold [Tue, 8 Mar 2011 19:23:36 +0000 (20:23 +0100)]
startup: fix "-c confpath" argument
Popolon [Sun, 6 Mar 2011 21:43:31 +0000 (21:43 +0000)]
Updated French translation.
Martin Renold [Fri, 4 Mar 2011 20:23:58 +0000 (21:23 +0100)]
portability: small code cleanup
Make sys.argv unicode on all platforms.
Martin Renold [Fri, 4 Mar 2011 14:43:07 +0000 (15:43 +0100)]
windows: fix screwed up confpath
Martin Renold [Fri, 4 Mar 2011 14:21:23 +0000 (15:21 +0100)]
portability: fix linux startup
Tumagonx [Fri, 4 Mar 2011 13:48:13 +0000 (14:48 +0100)]
windows: misc fixes, change thumbnails directory
windows_misc_rc3.patch
(merged from 0.9.1 into master)
Tumagonx [Fri, 4 Mar 2011 13:15:45 +0000 (14:15 +0100)]
windows: use different scrap path
scrappath.patch
Martin Renold [Fri, 4 Mar 2011 19:43:43 +0000 (20:43 +0100)]
version: 0.9.1+git
Martin Renold [Sun, 27 Feb 2011 10:35:01 +0000 (11:35 +0100)]
version bump and changelog
Griatch [Thu, 3 Mar 2011 19:53:41 +0000 (20:53 +0100)]
Updated swedish translation.
Griatch [Thu, 3 Mar 2011 19:11:35 +0000 (20:11 +0100)]
Added a few swedish translator strings.
Martin Renold [Fri, 4 Mar 2011 08:10:21 +0000 (09:10 +0100)]
debug: add gtk input devices dialog
https://gna.org/bugs/index.php?17832
Martin Renold [Mon, 28 Feb 2011 20:30:30 +0000 (21:30 +0100)]
windows: remove unused file
Tumagonx tells me he doesn't use mypaint_exe.c for the Windows build.
Martin Renold [Sun, 27 Feb 2011 19:54:31 +0000 (20:54 +0100)]
windows: fix problem with unicode arguments
https://gna.org/bugs/?17739
Based on code proposed by Tumagonx in the bugtracker.
Andrew Chadwick [Wed, 2 Mar 2011 21:33:04 +0000 (21:33 +0000)]
view menu: distinguish local resets from global
Address our testers' expectations. The single-action resets now operate
only around the centre of the viewport. Relabel the reset-all action to
better express what it does, and make it more quickly accessible.
Andrew Chadwick [Tue, 1 Mar 2011 13:33:57 +0000 (13:33 +0000)]
view reset: fix load-time crash
http://gna.org/bugs/?17401#comment9
Andrew Chadwick [Tue, 1 Mar 2011 12:03:24 +0000 (12:03 +0000)]
tdw: use a more explicit cursor for no-draw states
Using a normal arrow was a bit too subtle for this concept. Change to
use a standard X11 cursor that looks OK and expresses the concept well
enough in a few common cursor themes (dmz, oxy-white, whiteglass).
Andrew Chadwick [Tue, 1 Mar 2011 03:49:49 +0000 (03:49 +0000)]
tdw: don't show drawing cursor if layer is locked
Use the default cursor instead of the usual brush radius circle if the
current layer is locked or hidden/invisible.
Andrew Chadwick [Tue, 1 Mar 2011 01:06:20 +0000 (01:06 +0000)]
layer lock: prevent accidental selection & drawing
Layers can now be locked so that you don't inadvertently draw on them.
Additionally, invisible layers are now treated in the same way, since
drawing on those is even more confusing.
Locked and invisible layers cannot be drawn on, and the Pick Context
and Select Layer at Cursor actions will skip past them. You can however
still merge them, select them, change their ordering, and delete their
contents.
https://gna.org/bugs/?17140
Till Hartmann [Sun, 27 Feb 2011 13:14:09 +0000 (14:14 +0100)]
doc: actions for resetting rotation, zoom, mirror
Added menu-items for resetting rotation, zoom and mirror.
https://gna.org/bugs/index.php?17401
Andrew Chadwick [Mon, 28 Feb 2011 19:21:22 +0000 (19:21 +0000)]
layers: make labels reflect new interaction
String change fixing the consequences of https://gna.org/bugs/?17656
whereby the default labels didn't reflect the new workflow.
Andrew Chadwick [Mon, 28 Feb 2011 19:06:19 +0000 (19:06 +0000)]
layers: fix rename dialog not showing sometimes
Detect clicks on layers in the dialog using their glib type, and respond
appropriately on the corresponding button-up (for consistency). The user
must still click once to select a layer before it'll become selected,
and thus eligable for renaming with a double click, so our text is in
fact incorrect right now.
https://gna.org/bugs/?17656
Tumagonx [Sun, 27 Feb 2011 12:04:37 +0000 (13:04 +0100)]
brushes: fur brush update (more responsive)
Martin Renold [Sun, 27 Feb 2011 11:54:17 +0000 (12:54 +0100)]
windows: build fix
Martin Renold [Sun, 27 Feb 2011 09:21:17 +0000 (10:21 +0100)]
remove "about brush" button
The problem of attributing brushes still needs to be solved, but
this solution didn't work at all. Nobody wants to click a "info"
button just to find out it there is no info available, or to see
the same info again for every brush in the same category.
The external editor didn't work well for me on Linux, neither.
On Windows it is completely broken: https://gna.org/bugs/?17353
David Revoy [Sat, 26 Feb 2011 19:09:41 +0000 (20:09 +0100)]
brushes: deevad V4.1
http://www.davidrevoy.com/index.php?article55/mypaint-v4-brushkit
Quote from the website above:
* More tools 'variations' than in the previous kit, for a faster
workflow.
* All the V4 Brushkit are optimised to produce bigger artworks at
better resolutions, you should set your default zoom at startup
at 50% (Mypaint>edit>preferences>view) for a better experience
while using them.[picture exemple]. Sorry if your machine slows-
down, but V4 is clearly a production brush kit designed for
professional use.
* Brush are not labeled with their name as in the 'transitional
V3+ BrushKit' I created for Mypaint 0.9 release. The new
icons were painted in Mypaint preview square on the fly.
* Almost all the brush were tweaked to have a better behavior.
If you want to have the same feeling I do while using them,
consider changing the curve to something similar to this configuration
(mypaint>edit>preferences>input).[picture exemple]
Martin Renold [Sat, 26 Feb 2011 14:40:49 +0000 (15:40 +0100)]
preferences: fix bug with default zoom being reset
https://gna.org/bugs/?17566
Andrew Chadwick [Thu, 24 Feb 2011 00:06:19 +0000 (00:06 +0000)]
default zoom: fix crash on bad prefs value
Fix two potential crashes on a bad saved view.default_zoom value.
https://gna.org/bugs/?17566
Jon Nordby [Sun, 13 Feb 2011 19:43:02 +0000 (21:43 +0200)]
frame: Render thumbnail only for framed area.
Jon Nordby [Sun, 13 Feb 2011 19:41:07 +0000 (21:41 +0200)]
frame: Save to/load from OpenRaster
Jon Nordby [Fri, 7 Jan 2011 22:23:00 +0000 (23:23 +0100)]
frame: Ability to move frame on-canvas.
Jon Nordby [Tue, 28 Dec 2010 22:09:19 +0000 (23:09 +0100)]
frame: center document to frame if enabled
Jon Nordby [Sun, 13 Feb 2011 12:47:15 +0000 (14:47 +0200)]
frame: If enabled, export only area inside frame to PNG/JPEG
Also set frame dimensions on loading from PNG/JPEG.
Jon Nordby [Wed, 29 Dec 2010 19:51:00 +0000 (20:51 +0100)]
frame: Basic UI
Allows the user to enable/disable the frame and to set the
dimensions.
Jon Nordby [Wed, 29 Dec 2010 17:37:26 +0000 (18:37 +0100)]
frame: State and visualization
Jon Nordby [Fri, 24 Dec 2010 00:30:11 +0000 (01:30 +0100)]
tileddrawwidget: Split repaint method
Tor Egil Hoftun Kvæstad [Mon, 7 Feb 2011 19:37:25 +0000 (20:37 +0100)]
Updated the Norwegian Nynorsk translation
Updated the nn_NO translation, after the addition of new strings.
Changed occurrences of "gjennomsiktigheit" to "dekkjeevne".
Added nn_NO and nb_NO translations for the comment in the desktop file.
Andrew Chadwick [Tue, 15 Feb 2011 20:28:39 +0000 (20:28 +0000)]
linux: desktop file rewording & categorisation
Translations from IRC, incomplete.
Martin Renold [Tue, 15 Feb 2011 07:19:09 +0000 (08:19 +0100)]
fix unicode filename passed via commandline
https://gna.org/bugs/?17739
Martin Renold [Mon, 7 Feb 2011 09:09:11 +0000 (10:09 +0100)]
windows: code cleanup
Use raw string for backslashes.
Fix exception handling. As it was before, in the case
of an exception the use of "localappdatapath" later would
have triggered another (fatal) exception.
Don't bother closing handles manually, python destructors do this
for us.
Set the path on windows independent of the result of expanduser('~').
Tumagonx [Mon, 7 Feb 2011 09:01:10 +0000 (10:01 +0100)]
windows: use AppData folder for settings
https://gna.org/bugs/?17662
"In Windows I expect Local AppData folder for saving settings,
in pygobject there is glib.get_user_config_dir() but it has windows
issue that just recently fixed (Glib 2.27.x ?) otherwise it seems to
conform XDG spec too."