diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-4 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 7 | ||||
-rw-r--r-- | gtk/gtkfilesel.c | 2 |
6 files changed, 36 insertions, 1 deletions
@@ -1,3 +1,10 @@ +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> * gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index ec82a3e389..63044273c7 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,10 @@ +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> * gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index ec82a3e389..63044273c7 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,10 @@ +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> * gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index ec82a3e389..63044273c7 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,10 @@ +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> * gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index ec82a3e389..63044273c7 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,10 @@ +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> * gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in diff --git a/gtk/gtkfilesel.c b/gtk/gtkfilesel.c index b3e42307a0..4fcb54a304 100644 --- a/gtk/gtkfilesel.c +++ b/gtk/gtkfilesel.c @@ -2059,7 +2059,7 @@ win32_gtk_add_drives_to_dir_list (GtkListStore *model) while (*textPtr != '\0') { /* Ignore floppies (?) */ - if ((tolower (textPtr[0]) != 'a') && (tolower (textPtr[0]) != 'b')) + if (GetDriveType (textPtr) != DRIVE_REMOVABLE) { /* Build the actual displayable string */ g_snprintf (formatBuffer, sizeof (formatBuffer), "%c:\\", toupper (textPtr[0])); |