bits and pieces from gtk-2-12 and gunix*.[hc] to make the file chooser

2008-06-17  Hans Breuer  <hans@breuer.org>

        * gwin32mount.[ch] gwin32volumemonitor.[ch] : bits and pieces from 
        gtk-2-12 and gunix*.[hc] to make the file chooser show drive letter
	access again on win32, see bug #538127
        * giomodule.c : ensure GWin32VolumeMonitor is registered
        * glocaldireoctorymonitor.c : initial state on win32 is_mounted=TRUE
        * Makefile.am makefile.msc : updated

svn path=/trunk/; revision=7055
This commit is contained in:
Hans Breuer
2008-06-17 21:40:04 +00:00
committed by Hans Breuer
parent 203ac61027
commit b696a978ea
9 changed files with 896 additions and 4 deletions

View File

@@ -113,7 +113,8 @@ g_local_directory_monitor_constructor (GType type,
if (!klass->mount_notify)
{
#ifdef G_OS_WIN32
g_warning ("G_OS_WIN32: no mount emulation");
/*claim everything was mounted */
local_monitor->was_mounted = TRUE;
#else
GUnixMountEntry *mount;
@@ -177,7 +178,8 @@ mounts_changed (GUnixMountMonitor *mount_monitor,
/* Emulate unmount detection */
#ifdef G_OS_WIN32
mount = NULL;
g_warning ("G_OS_WIN32: no mount emulation");
/*claim everything was mounted */
is_mounted = TRUE;
#else
mount = g_unix_mount_at (local_monitor->dirname, NULL);