summaryrefslogtreecommitdiff
path: root/gtk/gtkfilesel.c
diff options
context:
space:
mode:
authorManish Singh <yosh@src.gnome.org>1999-10-06 19:47:24 +0000
committerManish Singh <yosh@src.gnome.org>1999-10-06 19:47:24 +0000
commit4f771b6d26c0877933badc401fdb77b8f3a6f4ee (patch)
treef04aed99a4ce3809de09f08d276866d74282be14 /gtk/gtkfilesel.c
parentbdcba96639f38334187530fb36bfda9d0853aed3 (diff)
downloadgtk+-4f771b6d26c0877933badc401fdb77b8f3a6f4ee.tar.gz
s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
-Yosh
Diffstat (limited to 'gtk/gtkfilesel.c')
-rw-r--r--gtk/gtkfilesel.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/gtk/gtkfilesel.c b/gtk/gtkfilesel.c
index 6987ea1388..ccc674ece8 100644
--- a/gtk/gtkfilesel.c
+++ b/gtk/gtkfilesel.c
@@ -71,7 +71,7 @@
#include "gtkdialog.h"
#include "gtkintl.h"
-#if defined(G_OS_WIN32) || defined(G_HAVE_CYGWIN)
+#if defined(G_OS_WIN32) || defined(G_WITH_CYGWIN)
#define STRICT
#include <windows.h>
@@ -85,7 +85,7 @@
#endif /* G_OS_WIN32 */
-#endif /* G_OS_WIN32 || G_HAVE_CYGWIN */
+#endif /* G_OS_WIN32 || G_WITH_CYGWIN */
#define DIR_LIST_WIDTH 180
#define DIR_LIST_HEIGHT 180
@@ -284,7 +284,7 @@ static gchar* cmpl_completion_fullname (gchar*, CompletionState* cm
static CompletionDir* open_ref_dir (gchar* text_to_complete,
gchar** remaining_text,
CompletionState* cmpl_state);
-#if !defined(G_OS_WIN32) && !defined(G_HAVE_CYGWIN)
+#if !defined(G_OS_WIN32) && !defined(G_WITH_CYGWIN)
static gboolean check_dir (gchar *dir_name,
struct stat *result,
gboolean *stat_subdirs);
@@ -367,7 +367,7 @@ static GtkWindowClass *parent_class = NULL;
/* Saves errno when something cmpl does fails. */
static gint cmpl_errno;
-#ifdef G_HAVE_CYGWIN
+#ifdef G_WITH_CYGWIN
/*
* Take the path currently in the file selection
* entry field and translate as necessary from
@@ -743,7 +743,7 @@ gtk_file_selection_get_filename (GtkFileSelection *filesel)
g_return_val_if_fail (filesel != NULL, nothing);
g_return_val_if_fail (GTK_IS_FILE_SELECTION (filesel), nothing);
-#ifdef G_HAVE_CYGWIN
+#ifdef G_WITH_CYGWIN
translate_win32_path(filesel);
#endif
text = gtk_entry_get_text (GTK_ENTRY (filesel->selection_entry));
@@ -1011,7 +1011,7 @@ gtk_file_selection_delete_file (GtkWidget *widget, gpointer data)
if (fs->fileop_dialog)
return;
-#ifdef G_HAVE_CYGWIN
+#ifdef G_WITH_CYGWIN
translate_win32_path(fs);
#endif
@@ -1200,7 +1200,7 @@ gtk_file_selection_key_press (GtkWidget *widget,
if (event->keyval == GDK_Tab)
{
fs = GTK_FILE_SELECTION (user_data);
-#ifdef G_HAVE_CYGWIN
+#ifdef G_WITH_CYGWIN
translate_win32_path(fs);
#endif
text = gtk_entry_get_text (GTK_ENTRY (fs->selection_entry));
@@ -1291,7 +1291,7 @@ gtk_file_selection_update_history_menu (GtkFileSelection *fs,
/* another small hack to catch the full path */
if (i != dir_len)
current_dir[i + 1] = '\0';
-#ifdef G_HAVE_CYGWIN
+#ifdef G_WITH_CYGWIN
if (!strcmp(current_dir, "//"))
continue;
#endif
@@ -1343,7 +1343,7 @@ gtk_file_selection_file_button (GtkWidget *widget,
gtk_clist_get_text (GTK_CLIST (fs->file_list), row, 0, &temp);
filename = g_strdup (temp);
-#ifdef G_HAVE_CYGWIN
+#ifdef G_WITH_CYGWIN
/* Check to see if the selection was a drive selector */
if (isalpha(filename[0]) && (filename[1] == ':')) {
/* It is... map it to a CYGWIN32 drive */
@@ -1353,7 +1353,7 @@ gtk_file_selection_file_button (GtkWidget *widget,
g_free(filename);
filename = g_strdup(temp_filename);
}
-#endif /* G_HAVE_CYGWIN */
+#endif /* G_WITH_CYGWIN */
if (filename)
{
@@ -1414,7 +1414,7 @@ gtk_file_selection_dir_button (GtkWidget *widget,
}
}
-#if defined(G_OS_WIN32) || defined(G_HAVE_CYGWIN)
+#if defined(G_OS_WIN32) || defined(G_WITH_CYGWIN)
static void
win32_gtk_add_drives_to_dir_list(GtkWidget *the_dir_list)
@@ -1554,7 +1554,7 @@ gtk_file_selection_populate (GtkFileSelection *fs,
poss = cmpl_next_completion (cmpl_state);
}
-#if defined(G_OS_WIN32) || defined(G_HAVE_CYGWIN)
+#if defined(G_OS_WIN32) || defined(G_WITH_CYGWIN)
/* For Windows, add drives as potential selections */
win32_gtk_add_drives_to_dir_list (fs->dir_list);
#endif
@@ -1977,7 +1977,7 @@ open_ref_dir(gchar* text_to_complete,
first_slash = strchr(text_to_complete, G_DIR_SEPARATOR);
-#ifdef G_HAVE_CYGWIN
+#ifdef G_WITH_CYGWIN
if (text_to_complete[0] == '/' && text_to_complete[1] == '/')
{
char root_dir[5];
@@ -2230,7 +2230,7 @@ open_new_dir(gchar* dir_name, struct stat* sbuf, gboolean stat_subdirs)
return sent;
}
-#if !defined(G_OS_WIN32) && !defined(G_HAVE_CYGWIN)
+#if !defined(G_OS_WIN32) && !defined(G_WITH_CYGWIN)
static gboolean
check_dir(gchar *dir_name, struct stat *result, gboolean *stat_subdirs)
@@ -2296,7 +2296,7 @@ open_dir(gchar* dir_name, CompletionState* cmpl_state)
CompletionDirSent *sent;
GList* cdsl;
-#if !defined(G_OS_WIN32) && !defined(G_HAVE_CYGWIN)
+#if !defined(G_OS_WIN32) && !defined(G_WITH_CYGWIN)
if (!check_dir (dir_name, &sbuf, &stat_subdirs))
return NULL;
@@ -2586,7 +2586,7 @@ attempt_homedir_completion(gchar* text_to_complete,
#endif
-#if defined(G_OS_WIN32) || defined(G_HAVE_CYGWIN)
+#if defined(G_OS_WIN32) || defined(G_WITH_CYGWIN)
#define FOLD(c) (tolower(c))
#else
#define FOLD(c) (c)
@@ -2960,7 +2960,7 @@ compare_user_dir(const void* a, const void* b)
static gint
compare_cmpl_dir(const void* a, const void* b)
{
-#if !defined(G_OS_WIN32) && !defined(G_HAVE_CYGWIN)
+#if !defined(G_OS_WIN32) && !defined(G_WITH_CYGWIN)
return strcmp((((CompletionDirEntry*)a))->entry_name,
(((CompletionDirEntry*)b))->entry_name);
#else