]> Pileus Git - ~andy/gtk/commit
Fix the file chooser on Windows. I can't make it misbehave or crash any
authorTor Lillqvist <tml@iki.fi>
Thu, 22 Apr 2004 05:08:19 +0000 (05:08 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Thu, 22 Apr 2004 05:08:19 +0000 (05:08 +0000)
commit215cabd938150ecfa32d50ac48ac43d00819e596
tree25e0315dfdf0c9fd1ee3e57b572ea878107bdc19
parent5a8701523c19fc66c2a05135aa80c16d2e9606a3
Fix the file chooser on Windows. I can't make it misbehave or crash any

2004-04-22  Tor Lillqvist  <tml@iki.fi>

Fix the file chooser on Windows. I can't make it misbehave or
crash any more now. But presumably there are still corner cases
not handled. I haven't really checked behaviour of UNC paths, for
instance.

* gtk/gtkfilesystemwin32.c: Accept both backslash and slash in
several places. Use G_IS_DIR_SEPARATOR macro (which could be added
to GLib in 2.6).

(gtk_file_system_win32_get_parent): Like the Unix version, assert
filename is absolute, and avoid one unnecessary string allocation
and freeing.

(canonicalize_filename,gtk_file_system_win32_parse): Handle drive
letters more correctly.

(gtk_file_system_win32_render_icon): Assure correct syntax is used
for root folder of a drive. (#137962, Morten Welinder)

(filename_is_some_root): New function that accepts also root
without any drive specified.

(filename_is_drive_root): Rename from filename_is_root.

* gtk/gtkfilechooserentry.c (completion_match_func): Casefold on
Windows.
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkfilechooserentry.c
gtk/gtkfilesystemwin32.c