Re: gtk_file_selection not showing USB memory device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

"Ian Puleston" <ian@xxxxxxxxxxxxxxxxxxxxxxx> 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
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux