RE: gtk_file_selection not showing USB memory device
- From: "Ian Puleston" <ian underpressuredivers com>
- To: <gtk-list gnome org>
- Subject: RE: gtk_file_selection not showing USB memory device
- Date: Fri, 24 Feb 2006 01:08:22 -0800
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?
Ian
> -----Original Message-----
> From: Ian Puleston
> Sent: Thursday, February 23, 2006 10:04 AM
>
> Actually, I just noticed that the floppy drive is not showing up
> either. So the gtk_file_selection is apparently displaying only the
> hard drives (and mapped hard drives), but not removable media.
>
> Ian
>
> > -----Original Message-----
> > From: Ian Puleston
> > Sent: Wednesday, February 22, 2006 12:31 PM
> >
> > Hi,
> >
> > I have a Windows app built with GTK 2.8.10, and in it I'm using a
> > gtk_file_selection to open a file. My problem is that in that
> > gtk_file_selection dialog a USB memory device (installed in Windows
> > as
> the
> > F: drive) is not showing up.
> >
> > Also installed on the Windows PC I have Ethereal 0.10.10 which is
> compiled
> > with GTK+ 2.4.14, and in its gtk_file_selection dialog the USB
> > memory device does show up as drive F:.
> >
> > Any ideas why I'm not seeing it in my app?
> >
> > Oh, and I tried compiling the viewlw program in the
> > gtkglext-examples directory, and it too does not show the USB memory
> > device in its gtk_file_selection dialog.
> >
> > Ian
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]