Patch to fix compile errors



When compiling gtk+ from HEAD I encontered some errors.

Patch attached.
Index: gtkfilechooserdefault.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkfilechooserdefault.c,v
retrieving revision 1.31
diff -u -p -r1.31 gtkfilechooserdefault.c
--- gtkfilechooserdefault.c	23 Oct 2003 05:10:47 -0000	1.31
+++ gtkfilechooserdefault.c	28 Oct 2003 11:45:47 -0000
@@ -1685,7 +1685,7 @@ gtk_file_chooser_default_remove_filter (
 
   filter_index = g_slist_index (impl->filters, filter);
 
-  if (index < 0)
+  if (filter_index < 0)
     {
       g_warning ("gtk_file_chooser_remove_filter() called on filter not in list\n");
       return;
Index: gtkfilesystem.h
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkfilesystem.h,v
retrieving revision 1.12
diff -u -p -r1.12 gtkfilesystem.h
--- gtkfilesystem.h	23 Oct 2003 04:22:30 -0000	1.12
+++ gtkfilesystem.h	28 Oct 2003 11:45:47 -0000
@@ -295,7 +295,7 @@ GtkFileInfo *gtk_file_folder_get_info   
 #else /* __GNUC__ */
 #define gtk_file_path_new_dup(str)     ((GtkFilePath *)g_strdup(str))
 #define gtk_file_path_new_steal(str)   ((GtkFilePath *)(str))
-#define gtk_file_path_get_string(path) ((const gchar *)(str))
+#define gtk_file_path_get_string(str) ((const gchar *)(str))
 #define gtk_file_path_free(path)       g_free (path)
 #endif/* __GNUC__ */
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]