Commit 4f771b6d authored by Manish Singh's avatar Manish Singh

s/G_HAVE_CYGWIN/G_WITH_CYGWIN/

-Yosh
parent bdcba966
Wed Oct 6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
* gtk/fnmatch.c
* gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
1999-10-05 Jesus Bravo Alvarez <jba@pobox.com> 1999-10-05 Jesus Bravo Alvarez <jba@pobox.com>
* configure.in (ALL_LINGUAS): Added Galician (gl) * configure.in (ALL_LINGUAS): Added Galician (gl)
......
Wed Oct 6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
* gtk/fnmatch.c
* gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
1999-10-05 Jesus Bravo Alvarez <jba@pobox.com> 1999-10-05 Jesus Bravo Alvarez <jba@pobox.com>
* configure.in (ALL_LINGUAS): Added Galician (gl) * configure.in (ALL_LINGUAS): Added Galician (gl)
......
Wed Oct 6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
* gtk/fnmatch.c
* gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
1999-10-05 Jesus Bravo Alvarez <jba@pobox.com> 1999-10-05 Jesus Bravo Alvarez <jba@pobox.com>
* configure.in (ALL_LINGUAS): Added Galician (gl) * configure.in (ALL_LINGUAS): Added Galician (gl)
......
Wed Oct 6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
* gtk/fnmatch.c
* gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
1999-10-05 Jesus Bravo Alvarez <jba@pobox.com> 1999-10-05 Jesus Bravo Alvarez <jba@pobox.com>
* configure.in (ALL_LINGUAS): Added Galician (gl) * configure.in (ALL_LINGUAS): Added Galician (gl)
......
Wed Oct 6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
* gtk/fnmatch.c
* gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
1999-10-05 Jesus Bravo Alvarez <jba@pobox.com> 1999-10-05 Jesus Bravo Alvarez <jba@pobox.com>
* configure.in (ALL_LINGUAS): Added Galician (gl) * configure.in (ALL_LINGUAS): Added Galician (gl)
......
Wed Oct 6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
* gtk/fnmatch.c
* gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
1999-10-05 Jesus Bravo Alvarez <jba@pobox.com> 1999-10-05 Jesus Bravo Alvarez <jba@pobox.com>
* configure.in (ALL_LINGUAS): Added Galician (gl) * configure.in (ALL_LINGUAS): Added Galician (gl)
......
Wed Oct 6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
* gtk/fnmatch.c
* gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
1999-10-05 Jesus Bravo Alvarez <jba@pobox.com> 1999-10-05 Jesus Bravo Alvarez <jba@pobox.com>
* configure.in (ALL_LINGUAS): Added Galician (gl) * configure.in (ALL_LINGUAS): Added Galician (gl)
......
...@@ -67,7 +67,7 @@ fnmatch (pattern, string, flags) ...@@ -67,7 +67,7 @@ fnmatch (pattern, string, flags)
register char c; register char c;
/* Note that this evalutes C many times. */ /* Note that this evalutes C many times. */
#if !defined(G_OS_WIN32) && !defined(G_HAVE_CYGWIN) #if !defined(G_OS_WIN32) && !defined(G_WITH_CYGWIN)
#define FOLD(c) ((flags & FNM_CASEFOLD) && isupper (c) ? tolower (c) : (c)) #define FOLD(c) ((flags & FNM_CASEFOLD) && isupper (c) ? tolower (c) : (c))
#else #else
#define FOLD(c) (tolower (c)) #define FOLD(c) (tolower (c))
......
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
#include "gtkdialog.h" #include "gtkdialog.h"
#include "gtkintl.h" #include "gtkintl.h"
#if defined(G_OS_WIN32) || defined(G_HAVE_CYGWIN) #if defined(G_OS_WIN32) || defined(G_WITH_CYGWIN)
#define STRICT #define STRICT
#include <windows.h> #include <windows.h>
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
#endif /* G_OS_WIN32 */ #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_WIDTH 180
#define DIR_LIST_HEIGHT 180 #define DIR_LIST_HEIGHT 180
...@@ -284,7 +284,7 @@ static gchar* cmpl_completion_fullname (gchar*, CompletionState* cm ...@@ -284,7 +284,7 @@ static gchar* cmpl_completion_fullname (gchar*, CompletionState* cm
static CompletionDir* open_ref_dir (gchar* text_to_complete, static CompletionDir* open_ref_dir (gchar* text_to_complete,
gchar** remaining_text, gchar** remaining_text,
CompletionState* cmpl_state); 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, static gboolean check_dir (gchar *dir_name,
struct stat *result, struct stat *result,
gboolean *stat_subdirs); gboolean *stat_subdirs);
...@@ -367,7 +367,7 @@ static GtkWindowClass *parent_class = NULL; ...@@ -367,7 +367,7 @@ static GtkWindowClass *parent_class = NULL;
/* Saves errno when something cmpl does fails. */ /* Saves errno when something cmpl does fails. */
static gint cmpl_errno; static gint cmpl_errno;
#ifdef G_HAVE_CYGWIN #ifdef G_WITH_CYGWIN
/* /*
* Take the path currently in the file selection * Take the path currently in the file selection
* entry field and translate as necessary from * entry field and translate as necessary from
...@@ -743,7 +743,7 @@ gtk_file_selection_get_filename (GtkFileSelection *filesel) ...@@ -743,7 +743,7 @@ gtk_file_selection_get_filename (GtkFileSelection *filesel)
g_return_val_if_fail (filesel != NULL, nothing); g_return_val_if_fail (filesel != NULL, nothing);
g_return_val_if_fail (GTK_IS_FILE_SELECTION (filesel), nothing); g_return_val_if_fail (GTK_IS_FILE_SELECTION (filesel), nothing);
#ifdef G_HAVE_CYGWIN #ifdef G_WITH_CYGWIN
translate_win32_path(filesel); translate_win32_path(filesel);
#endif #endif
text = gtk_entry_get_text (GTK_ENTRY (filesel->selection_entry)); text = gtk_entry_get_text (GTK_ENTRY (filesel->selection_entry));
...@@ -1011,7 +1011,7 @@ gtk_file_selection_delete_file (GtkWidget *widget, gpointer data) ...@@ -1011,7 +1011,7 @@ gtk_file_selection_delete_file (GtkWidget *widget, gpointer data)
if (fs->fileop_dialog) if (fs->fileop_dialog)
return; return;
#ifdef G_HAVE_CYGWIN #ifdef G_WITH_CYGWIN
translate_win32_path(fs); translate_win32_path(fs);
#endif #endif
...@@ -1200,7 +1200,7 @@ gtk_file_selection_key_press (GtkWidget *widget, ...@@ -1200,7 +1200,7 @@ gtk_file_selection_key_press (GtkWidget *widget,
if (event->keyval == GDK_Tab) if (event->keyval == GDK_Tab)
{ {
fs = GTK_FILE_SELECTION (user_data); fs = GTK_FILE_SELECTION (user_data);
#ifdef G_HAVE_CYGWIN #ifdef G_WITH_CYGWIN
translate_win32_path(fs); translate_win32_path(fs);
#endif #endif
text = gtk_entry_get_text (GTK_ENTRY (fs->selection_entry)); text = gtk_entry_get_text (GTK_ENTRY (fs->selection_entry));
...@@ -1291,7 +1291,7 @@ gtk_file_selection_update_history_menu (GtkFileSelection *fs, ...@@ -1291,7 +1291,7 @@ gtk_file_selection_update_history_menu (GtkFileSelection *fs,
/* another small hack to catch the full path */ /* another small hack to catch the full path */
if (i != dir_len) if (i != dir_len)
current_dir[i + 1] = '\0'; current_dir[i + 1] = '\0';
#ifdef G_HAVE_CYGWIN #ifdef G_WITH_CYGWIN
if (!strcmp(current_dir, "//")) if (!strcmp(current_dir, "//"))
continue; continue;
#endif #endif
...@@ -1343,7 +1343,7 @@ gtk_file_selection_file_button (GtkWidget *widget, ...@@ -1343,7 +1343,7 @@ gtk_file_selection_file_button (GtkWidget *widget,
gtk_clist_get_text (GTK_CLIST (fs->file_list), row, 0, &temp); gtk_clist_get_text (GTK_CLIST (fs->file_list), row, 0, &temp);
filename = g_strdup (temp); filename = g_strdup (temp);
#ifdef G_HAVE_CYGWIN #ifdef G_WITH_CYGWIN
/* Check to see if the selection was a drive selector */ /* Check to see if the selection was a drive selector */
if (isalpha(filename[0]) && (filename[1] == ':')) { if (isalpha(filename[0]) && (filename[1] == ':')) {
/* It is... map it to a CYGWIN32 drive */ /* It is... map it to a CYGWIN32 drive */
...@@ -1353,7 +1353,7 @@ gtk_file_selection_file_button (GtkWidget *widget, ...@@ -1353,7 +1353,7 @@ gtk_file_selection_file_button (GtkWidget *widget,
g_free(filename); g_free(filename);
filename = g_strdup(temp_filename); filename = g_strdup(temp_filename);
} }
#endif /* G_HAVE_CYGWIN */ #endif /* G_WITH_CYGWIN */
if (filename) if (filename)
{ {
...@@ -1414,7 +1414,7 @@ gtk_file_selection_dir_button (GtkWidget *widget, ...@@ -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 static void
win32_gtk_add_drives_to_dir_list(GtkWidget *the_dir_list) win32_gtk_add_drives_to_dir_list(GtkWidget *the_dir_list)
...@@ -1554,7 +1554,7 @@ gtk_file_selection_populate (GtkFileSelection *fs, ...@@ -1554,7 +1554,7 @@ gtk_file_selection_populate (GtkFileSelection *fs,
poss = cmpl_next_completion (cmpl_state); 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 */ /* For Windows, add drives as potential selections */
win32_gtk_add_drives_to_dir_list (fs->dir_list); win32_gtk_add_drives_to_dir_list (fs->dir_list);
#endif #endif
...@@ -1977,7 +1977,7 @@ open_ref_dir(gchar* text_to_complete, ...@@ -1977,7 +1977,7 @@ open_ref_dir(gchar* text_to_complete,
first_slash = strchr(text_to_complete, G_DIR_SEPARATOR); 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] == '/') if (text_to_complete[0] == '/' && text_to_complete[1] == '/')
{ {
char root_dir[5]; char root_dir[5];
...@@ -2230,7 +2230,7 @@ open_new_dir(gchar* dir_name, struct stat* sbuf, gboolean stat_subdirs) ...@@ -2230,7 +2230,7 @@ open_new_dir(gchar* dir_name, struct stat* sbuf, gboolean stat_subdirs)
return sent; return sent;
} }
#if !defined(G_OS_WIN32) && !defined(G_HAVE_CYGWIN) #if !defined(G_OS_WIN32) && !defined(G_WITH_CYGWIN)
static gboolean static gboolean
check_dir(gchar *dir_name, struct stat *result, gboolean *stat_subdirs) check_dir(gchar *dir_name, struct stat *result, gboolean *stat_subdirs)
...@@ -2296,7 +2296,7 @@ open_dir(gchar* dir_name, CompletionState* cmpl_state) ...@@ -2296,7 +2296,7 @@ open_dir(gchar* dir_name, CompletionState* cmpl_state)
CompletionDirSent *sent; CompletionDirSent *sent;
GList* cdsl; 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)) if (!check_dir (dir_name, &sbuf, &stat_subdirs))
return NULL; return NULL;
...@@ -2586,7 +2586,7 @@ attempt_homedir_completion(gchar* text_to_complete, ...@@ -2586,7 +2586,7 @@ attempt_homedir_completion(gchar* text_to_complete,
#endif #endif
#if defined(G_OS_WIN32) || defined(G_HAVE_CYGWIN) #if defined(G_OS_WIN32) || defined(G_WITH_CYGWIN)
#define FOLD(c) (tolower(c)) #define FOLD(c) (tolower(c))
#else #else
#define FOLD(c) (c) #define FOLD(c) (c)
...@@ -2960,7 +2960,7 @@ compare_user_dir(const void* a, const void* b) ...@@ -2960,7 +2960,7 @@ compare_user_dir(const void* a, const void* b)
static gint static gint
compare_cmpl_dir(const void* a, const void* b) 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, return strcmp((((CompletionDirEntry*)a))->entry_name,
(((CompletionDirEntry*)b))->entry_name); (((CompletionDirEntry*)b))->entry_name);
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment