summaryrefslogtreecommitdiff
path: root/gio/src/fileinputstream.ccg
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2008-01-09 22:24:51 +0000
committerMurray Cumming <murrayc@src.gnome.org>2008-01-09 22:24:51 +0000
commite6f01458c5acbd4f4388680b0f0046a2d96742e6 (patch)
treeac5b685fe5246d11d1c65a12383f9691ee43b54d /gio/src/fileinputstream.ccg
parenta1a97473c7760cdcce4dfb4a0b1d666090211fe1 (diff)
downloadglibmm-e6f01458c5acbd4f4388680b0f0046a2d96742e6.tar.gz
Added this, though no methods or vfuncs are wrapped yet.
2008-01-09 Murray Cumming <murrayc@murrayc.com> * gio/src/Makefile_list_of_hg.am_fragment: * gio/src/loadableicon.ccg: * gio/src/loadableicon.hg: Added this, though no methods or vfuncs are wrapped yet. * tools/m4/convert_glib.m4: * gio/src/fileicon.hg: * gio/src/fileinfo.hg: Derive from LoadableIcon and implement it. set_modification_time(): Take a const TimeVal. * gio/src/fileinputstream.ccg: * gio/src/fileinputstream.hg: Added documentation and a version of seek() without the cancellable parameter. * gio/src/gio_docs.xml: Generated from docextract_to_xml.py so we get documentation for methods created by _WRAP_METHOD(). svn path=/trunk/; revision=494
Diffstat (limited to 'gio/src/fileinputstream.ccg')
-rw-r--r--gio/src/fileinputstream.ccg21
1 files changed, 21 insertions, 0 deletions
diff --git a/gio/src/fileinputstream.ccg b/gio/src/fileinputstream.ccg
index 8d65efa1..2e8fea7f 100644
--- a/gio/src/fileinputstream.ccg
+++ b/gio/src/fileinputstream.ccg
@@ -68,4 +68,25 @@ FileInputStream::query_info_async(const std::string& attributes,
slot_copy);
}
+#ifdef GLIBMM_EXCEPTIONS_ENABLED
+bool FileInputStream::seek(goffset offset, Glib::SeekType type)
+#else
+bool FileInputStream::seek(goffset offset, Glib::SeekType type, std::auto_ptr<Glib::Error>& error)
+#endif //GLIBMM_EXCEPTIONS_ENABLED
+{
+ GError* gerror = 0;
+ bool retvalue = g_file_input_stream_seek(gobj(), offset, ((GSeekType)(type)), NULL, &(gerror));
+#ifdef GLIBMM_EXCEPTIONS_ENABLED
+ if(gerror)
+ ::Glib::Error::throw_exception(gerror);
+#else
+ if(gerror)
+ error = ::Glib::Error::throw_exception(gerror);
+#endif //GLIBMM_EXCEPTIONS_ENABLED
+
+ return retvalue;
+
+}
+
+
} // namespace Gio