diff options
Diffstat (limited to 'gio/src/application.hg')
-rw-r--r-- | gio/src/application.hg | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/gio/src/application.hg b/gio/src/application.hg index 48613dc2..b80ddac3 100644 --- a/gio/src/application.hg +++ b/gio/src/application.hg @@ -1,5 +1,3 @@ -// -*- 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 @@ -19,11 +17,6 @@ _CONFIGINCLUDE(giommconfig.h) -#m4 _PUSH(SECTION_CC_PRE_INCLUDES) -#undef G_DISABLE_DEPRECATED -#define GLIB_DISABLE_DEPRECATION_WARNINGS 1 -#m4 _POP() - #include <giomm/actiongroup.h> #include <giomm/actionmap.h> #include <giomm/applicationcommandline.h> @@ -162,6 +155,15 @@ public: _WRAP_METHOD(ApplicationFlags get_flags() const, g_application_get_flags) _WRAP_METHOD(void set_flags(ApplicationFlags flags), g_application_set_flags) + _WRAP_METHOD(std::string get_resource_base_path() const, g_application_get_resource_base_path, newin "2,44") + _WRAP_METHOD(void set_resource_base_path(const std::string& resource_path), g_application_set_resource_base_path, newin "2,44") + + /** Disable automatic resource loading functionality. + * See set_resource_base_path(). + * @newin{2,44} + */ + void unset_resource_base_path(); + _WRAP_METHOD(void set_action_group(const Glib::RefPtr<ActionGroup>& action_group), g_application_set_action_group, deprecated "Use the Gio::ActionMap interface instead.") @@ -343,21 +345,28 @@ public: _WRAP_METHOD(void mark_busy(), g_application_mark_busy) _WRAP_METHOD(void unmark_busy(), g_application_unmark_busy) + _WRAP_METHOD(void get_is_busy() const, g_application_get_is_busy) _WRAP_METHOD(void send_notification(const Glib::ustring& id{?}, const Glib::RefPtr<Notification>& notification), g_application_send_notification) _WRAP_METHOD(void withdraw_notification(const Glib::ustring& id), g_application_withdraw_notification) - _WRAP_PROPERTY("action-group", Glib::RefPtr<ActionGroup>) + _WRAP_PROPERTY("action-group", Glib::RefPtr<ActionGroup>, deprecated "Use the Gio::ActionMap interface instead.") _WRAP_PROPERTY("application-id", Glib::ustring) _WRAP_PROPERTY("flags", ApplicationFlags) _WRAP_PROPERTY("inactivity-timeout", guint) _WRAP_PROPERTY("is-registered", bool) _WRAP_PROPERTY("is-remote", bool) + _WRAP_PROPERTY("resource-base-path", bool, newin "2,44") + _WRAP_PROPERTY("is-busy", bool) //#m4 _CONVERSION(`const gchar*', `const Glib::ustring&', `Glib::ustring($3)') //#m4 _CONVERSION(`GVariant*', `const Glib::VariantBase&', `Glib::wrap($3, true)') _WRAP_SIGNAL(void startup(), "startup") + + //TODO: Remove no_default_handler when we can break ABI + _WRAP_SIGNAL(void shutdown(), "shutdown", no_default_handler, newin "2,46") + _WRAP_SIGNAL(void activate(), "activate") //We wrap the open signal without _WRAP_SIGNAL(), because we need to change its parameters. |