summaryrefslogtreecommitdiff
path: root/gio/src/cancellable.ccg
diff options
context:
space:
mode:
authorMarko Anastasov <marko.anastasov@gmail.com>2007-12-28 13:18:50 +0000
committerMarko Anastasov <markoa@src.gnome.org>2007-12-28 13:18:50 +0000
commit1a4f133833a0e8340d8355e04b0ccddbe001a0ef (patch)
tree0d6b5cbebdc4cda73f957ec56b72ea83d293f473 /gio/src/cancellable.ccg
parentd8aaa79cecd3c032e78ce189c05cfd1f3ed2e817 (diff)
downloadglibmm-1a4f133833a0e8340d8355e04b0ccddbe001a0ef.tar.gz
Checked in sources from giomm. Build needs to be fixed to work with
2007-12-28 Marko Anastasov <marko.anastasov@gmail.com> * gio/*: * configure.in: * Makefile.am: * tools/m4/convert_glib.m4: Checked in sources from giomm. Build needs to be fixed to work with scripts in build_shared/. svn path=/trunk/; revision=482
Diffstat (limited to 'gio/src/cancellable.ccg')
-rw-r--r--gio/src/cancellable.ccg31
1 files changed, 31 insertions, 0 deletions
diff --git a/gio/src/cancellable.ccg b/gio/src/cancellable.ccg
new file mode 100644
index 00000000..153032eb
--- /dev/null
+++ b/gio/src/cancellable.ccg
@@ -0,0 +1,31 @@
+// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
+
+/* Copyright (C) 2007 The gtkmm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include <gio/gio.h>
+
+namespace Gio {
+
+// TODO: should we somehow shield from possible NULL with an exception?
+Glib::RefPtr<Cancellable>
+Cancellable::get_current()
+{
+ return Glib::wrap(g_cancellable_get_current());
+}
+
+} // namespace Gio