summaryrefslogtreecommitdiff
path: root/gio/src/mount.ccg
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@src.gnome.org>2008-02-02 17:41:05 +0000
committerJonathon Jongsma <jjongsma@src.gnome.org>2008-02-02 17:41:05 +0000
commit88553b487c01ff7bb1645793361890f29b6db7d6 (patch)
tree6974a6f808f8665c5d5a42455d40796c903aaa9c /gio/src/mount.ccg
parent426f4be640703e9830d9790c228efe6b4eb5a049 (diff)
downloadglibmm-88553b487c01ff7bb1645793361890f29b6db7d6.tar.gz
add BufferedInputStream class
* gio/src/gio_vfuncs.defs: * gio/src/Makefile_list_of_hg.am_fragment: * gio/src/bufferedinputstream.ccg: * gio/src/bufferedinputstream.hg: add BufferedInputStream class * gio/giomm/slot_async.cc: * gio/giomm/slot_async.h: split out the SlotProxy_async_callback so it doesn't have to be implemented in every file * gio/src/drive.ccg: * gio/src/file.ccg: * gio/src/file.hg: * gio/src/fileenumerator.ccg: * gio/src/fileinputstream.ccg: * gio/src/fileoutputstream.ccg: * gio/src/inputstream.ccg: * gio/src/mount.ccg: * gio/src/outputstream.ccg: * gio/src/volume.ccg: use the common SlotProxy_async_callback function in all of these files * tools/m4/convert_gio.m4: add conversion for Cancellable * gio/giomm/Makefile.am: indenting changes svn path=/trunk/; revision=560
Diffstat (limited to 'gio/src/mount.ccg')
-rw-r--r--gio/src/mount.ccg28
1 files changed, 1 insertions, 27 deletions
diff --git a/gio/src/mount.ccg b/gio/src/mount.ccg
index e1ac7e59..845c69ca 100644
--- a/gio/src/mount.ccg
+++ b/gio/src/mount.ccg
@@ -20,33 +20,7 @@
#include <giomm/drive.h>
#include <giomm/volume.h>
#include <gio/gio.h>
-
-namespace
-{
-
-static void
-SignalProxy_async_callback(GObject*, GAsyncResult* res, void* data)
-{
- Gio::SlotAsyncReady* the_slot = static_cast<Gio::SlotAsyncReady*>(data);
-
- #ifdef GLIBMM_EXCEPTIONS_ENABLED
- try
- {
- #endif //GLIBMM_EXCEPTIONS_ENABLED
- Glib::RefPtr<Gio::AsyncResult> result = Glib::wrap(res, true /* take copy */);
- (*the_slot)(result);
- #ifdef GLIBMM_EXCEPTIONS_ENABLED
- }
- catch(...)
- {
- Glib::exception_handlers_invoke();
- }
- #endif //GLIBMM_EXCEPTIONS_ENABLED
-
- delete the_slot;
-}
-
-} //anonymous namespace
+#include "slot_async.h"
namespace Gio
{