[glibmm] File: Added has_parent() and supports_thread_contexts().
- From: Murray Cumming <murrayc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glibmm] File: Added has_parent() and supports_thread_contexts().
- Date: Fri, 29 Jan 2010 10:48:38 +0000 (UTC)
commit 6c48bee7dc03671e5e88e8060f68240cfb68fc6f
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Jan 29 11:48:32 2010 +0100
File: Added has_parent() and supports_thread_contexts().
* gio/src/file.[hg|ccg]: Added has_parent(), supports_thread_contexts().
ChangeLog | 6 ++++++
gio/src/file.ccg | 6 ++++++
gio/src/file.hg | 12 ++++++++++++
3 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 07f8972..315c121 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-01-29 Murray Cumming <murrayc murrayc com>
+
+ File: Added has_parent() and supports_thread_contexts().
+
+ * gio/src/file.[hg|ccg]: Added has_parent(), supports_thread_contexts().
+
2010-01-28 Murray Cumming <murrayc murrayc com>
File: Added start_mountable(), stop_mountable(), poll_mountable().
diff --git a/gio/src/file.ccg b/gio/src/file.ccg
index 35fac1b..87320af 100644
--- a/gio/src/file.ccg
+++ b/gio/src/file.ccg
@@ -2574,4 +2574,10 @@ bool File::load_partial_contents_finish(const Glib::RefPtr<AsyncResult>& result,
return retvalue;
}
+bool File::has_parent() const
+{
+ return g_file_has_parent(const_cast<GFile*>(gobj()), 0);
+}
+
+
} // namespace Gio
diff --git a/gio/src/file.hg b/gio/src/file.hg
index 74eba53..50275f0 100644
--- a/gio/src/file.hg
+++ b/gio/src/file.hg
@@ -156,6 +156,16 @@ public:
_WRAP_METHOD(Glib::RefPtr<File> get_parent() const,
g_file_get_parent)
+ _WRAP_METHOD(bool has_parent(const Glib::RefPtr<File>& parent) const,
+ g_file_has_parent)
+
+ /** Checks if the file has any parent at all.
+ * @result true if the file is a child of any parent.
+ *
+ * @newin2p24
+ */
+ bool has_parent() const;
+
_WRAP_METHOD(Glib::RefPtr<File> get_child(const std::string& name) const,
g_file_get_child)
@@ -2589,6 +2599,8 @@ public:
#endif //GLIBMM_EXCEPTIONS_ENABLED
_IGNORE(g_file_replace_contents_finish)
+ _WRAP_METHOD(bool supports_thread_contexts() const, g_file_supports_thread_contexts)
+
// *** vfuncs ***
//_WRAP_VFUNC(Glib::RefPtr<File> dup() const, "dup")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]