Re: gtk_file_selection not showing USB memory device
- From: Sven Neumann <sven gimp org>
- To: "Ian Puleston" <ian underpressuredivers com>
- Cc: gtk-list gnome org
- Subject: Re: gtk_file_selection not showing USB memory device
- Date: Fri, 24 Feb 2006 12:24:00 +0100
Hi,
"Ian Puleston" <ian underpressuredivers com> writes:
> I took a look at the source code, and it seems obvious why this is
> happening. This is from function win32_gtk_add_drives_to_dir_list() in
> gtkfilesel.c:
>
> /* Get the drives string */
> GetLogicalDriveStrings (sizeof (buffer), buffer);
>
> /* Add the drives as necessary */
> textPtr = buffer;
> while (*textPtr != '\0')
> {
> /* Ignore floppies (?) */
> if (GetDriveType (textPtr) != DRIVE_REMOVABLE)
> {
>
> So it is deliberately ignoring floppies and other removable media. Anyone
> know why that is?
GtkFileSelection is deprecated for several years now. It is somewhat
futile to worry about this misbehaviour. What about using
GtkFileChooser instead?
Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]