ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/CV/Changes
(Generate patch)

Comparing CV/Changes (file contents):
Revision 1.90 by root, Tue Oct 18 00:05:07 2005 UTC vs.
Revision 1.237 by root, Sat Apr 11 22:36:52 2020 UTC

1TODO/FIXME: popup menu doesn't cause refresh (or maybe only internal refresh) 1TODO: mkv
2TODO/FIXME: pixmap-bg-trick sometimes doesn't work (race?) 2TODO/FIXME: pixmap-bg-trick sometimes doesn't work (race?)
3TODO/FIXME: cursor movement does not clear selection 3TODO/FIXME: remove event does not recalculate schanuzer content size
4TODO/FIXME: dealpha_expose called too at wrong point? 4TODO: with manual placement, initial contents aren't displayed
5TODO: rename, mass-rename 5TODO: update a file that has been removed etc.
6TODO: note to self, the reason mplayer hangs during long copies is that execve hangs, because it closes an fd to the target file.
6 7
8TODO: "mädhcne" utf-8 bug move to ERROR is a directory
9TODO: up == select dir
10TODO: CV_THUMBNAIL_SCALE
11TODO: Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text() at /opt/bin/cv line 224.
12TODO: dir_is_movie in load_image bluray: ffmpeg etc.
13
14TODO: "j" and "#" keys for movies
15TODO: cv 5/ 6/ (hla) bad icon label in schnauzere
16 - INCOMPATIBLE CHANGE: .cvrc is now sourced much earlier, before loading
17 modules. cvrc_boot and cvrc_start functions are called later.
18 - INCOMPATIBLE CHANGE: mplayer support has been completely removed.
19 - INCOMPATIBLE CHANGE: viewer now defaults to "maxpect" (shift-M) mode.
20 - cv now uses mpv to generate video thumbnails - maybe slower, maybe overall
21 worse, but at least there is no dependency on mplayer anymore.
22 - cv now expects mpv to be in the CV_MPV, not CV_MPALYER, env variable.
23 - the Schnauzer now autoscales everything according to the first monitor's
24 DPI when the dpi is >= 110. This can be disabled by adding this to your .cvrc:
25 $Gtk2::CV::Schnauzer::DISPLAYSCALE = 1;
26 - redid "splash" image to be 16:9 (and also super-ugly, but nobody cares).
27 - support mpv's --input-ipc-file option, in addition to --input-file
28 (untested).
29 - rather brutally remove LC_ALL and override LC_NUMERIC, as perl and gtk2
30 sometimes fail to format numbers correctly and fall back to the
31 locale-specific format (which perl should never do).
32 - added a "Subdir view", showing only subdirectories in the cluster view and
33 immediately entering them.
34 - add .cvrc changable variable $Gtk2::CV::Schnauzer::DISPLAYSCALE,
35 defaults to 1 - for use with hidpi displays.
36 - add .cvrc changable variable $Gtk2::CV::Schnauzer::ICONSCALE,
37 defaults to 1 - modifies actual icon file size.
38 - add .cvrc changable variable $Gtk2::CV::Schnauzer::FONTSCALE,
39 defaults to icon scale - modified icon font height.
40
411.8 Mon Apr 29 15:10:44 CEST 2019
42 - work around newer versions of mpv no longer having a pause command.
43 - always use mpv to display gif images, because it's hard to detect whether a gif
44 is animated or not.
45 - use a better(?), more "sharp" method to detect keyboard accelerators and to decide
46 which keys to pass to the schnauzer from the image window.
47 - new selection method. Alt-A / select files i same directory, can be repeated.
48 - rename select by prefix to select by adjacent name.
49 - increase search range for adjacent name to 10000.
50 - change meta-mask to mod1-mask, as gtk+ has silently changed the meaning of meta
51 over the years (so much for api stability...).
52 - newer perl versions somehow manage to leak the prefetch file handle somehow,
53 try tro work aorund.
54 - implement (undocumented) filename_display_name hook in Gt2k::CV::Schnauer.
55 - use symbolic names for entry indices in Schnauzer, for sanity, as the design
56 is now stable enough.
57 - use loop-file=inf for mpv instead of -loop 0, which only works for mplayer.
58 - add metadata clustering plugin.
59 - use ffprobe also if libmagic cannot detect anything, to decide whether the
60 file is (maybe) an image or (maybe) a video.
61 - namecluster now respects default modifier mask.
62
631.71 Tue Jul 31 00:57:03 CEST 2018
64 - fix 'o' key osd level switching in mpv (similar to old mplayer mode).
65 - do not error out on incomplete JPEG files, generate fake EOI marker instead
66 to enable the decoder to output a partial file.
67
681.7 Wed Dec 27 18:47:50 CET 2017
69 - DEFAULT CHANGED: cv will now default to mpv instead of mplayer.
70 use CV_MPLAYER=mplayer to get the previous behaviour.
71 - new env variable, CV_MPLAYER, defaulting to mpv.
72 - make "mplayer" configurable via CV_MPLAYER, support mpv.
73 - support mpv ipc protocol for remote control.
74 - implement audio visualisation when playing audio streams,
75 remove support for CV_AUDIO_PLAYER.
76 - port to newer versions of gtk2, which require including gdkx.h.
77 - preliminary & optional webp load and thumbnail support.
78 - use mmap to "load" files and decode from memory buffers.
79 - use internal fileype function to detect filetype when generating
80 hthumbnails, instead of relaying on file extension (for speed).
81 - add internal magic_buffer/magic_buffer_mime functions.
82 - add more fallback extensions for audio when mimetype detection fails.
83
841.61 Sat Jun 24 01:55:48 CEST 2017
85 - work around parser bug in 5.18.1 (-a).
86 - very simple "better than nothing" jpeg cmyk/ycck format decoding.
87 - use ffprobe instead of mplayer to probe video size/type.
88 - switch to using AnyEvent::Fork as provider for the processpool, which ought
89 to save gobs of memory.
90 - much improved async communications with worker processes.
91 - batch expose events together, in an attempt to reduce the amount of
92 expose races in gtk+ (does not fix scrolling races).
93 - create #cpu + 1 worker jobs now, not 1.5 * #cpu + 1 as before.
94 - better shell-quoting: use ""-style for utf-8 filenames and paste as unicode,
95 use bash's $'' syntax for other filenames.
96 - no longer pass a-z from viewer to schnauzer.
97 - properly serialise jobs by priority, instead of executing
98 jobs in parallel on the same path *sometimes*.
99 - escape select-by-prefix menu item labels.
100 - work around more perl unicode bugs.
101 - slightly improved filetype detection.
102 - add "cp" job for external plugins.
103 - work around even more perl unicode bugs that the perl5-porters
104 don't want to fix because of backwards compatibility.
105 - do not stupidly load big video files into memory just
106 to make a thumbnail.
107 - don't modify global $_ in aio callbacks.
108 - make drag-rectangle more visible.
109 - do not enter the last directory on the commandline, if more
110 than one argument is specified.
111 - started using AnyEvent.
112 - space by default activates first file, or first directory, if no files
113 (as opposed to first file or last directory in previous versions).
114 - fix race condition where the schnauzer might stay non-sensitive
115 on fast directory changes.
116 - allow reversal of rotation via .cvrc $REVERSE_ROTATION = 1.
117 - delay initialisation of Gtk2::CV::Schnauzer until first use.
118 - fix a runtime error when starting namecluster with newer gtk's.
119 - do not rely on /dev/shm being world-writable, use
120 /run/shm, /dev/shm and /tmp, in this order.
121 - expect mplayer to sometimes generate more than 2 frames when 1 is
122 requested.
123 - tune video thumbnail generation a bit.
124 - more fixups for "file -i" failing.
125 - properly follows symlinks instead of bailing out.
126 - support perl multicore specification (http://perlmulticore.schmorp.de/)
127 for jpeg loading and image transformations, although nothing takes
128 advantage of this *yet*.
129 - ctrl-up/down in schnauzer tries to move name cluster cursor.
130 - ctrl-shift-T in image window now sets default rotation for
131 subsequent image loads.
132 - ctrl-shift-G in schnauzer now removes thumbnails.
133 - implement j (cycle subtitle) and # (cycle audio track)
134 in mplayer mode.
135 - respect load time (ctrl-shift-T) rotation setting for videos
136 (no clue how to do that at runtime).
137 - print jpeg error messages to stderr.
138
1391.56 Thu Oct 28 14:13:36 CEST 2010
140 - try an ugly workaround against Gtk's CONTINUED brokenness
141 with regards to non-ascii filenames :(.
142 - REALLY hide paths that are in the process of being removed
143 from the Schnauzer.
144 - when selecting entries, stat them all and fine their total
145 size(s) + filesystem overhead after a delay.
146 - take advantage of the Guard module.
147 - work around mplayer grabbing the focus.
148 - improve mplayer window size bug workaround. *sigh*.
149 - try not to keep a handle to a guard file to avoid
150 running into rename races with nfs.
151 - work around perl bug #77798 in some parts.
152 - slight namecluster speed improvement.
153 - work around newer libmagic versions adding mime attributes.
154
1551.55 Tue Jan 26 03:18:45 CET 2010
156 - schnauzer did usually not give the correct number for
157 "# entries selected".
158 - added new "renamer" plugin that is useful for mass renames
159 of very similar filenames.
160 - apply a heavy dose of common::sense.
161 - enable assert's (which perl disables...).
162 - take advantage of IO::AIO::aio_readdirx.
163 - speed up file move duplicate detection.
164
1651.54 Mon Apr 27 04:23:33 CEST 2009
166 - implement automatic reloading on SIGUSR1, as per suggestions
167 by Trevor Cordes.
168 - remove -\d\d\d file ending first on move collision.
169 - ctrl-shift-d now deletes despite CV_TRASHCAN.
170 - very hacky video thumbnailing via mplayer.
171 - ctrl-d errornously worked like ctrl-shift-d (cost 50gb of data).
172 - work around glib/gtk's filename corruption bugs when saving thumbnails
173 by writing the file ourselves.
174 - work around some other glib/gtk string corruption bugs.
175 - really only warn about pipe close failures :/.
176 - add hide attribute to jobs that will remove the file and do not
177 show those files in the schnauzer (but in-progress jobs
178 will still be shown, unfortunately).
179 - work around some more unicode issues in perl.
180 - correctly parse .rm as file extension in the schnauzer.
181 - always pre-fork the maximum number of worker slaves,
182 as forking later can consume way too much memory.
183 - update glade to work around annoying warnings in newer gtk.
184 - work around changes in newer glade. *sigh*.
185 - document that we need libgtk2.0-dev, too.
186 - avoid endless loops in mv.
187
1881.53 Tue Jul 8 14:03:12 CEST 2008
189 - only warn about pipe close failures in printdialog, do not die.
190 - do not try to handle filenames in unicode, instead, only
191 convert at display time.
192 - kill any media players on destroy and not in the finaliser,
193 as gtk+'s lazy finalisation and mplayers stubbornness to
194 continue running without control socket and output window
195 can be annoying.
196 - add recursive delete (lamely implemented using rm -rf).
197 - update progressbar after a timeout in addition to after
198 enough work has done to ensure it is being displayed
199 quickly for long jobs.
200
2011.51 Sun Jan 27 17:48:14 CET 2008
202 - run more stats in parallel in schnauzer scanning.
203 - do not deselect cursor on scroll if a range is selected.
204
2051.5 Sun Nov 25 15:15:27 CET 2007
206 - rudimentary support for audio.
207 - fix Gtk2::Ex::PodViewer rename (patch by Randy J. Ray).
208
2091.4 Sat Mar 17 14:11:48 CET 2007
210 - upgraded to IO::AIO 2.1 features.
211 - errors in IO::AIO callback execution will be logged and will
212 not freeze AIO operations anymore.
213 - jpeg2000 support by running jasper externally (imageviewer only).
214 - directory scanning now asynchronous.
215 - increased progress update frequency and reduced delay.
216 - add/enable icons for mp2/mp3/ogm.
217 - better ogm support.
218 - use mplayer for just about anything as opposed to just for video/*.
219 - fix auto rotation in older perls.
220
2211.3 Wed Sep 27 23:59:27 CEST 2006
222 - simplify redraw, avoid unnecessary schnauzer redraws.
223 - add rotate entries to the schnauzer menu, adapted
224 from a patch by Corris Randall.
225 - use new experimental (but much faster) clustering feature vector
226 based on moments and not on a histogram.
227 - reimplement file movement to use IO::AIO natively, thus much faster
228 and lower on resources.
229
2301.2 Fri Mar 31 12:55:15 CEST 2006
231 - fix unnecessarily redraws on partial exposes (scrolling etc).
232 - fixed CV_TRASHCAN support.
233 - "a" calls exiftran to rotate the image on-disk.
234 - don't run jobs on the same file in parallel.
235 - filenames were sometiems encoded twice when loading xvpics.
236 - do not sort filenames given on the commandline.
237 - set dithering to 'max', as contrary to documentation 'normal'
238 doesn't dither on (my) 8-bit-displays.
239 - enable dithering for xvpics.
240 - use libmagic for filetype detection.
241 - set window roles.
242 - changed xor color from 0x8080 PC to 0x8000, as the former yields
243 useless results on gtk 2.8.
244 - fix p7 thumbnail reading.
245
2461.1 Fri Oct 28 15:47:53 CEST 2005
247 - jobs for files currently shown in a schnauzer get prioritised.
7 - directories visited in a session are shown darker. 248 - directories visited in a session are shown darker.
8 - unvisited directory with .xvpics in them are shown differently. 249 - unvisited directory with .xvpics in them are shown differently.
9 - add Remove Thumbnails menu entry. 250 - add Remove Thumbnails menu entry.
10 - allow restricting image size to something less than the screen 251 - allow restricting image size to something less than the screen
11 (ctrl-shift-m). 252 (ctrl-shift-m).
12 - fix a bug where background processes stopped processing jobs. 253 - fix a bug where background processes stopped processing jobs.
13 - primary selection support for schnauzer selections. 254 - primary selection support for schnauzer selections.
14 - documented and implemented scorlling behaviour while drag-selecting. 255 - documented and implemented scorlling behaviour while drag-selecting.
15 - implemented Select=>By Prefix. 256 - implemented Select=>By Prefix.
16 - background loading of .xvpics (and checking for symlinks-to-dirs). 257 - background loading of .xvpics (and checking for symlinks-to-dirs).
17 - use overlays to differentiate between directories that 258 - use overlays to differentiate between directories that
18 are empty, have .xvpics or are symlinks-to-directories. 259 are empty, have .xvpics or are symlinks-to-directories.
19 - better/slower expose handling (we need double-refreshes due to 260 - better/slower expose handling (we need double-refreshes due to
20 probable bugs in gtk+ or X11). 261 probable bugs in gtk+ or X11).
21 - implement a dirstack (statestack) and make use of it. 262 - implement a dirstack (statestack) and make use of it.
22 - don't forget cursor position on ctrl-g and similar commands. 263 - don't forget cursor position on ctrl-g and similar commands.
23 - implemented keep_only_thumbnailed and remove_thumbnailed. 264 - implemented keep_only_thumbnailed and remove_thumbnailed.
24 - implemented multiple-image-window support in cv. 265 - implemented multiple-image-window support in cv.
25 - do some extra random resizes on the mplayer window to get it 266 - do some extra random resizes on the mplayer window to get it
26 to notice the damned window size. 267 to notice the damned window size.
27 - reap fork'ed job processes to avoid ressource leaks. 268 - reap fork'ed job processes to avoid ressource leaks.
269 - fixed GNU R clustering.
28 270
291.0 Wed Sep 7 18:41:38 CEST 2005 2711.0 Wed Sep 7 18:41:38 CEST 2005
30 - fix alpha handling: we now compose with a checkerboard, 272 - fix alpha handling: we now compose with a checkerboard,
31 but exposing hidden pixel data is also supported in the code. 273 but exposing hidden pixel data is also supported in the code.
32 - use jpg instead of P7 format for thumbnails and remove p7 274 - use jpg instead of P7 format for thumbnails and remove p7
33 write support: better quality, smaller filesize. 275 write support: better quality, smaller filesize.
34 - evaluate _NET_FRAME_EXTENTS to get actual maximum screen size. 276 - evaluate _NET_FRAME_EXTENTS to get actual maximum screen size.
35 - better mplayer integration (resize handling, aspect handling). 277 - better mplayer integration (resize handling, aspect handling).
36 - fix some bugs when a Schnauzer window was resized and got 278 - fix some bugs when a Schnauzer window was resized and got
37 the wrong offset. 279 the wrong offset.
38 - don't crash when trying to crop to a size of less than a pixel. 280 - don't crash when trying to crop to a size of less than a pixel.
39 - schnauzer now has two modes: directors view or single-file view. 281 - schnauzer now has two modes: directors view or single-file view.
40 this changes it's behaviour on rescan and other occasions. 282 this changes it's behaviour on rescan and other occasions.
41 - reduce the amount of random dithering. 283 - reduce the amount of random dithering.
42 - load jpeg files ~20% faster, create jpeg thumbnails an order 284 - load jpeg files ~20% faster, create jpeg thumbnails an order
43 of magnitude faster. 285 of magnitude faster.
44 - improved bin/cv documentation. 286 - improved bin/cv documentation.
45 - improve scanning performance further by usign the directory 287 - improve scanning performance further by usign the directory
46 link count and by stat'ing possible directories early. 288 link count and by stat'ing possible directories early.
47 - do file data prefetch after space or backspace and 0.3s. 289 - do file data prefetch after space or backspace and 0.3s.
48 - better and faster casefolding. 290 - better and faster casefolding.
49 - use pango's ellipsise functionality and cut at the end. 291 - use pango's ellipsise functionality and cut at the end.
50 - moved the R clustering algo to a separate plugin (and fix it). 292 - moved the R clustering algo to a separate plugin (and fix it).
51 - moved the filename clustering algo to a separate plugin. 293 - moved the filename clustering algo to a separate plugin.
52 - try very hard to get the window size correct befre first map. 294 - try very hard to get the window size correct befre first map.
53 - only load the default title image when necessary (saves mem & cpu). 295 - only load the default title image when necessary (saves mem & cpu).
54 - change drag xor colour to #808080, uglier, but visible on all 296 - change drag xor colour to #808080, uglier, but visible on all
55 images. 297 images.
56 - added icon for .tif files. 298 - added icon for .tif files.
57 - updated icons for some file-extensions. 299 - updated icons for some file-extensions.
58 - created a job system and create thumbnails in parallel and 300 - created a job system and create thumbnails in parallel and
59 in the background. 301 in the background.
60 - more careful handling of filename encodings. 302 - more careful handling of filename encodings.
61 - use gdk_pixbuf_rotate_simple instead of our own functions. 303 - use gdk_pixbuf_rotate_simple instead of our own functions.
62 - played with resizing logic once more. 304 - played with resizing logic once more.
63 305
640.5 Mon Jul 11 05:48:13 CEST 2005 3060.5 Mon Jul 11 05:48:13 CEST 2005
65 - image window resizing now works again. 307 - image window resizing now works again.
66 - much improved resize/move handling (still not up to xv's level). 308 - much improved resize/move handling (still not up to xv's level).
67 - every schnauzer now has an associated label/info field. 309 - every schnauzer now has an associated label/info field.
68 - better ^D performance. 310 - better ^D performance.
69 - can now play videos if mplayer is in the path (and probably is 311 - can now play videos if mplayer is in the path (and probably is
70 identical to my versions and your config file is empty etc. etc. 312 identical to my versions and your config file is empty etc. etc.
71 the usual caveats about embedding mplayer...) 313 the usual caveats about embedding mplayer...)
72 (http://itdp.fh-biergarten.de/mplayer-dev-eng/2004-12/txt00028.txt fixes 314 (http://itdp.fh-biergarten.de/mplayer-dev-eng/2004-12/txt00028.txt fixes
73 the resize problems). 315 the resize problems).
74 - remove gtk20-compatibility cruft. 316 - remove gtk20-compatibility cruft.
75 - added progress window for lengthy operations. 317 - added progress window for lengthy operations.
76 - removed <parent> entry, use popup=>Up. 318 - removed <parent> entry, use popup=>Up.
77 - change of contact address. 319 - change of contact address.
78 - updated icons for some file-extensions. 320 - updated icons for some file-extensions.
79 - make cv's info label wrap as not to change horizontal window width 321 - make cv's info label wrap as not to change horizontal window width
80 (doesn't work, but that's general gtk2 brokenness). 322 (doesn't work, but that's general gtk2 brokenness).
81 - use set_absolute_size for the schnauzer font. doesn't result in an 323 - use set_absolute_size for the schnauzer font. doesn't result in an
82 absolute size, but at least results in the same height everywhere. 324 absolute size, but at least results in the same height everywhere.
83 - implemented a primitive plugin system (see Gtk2::CV::Plugin and 325 - implemented a primitive plugin system (see Gtk2::CV::Plugin and
84 eg/plugin-skeleton). 326 eg/plugin-skeleton).
85 - removed bin/cvc's clusteriser. 327 - removed bin/cvc's clusteriser.
86 - added a new clusteriser algorithm, use Popup=>"Filename clustering..." 328 - added a new clusteriser algorithm, use Popup=>"Filename clustering..."
87 - set _X_CWD to current dir in bin/cv (a rather special feature...). 329 - set _X_CWD to current dir in bin/cv (a rather special feature...).
88 - further directory scanning speed improvements. 330 - further directory scanning speed improvements.
89 - IO::AIO use for some speedups and more concurrency. 331 - IO::AIO use for some speedups and more concurrency.
90 332
910.3 Sun Aug 1 21:59:49 CEST 2004 3330.3 Sun Aug 1 21:59:49 CEST 2004
92 - cv * now correctly loads && selects the first image again. 334 - cv * now correctly loads && selects the first image again.
93 - changed selection behaviour to select ranges not rectangles 335 - changed selection behaviour to select ranges not rectangles
94 (could be configurable at runtime). 336 (could be configurable at runtime).
95 - many small bugfixes. 337 - many small bugfixes.
96 - better display behaviour when viewing many images quickly. 338 - better display behaviour when viewing many images quickly.
97 - changed sort order to sth... strange (case insensitive, 339 - changed sort order to sth... strange (case insensitive,
98 numbers < 5 digits sorted in numerical order). 340 numbers < 5 digits sorted in numerical order).
99 341
1000.2 Thu Nov 20 07:49:55 CET 2003 3420.2 Thu Nov 20 07:49:55 CET 2003
101 - add DSC comments (except for %%page). 343 - add DSC comments (except for %%page).
102 - implemented binary encoding for postscript printing. 344 - implemented binary encoding for postscript printing.
103 - ctrl-s == rescan. 345 - ctrl-s == rescan.
104 - less-latency resizes. 346 - less-latency resizes.
105 - after implementing filename_to_unicode maybe it is time to use it... 347 - after implementing filename_to_unicode maybe it is time to use it...
106 348
1070.15 Wed Nov 12 21:33:32 CET 2003 3490.15 Wed Nov 12 21:33:32 CET 2003
108 - add nifty print dialog, using glade and GladeXML. GladeXML needs 350 - add nifty print dialog, using glade and GladeXML. GladeXML needs
109 some convinience functions, but is ok to use. 351 some convinience functions, but is ok to use.
110 - improved schnauzer scrolling and geometry hints. 352 - improved schnauzer scrolling and geometry hints.
111 - bugfixes, as usual. 353 - bugfixes, as usual.
112 - implemented ctrl-u. 354 - implemented ctrl-u.
113 - implemented maxpect-always mode. 355 - implemented maxpect-always mode.
114 356
1150.14 Mon Nov 10 20:11:15 CET 2003 3570.14 Mon Nov 10 20:11:15 CET 2003
116 - use subpixbufs for cropping. 358 - use subpixbufs for cropping.
117 - don't force redraws anymore, hopefully the result is the same. 359 - don't force redraws anymore, hopefully the result is the same.
118 - primitive printing with automaxpect (always to /tmp/x, watch out!). 360 - primitive printing with automaxpect (always to /tmp/x, watch out!).
119 - off-by-one error in flip code fixed. 361 - off-by-one error in flip code fixed.
120 - replaced nearest interpolation to tiles for thumbnail generation. 362 - replaced nearest interpolation to tiles for thumbnail generation.
121 - much improved thumbnail dithering. 363 - much improved thumbnail dithering.
122 - applied drag_rect patch by muppet, together with some infrastructure 364 - applied drag_rect patch by muppet, together with some infrastructure
123 improvements. 365 improvements.
124 - faster and less accurate text "autoscaling". 366 - faster and less accurate text "autoscaling".
125 367
1260.13 Sat Nov 8 14:13:24 CET 2003 3680.13 Sat Nov 8 14:13:24 CET 2003
127 - Applied patch by muppet to backport it to gtk2.0, 369 - Applied patch by muppet to backport it to gtk2.0,
128 plus portabiity fixes. 370 plus portabiity fixes.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines