From 5cac804b564dc65211ca6dff427bd8b7e2eb6a40 Mon Sep 17 00:00:00 2001 From: Murray Cumming Date: Tue, 12 Jul 2011 12:24:52 +0200 Subject: AppInfo::launch_uris(): Corrected (with deprecation) and add overload. * gio/src/appinfo.[hg|ccg]: Deprecate the existing method and add one that takes a C++ AppLaunchContext instead of a GAppLaunchContext*. Also add an overload with no AppLaunchContext, using the new {?} syntax. --- ChangeLog | 8 ++++++++ gio/src/appinfo.hg | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/ChangeLog b/ChangeLog index cf0e94cf..3e2bc2fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-07-12 Murray Cumming + + AppInfo::launch_uris(): Corrected (with deprecation) and add overload. + + * gio/src/appinfo.[hg|ccg]: Deprecate the existing method and add one that + takes a C++ AppLaunchContext instead of a GAppLaunchContext*. + Also add an overload with no AppLaunchContext, using the new {?} syntax. + 2.29.10: 2011-06-29 Murray Cumming diff --git a/gio/src/appinfo.hg b/gio/src/appinfo.hg index 9ec30337..8d383ab1 100644 --- a/gio/src/appinfo.hg +++ b/gio/src/appinfo.hg @@ -103,12 +103,21 @@ public: const Glib::RefPtr& launch_context), g_app_info_launch, errthrow) + _WRAP_METHOD(bool supports_uris() const, g_app_info_supports_uris) _WRAP_METHOD(bool supports_files() const, g_app_info_supports_files) + _WRAP_METHOD(bool launch_uris(const Glib::ListHandle& uris, GAppLaunchContext* launch_context), g_app_info_launch_uris, + errthrow, deprecated "Use the method that takes an AppLaunchContext") + + //TODO: I think we use Glib::ustring elsewhere for URIs: + _WRAP_METHOD(bool launch_uris(const Glib::ListHandle& uris, + const Glib::RefPtr& launch_context{?}), + g_app_info_launch_uris, errthrow) + _WRAP_METHOD(bool should_show() const, g_app_info_should_show) // FIXME: use better terminology than delete/do_delete _WRAP_METHOD(bool can_delete() const, g_app_info_can_delete) -- cgit v1.2.1