]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkfilesystem.c
GtkLabelAccessible: Sanity check _get_text() input values
[~andy/gtk] / gtk / gtkfilesystem.c
index 05ab5a1ec25d44d652af7a4c12dd2485c5e025a6..2fdfa3df9dd448a1d14a08bb376e80c055e8a856 100644 (file)
@@ -1165,7 +1165,7 @@ get_pixbuf_from_gicon (GIcon      *icon,
     return NULL;
 
   pixbuf = gtk_icon_info_load_icon (icon_info, error);
-  gtk_icon_info_free (icon_info);
+  g_object_unref (icon_info);
 
   return pixbuf;
 }
@@ -1273,3 +1273,16 @@ _gtk_file_info_consider_as_directory (GFileInfo *info)
           type == G_FILE_TYPE_SHORTCUT);
 }
 
+gboolean
+_gtk_file_has_native_path (GFile *file)
+{
+  char *local_file_path;
+  gboolean has_native_path;
+
+  /* Don't use g_file_is_native(), as we want to support FUSE paths if available */
+  local_file_path = g_file_get_path (file);
+  has_native_path = (local_file_path != NULL);
+  g_free (local_file_path);
+
+  return has_native_path;
+}