diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-04-28 14:01:30 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-04-28 14:01:30 +0200 |
| commit | 29eb802f09da07421099238eceaee9e3b1d61ff2 (patch) | |
| tree | d07784be13475237d58f65033959c1e27e6245c0 /adw/src/helpers/async_callback.cpp | |
| parent | dff2f80ddc8f742b8181409d6feeca33e856112e (diff) | |
| download | turns-29eb802f09da07421099238eceaee9e3b1d61ff2.tar.xz turns-29eb802f09da07421099238eceaee9e3b1d61ff2.zip | |
adw: extract libadwaitamm
Diffstat (limited to 'adw/src/helpers/async_callback.cpp')
| -rw-r--r-- | adw/src/helpers/async_callback.cpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/adw/src/helpers/async_callback.cpp b/adw/src/helpers/async_callback.cpp deleted file mode 100644 index f8a8b27..0000000 --- a/adw/src/helpers/async_callback.cpp +++ /dev/null @@ -1,34 +0,0 @@ -/** - * @author Felix Morgner (felix.morgner@gmail.com) - * @copyright Copyright (c) 2025 - * SPDX-License-Identifier: LGPL-2.1-or-later - */ - -#include "adwaitamm/helpers/async_callback.hpp" - -#include <glibmm/exceptionhandler.h> -#include <glibmm/object.h> - -#include <giomm/asyncresult.h> - -#include <memory> - -namespace Adwaita::helpers -{ - - auto async_callback(GObject *, GAsyncResult * result, void * data) noexcept -> void - { - auto slot = std::unique_ptr<Gio::SlotAsyncReady>(static_cast<Gio::SlotAsyncReady *>(data)); - - try - { - auto actual_result = Glib::wrap(result, true); - (*slot)(actual_result); - } - catch (...) - { - Glib::exception_handlers_invoke(); - } - } - -} // namespace Adwaita::helpers
\ No newline at end of file |
