| 1 | #ifndef _GI_GIO_SIMPLE_ACTION_EXTRA_DEF_HPP_ |
| 2 | #define _GI_GIO_SIMPLE_ACTION_EXTRA_DEF_HPP_ |
| 3 | |
| 4 | namespace gi |
| 5 | { |
| 6 | namespace repository |
| 7 | { |
| 8 | namespace Gio |
| 9 | { |
| 10 | class SimpleAction; |
| 11 | |
| 12 | namespace base |
| 13 | { |
| 14 | class SimpleActionExtra : public GI_GIO_SIMPLEACTION_BASE |
| 15 | { |
| 16 | typedef GI_GIO_SIMPLEACTION_BASE super; |
| 17 | |
| 18 | public: |
| 19 | // clang-format off |
| 20 | |
| 21 | // add some signals that are missing due to missing parameter type annotation |
| 22 | // (at least in older Gio) |
| 23 | |
| 24 | gi::signal_proxy<void(Gio::SimpleAction, GLib::Variant)> signal_activate() |
| 25 | { return gi::signal_proxy<void(Gio::SimpleAction, GLib::Variant)>(*this, "activate"); } |
| 26 | |
| 27 | gi::signal_proxy<void(Gio::SimpleAction, GLib::Variant)> signal_change_state() |
| 28 | { return gi::signal_proxy<void(Gio::SimpleAction, GLib::Variant)>(*this, "change-state"); } |
| 29 | // clang-format on |
| 30 | }; // class |
| 31 | |
| 32 | #undef GI_GIO_SIMPLEACTION_BASE |
| 33 | #define GI_GIO_SIMPLEACTION_BASE base::SimpleActionExtra |
| 34 | |
| 35 | } // namespace base |
| 36 | |
| 37 | } // namespace Gio |
| 38 | |
| 39 | } // namespace repository |
| 40 | |
| 41 | } // namespace gi |
| 42 | |
| 43 | #endif |