diff options
author | Tor Lillqvist <tml@iki.fi> | 2000-11-30 23:08:53 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2000-11-30 23:08:53 +0000 |
commit | a91cd8abc9bb460c4e647d9e373671ff0dfea337 (patch) | |
tree | 2b82cb3c3121e34c84e4873439efd72e8bf953c0 /pango | |
parent | 86666507ded9c2dd4d89e21c8694d14eabe6c0d9 (diff) | |
download | pango-a91cd8abc9bb460c4e647d9e373671ff0dfea337.tar.gz |
Use g_file_test().
2000-12-01 Tor Lillqvist <tml@iki.fi>
* pango/pango-utils.c (pango_get_sysconf_subdirectory): Use
g_file_test().
* examples/viewer-win32.c (main): Disable double buffering on the
layout widget only when building with GTK+ 1.3.2 or newer.
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pango-utils.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/pango/pango-utils.c b/pango/pango-utils.c index 91b50d80..d9958905 100644 --- a/pango/pango-utils.c +++ b/pango/pango-utils.c @@ -42,10 +42,6 @@ #ifdef G_OS_WIN32 #include <sys/types.h> -#include <sys/stat.h> -#ifndef S_ISDIR -#define S_ISDIR(mode) ((mode)&_S_IFDIR) -#endif #define STRICT #include <windows.h> @@ -638,7 +634,6 @@ pango_get_sysconf_subdirectory (void) HKEY reg_key = NULL; DWORD type; DWORD nbytes = sizeof (pango_sysconf_dir); - struct stat st; if (been_here) return pango_sysconf_dir; @@ -655,7 +650,7 @@ pango_get_sysconf_subdirectory (void) GetWindowsDirectory (win_dir, sizeof (win_dir)); sprintf (pango_sysconf_dir, "%s\\pango", win_dir); - if (!stat (pango_sysconf_dir, &st) || !S_ISDIR (st.st_mode)) + if (!g_file_test (pango_sysconf_dir, G_FILE_TEST_IS_DIR)) { /* Oops. %WinDir%\pango does not exist */ HMODULE hm = NULL; |