[glibmm] AppInfo::launch_uris(): Corrected (with deprecation) and add overload.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] AppInfo::launch_uris(): Corrected (with deprecation) and add overload.
- Date: Tue, 12 Jul 2011 10:25:02 +0000 (UTC)
commit 5cac804b564dc65211ca6dff427bd8b7e2eb6a40
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Jul 12 12:24:52 2011 +0200
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(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index cf0e94c..3e2bc2f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 9ec3033..8d383ab 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]