[Xfce4-commits] <thunar:master> Add macro thunar_file_has_uri_scheme() using g_file_has_uri_scheme().

Jannis Pohlmann noreply at xfce.org
Thu Oct 8 16:50:01 CEST 2009


Updating branch refs/heads/master
         to 767a44d17636b11caf73a8c8fecc30270fff59d5 (commit)
       from 4e5231e8d7bb627ee85fe3cfaaa4e27137b3f073 (commit)

commit 767a44d17636b11caf73a8c8fecc30270fff59d5
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Thu Oct 8 16:43:38 2009 +0200

    Add macro thunar_file_has_uri_scheme() using g_file_has_uri_scheme().

 thunar/thunar-file.h |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/thunar/thunar-file.h b/thunar/thunar-file.h
index 4b9ed80..a353671 100644
--- a/thunar/thunar-file.h
+++ b/thunar/thunar-file.h
@@ -321,6 +321,17 @@ gboolean         thunar_file_is_desktop              (const ThunarFile *file);
 #define thunar_file_dup_uri(file) (g_file_get_uri (THUNAR_FILE ((file))->gfile))
 
 /**
+ * thunar_file_has_uri_scheme:
+ * @file       : a #ThunarFile instance.
+ * @uri_scheme : a URI scheme string.
+ *
+ * Checks whether the URI scheme of the file matches @uri_scheme.
+ *
+ * Return value: TRUE, if the schemes match, FALSE otherwise.
+ **/
+#define thunar_file_has_uri_scheme(file, uri_scheme) (g_file_has_uri_scheme (THUNAR_FILE ((file))->gfile, (uri_scheme)))
+
+/**
  * thunar_file_changed:
  * @file : a #ThunarFile instance.
  *



More information about the Xfce4-commits mailing list