+2004-06-22 Federico Mena Quintero <federico@ximian.com>
+
+ Fixes the GTK+ part of #142308:
+
+ * gtk/gtkfilesystemunix.c (gtk_file_system_unix_filename_to_path):
+ Use filename_to_path().
+ (gtk_file_system_unix_uri_to_path): Likewise.
+ (filename_to_path): Use remove_trailing_slash().
+
2004-06-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (gtk_text_view_class_init): Improve docs
+2004-06-22 Federico Mena Quintero <federico@ximian.com>
+
+ Fixes the GTK+ part of #142308:
+
+ * gtk/gtkfilesystemunix.c (gtk_file_system_unix_filename_to_path):
+ Use filename_to_path().
+ (gtk_file_system_unix_uri_to_path): Likewise.
+ (filename_to_path): Use remove_trailing_slash().
+
2004-06-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (gtk_text_view_class_init): Improve docs
+2004-06-22 Federico Mena Quintero <federico@ximian.com>
+
+ Fixes the GTK+ part of #142308:
+
+ * gtk/gtkfilesystemunix.c (gtk_file_system_unix_filename_to_path):
+ Use filename_to_path().
+ (gtk_file_system_unix_uri_to_path): Likewise.
+ (filename_to_path): Use remove_trailing_slash().
+
2004-06-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (gtk_text_view_class_init): Improve docs
+2004-06-22 Federico Mena Quintero <federico@ximian.com>
+
+ Fixes the GTK+ part of #142308:
+
+ * gtk/gtkfilesystemunix.c (gtk_file_system_unix_filename_to_path):
+ Use filename_to_path().
+ (gtk_file_system_unix_uri_to_path): Likewise.
+ (filename_to_path): Use remove_trailing_slash().
+
2004-06-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (gtk_text_view_class_init): Improve docs
gtk_file_system_unix_uri_to_path (GtkFileSystem *file_system,
const gchar *uri)
{
+ GtkFilePath *path;
gchar *filename = g_filename_from_uri (uri, NULL, NULL);
+
if (filename)
- return gtk_file_path_new_steal (filename);
+ {
+ path = filename_to_path (filename);
+ g_free (filename);
+ }
else
- return NULL;
+ path = NULL;
+
+ return path;
}
static GtkFilePath *
gtk_file_system_unix_filename_to_path (GtkFileSystem *file_system,
const gchar *filename)
{
- return gtk_file_path_new_dup (filename);
+ return filename_to_path (filename);
}
static const char *
static GtkFilePath *
filename_to_path (const char *filename)
{
- return gtk_file_path_new_dup (filename);
+ char *tmp;
+
+ tmp = remove_trailing_slash (filename);
+ return gtk_file_path_new_steal (tmp);
}
static gboolean