Bug 566747 - URIs opened with firefox %u load as local files
authorAlexander Larsson <alexl@redhat.com>
Wed, 4 Feb 2009 08:01:42 +0000 (08:01 +0000)
committerAlexander Larsson <alexl@src.gnome.org>
Wed, 4 Feb 2009 08:01:42 +0000 (08:01 +0000)
2009-02-04  Alexander Larsson  <alexl@redhat.com>

Bug 566747 - URIs opened with firefox %u load as local files

* gdummyfile.c (g_dummy_file_get_path):
Dummy files are never used for local paths, so always return NULL
in get_path().

svn path=/trunk/; revision=7849

gio/ChangeLog
gio/gdummyfile.c

index 321f75a..8112ce2 100644 (file)
@@ -1,3 +1,11 @@
+2009-02-04  Alexander Larsson  <alexl@redhat.com>
+
+       Bug 566747 - URIs opened with firefox %u load as local files
+
+       * gdummyfile.c (g_dummy_file_get_path):
+       Dummy files are never used for local paths, so always return NULL
+       in get_path(). 
+
 2009-02-02  Matthias Clasen  <mclasen@redhat.com>
 
        * === Released 2.19.6 ===
index 6a5883f..1033b4e 100644 (file)
@@ -144,10 +144,6 @@ g_dummy_file_get_basename (GFile *file)
 static char *
 g_dummy_file_get_path (GFile *file)
 {
-  GDummyFile *dummy = G_DUMMY_FILE (file);
-
-  if (dummy->decoded_uri)
-    return g_strdup (dummy->decoded_uri->path);
   return NULL;
 }