diff options
author | Murray Cumming <murrayc@murrayc.com> | 2011-07-12 12:24:52 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2011-07-12 12:24:52 +0200 |
commit | 5cac804b564dc65211ca6dff427bd8b7e2eb6a40 (patch) | |
tree | 7648cca33f939bea8322e2a12cab6da842481247 | |
parent | 16d82bbb79c5ed52fbdf7b889f05b22f178fd1d3 (diff) | |
download | glibmm-5cac804b564dc65211ca6dff427bd8b7e2eb6a40.tar.gz |
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.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | gio/src/appinfo.hg | 9 |
2 files changed, 17 insertions, 0 deletions
@@ -1,3 +1,11 @@ +2011-07-12 Murray Cumming <murrayc@murrayc.com> + + 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 <murrayc@murrayc.com> 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<AppLaunchContext>& 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<std::string>& 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<std::string>& uris, + const Glib::RefPtr<AppLaunchContext>& 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) |