Commit d73fa807 authored by Tor Lillqvist's avatar Tor Lillqvist Committed by Tor Lillqvist
Browse files

Use GetDriveType() to recognize removable drives (in order to avoid

2003-02-09  Tor Lillqvist  <tml@iki.fi>

	* gtk/gtkfilesel.c (win32_gtk_add_drives_to_dir_list): Use
	GetDriveType() to recognize removable drives (in order to avoid
	hanging if trying to access an empty floppy drive), instead of
	hardcoding A: and B: (#105654).
parent b9da30bc
2003-02-09 Tor Lillqvist <tml@iki.fi>
* gtk/gtkfilesel.c (win32_gtk_add_drives_to_dir_list): Use
GetDriveType() to recognize removable drives (in order to avoid
hanging if trying to access an empty floppy drive), instead of
hardcoding A: and B: (#105654).
2003-02-09 Matthias Clasen <maclas@gmx.de> 2003-02-09 Matthias Clasen <maclas@gmx.de>
* gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in * gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in
......
2003-02-09 Tor Lillqvist <tml@iki.fi>
* gtk/gtkfilesel.c (win32_gtk_add_drives_to_dir_list): Use
GetDriveType() to recognize removable drives (in order to avoid
hanging if trying to access an empty floppy drive), instead of
hardcoding A: and B: (#105654).
2003-02-09 Matthias Clasen <maclas@gmx.de> 2003-02-09 Matthias Clasen <maclas@gmx.de>
* gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in * gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in
......
2003-02-09 Tor Lillqvist <tml@iki.fi>
* gtk/gtkfilesel.c (win32_gtk_add_drives_to_dir_list): Use
GetDriveType() to recognize removable drives (in order to avoid
hanging if trying to access an empty floppy drive), instead of
hardcoding A: and B: (#105654).
2003-02-09 Matthias Clasen <maclas@gmx.de> 2003-02-09 Matthias Clasen <maclas@gmx.de>
* gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in * gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in
......
2003-02-09 Tor Lillqvist <tml@iki.fi>
* gtk/gtkfilesel.c (win32_gtk_add_drives_to_dir_list): Use
GetDriveType() to recognize removable drives (in order to avoid
hanging if trying to access an empty floppy drive), instead of
hardcoding A: and B: (#105654).
2003-02-09 Matthias Clasen <maclas@gmx.de> 2003-02-09 Matthias Clasen <maclas@gmx.de>
* gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in * gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in
......
2003-02-09 Tor Lillqvist <tml@iki.fi>
* gtk/gtkfilesel.c (win32_gtk_add_drives_to_dir_list): Use
GetDriveType() to recognize removable drives (in order to avoid
hanging if trying to access an empty floppy drive), instead of
hardcoding A: and B: (#105654).
2003-02-09 Matthias Clasen <maclas@gmx.de> 2003-02-09 Matthias Clasen <maclas@gmx.de>
* gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in * gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in
......
...@@ -2059,7 +2059,7 @@ win32_gtk_add_drives_to_dir_list (GtkListStore *model) ...@@ -2059,7 +2059,7 @@ win32_gtk_add_drives_to_dir_list (GtkListStore *model)
while (*textPtr != '\0') while (*textPtr != '\0')
{ {
/* Ignore floppies (?) */ /* Ignore floppies (?) */
if ((tolower (textPtr[0]) != 'a') && (tolower (textPtr[0]) != 'b')) if (GetDriveType (textPtr) != DRIVE_REMOVABLE)
{ {
/* Build the actual displayable string */ /* Build the actual displayable string */
g_snprintf (formatBuffer, sizeof (formatBuffer), "%c:\\", toupper (textPtr[0])); g_snprintf (formatBuffer, sizeof (formatBuffer), "%c:\\", toupper (textPtr[0]));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment