diff options
author | Murray Cumming <murrayc@murrayc.com> | 2008-07-16 12:09:59 +0000 |
---|---|---|
committer | Murray Cumming <murrayc@src.gnome.org> | 2008-07-16 12:09:59 +0000 |
commit | 45534b8dea47ddde07922bdbf6157f84cc0a187b (patch) | |
tree | ebbdf7aab272390e58019ddf560cfac4cd820446 /gio/src/mount.ccg | |
parent | 1e8bdf5927d4e37d57dfff73031bfb0f07afb876 (diff) | |
download | glibmm-45534b8dea47ddde07922bdbf6157f84cc0a187b.tar.gz |
Added make_directory_with_parents(), query_file_type(), monitor().
2008-07-16 Murray Cumming <murrayc@murrayc.com>
* gio/src/file.ccg:
* gio/src/file.hg: Added make_directory_with_parents(),
query_file_type(), monitor().
* gio/src/fileenumerator.ccg:
* gio/src/fileenumerator.hg: Added get_container().
* gio/src/mount.hg: Added guess_content_type() and
guess_content_type_finish().
* gio/src/themedicon.hg: Added prepend_name().
* gio/src/volume.hg: Added get_activation_root().
* tools/m4/convert_gio.m4: Added a necessary conversion.
svn path=/trunk/; revision=688
Diffstat (limited to 'gio/src/mount.ccg')
-rw-r--r-- | gio/src/mount.ccg | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gio/src/mount.ccg b/gio/src/mount.ccg index 378c4586..d7940823 100644 --- a/gio/src/mount.ccg +++ b/gio/src/mount.ccg @@ -151,6 +151,43 @@ void Mount::eject(MountUnmountFlags flags) } +void Mount::guess_content_type(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, bool force_rescan) +{ + // Create a copy of the slot. + // A pointer to it will be passed through the callback's data parameter + // and deleted in the callback. + SlotAsyncReady* slot_copy = new SlotAsyncReady(slot); + + g_mount_guess_content_type(gobj(), + force_rescan, + cancellable->gobj(), + &SignalProxy_async_callback, + slot_copy); +} + +void Mount::guess_content_type(const SlotAsyncReady& slot, bool force_rescan) +{ + // Create a copy of the slot. + // A pointer to it will be passed through the callback's data parameter + // and deleted in the callback. + SlotAsyncReady* slot_copy = new SlotAsyncReady(slot); + + g_mount_guess_content_type(gobj(), + force_rescan, + NULL, + &SignalProxy_async_callback, + slot_copy); +} + +void Mount::guess_content_type(bool force_rescan) +{ + g_mount_guess_content_type(gobj(), + force_rescan, + NULL, + NULL, + NULL); +} + } // namespace Gio |