summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjellahlstedt@gmail.com>2018-03-20 20:16:20 +0100
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2018-03-20 20:16:20 +0100
commit07c1b97b4b8a712f5b1206e4cc2a70183a20b9aa (patch)
treef18af14888b565991524a72fbb78a9cd26bee532
parenta9fd913b509117da3f754eb72aaef6edab5f26ac (diff)
downloadglibmm-07c1b97b4b8a712f5b1206e4cc2a70183a20b9aa.tar.gz
Gio::AppInfo: Change some parameter names
-rw-r--r--gio/src/appinfo.ccg8
-rw-r--r--gio/src/appinfo.hg30
2 files changed, 19 insertions, 19 deletions
diff --git a/gio/src/appinfo.ccg b/gio/src/appinfo.ccg
index 35bec455..f2397908 100644
--- a/gio/src/appinfo.ccg
+++ b/gio/src/appinfo.ccg
@@ -47,14 +47,14 @@ AppInfo::create_duplicate() const
bool
AppInfo::launch(
- const Glib::RefPtr<Gio::File>& file, const Glib::RefPtr<AppLaunchContext>& launch_context)
+ const Glib::RefPtr<Gio::File>& file, const Glib::RefPtr<AppLaunchContext>& context)
{
std::vector<Glib::RefPtr<Gio::File>> vec = { file };
GError* gerror = nullptr;
const bool retvalue = g_app_info_launch(gobj(),
Glib::ListHandler<Glib::RefPtr<Gio::File>>::vector_to_list(vec).data(),
- Glib::unwrap(launch_context), &(gerror));
+ Glib::unwrap(context), &(gerror));
if (gerror)
::Glib::Error::throw_exception(gerror);
@@ -76,14 +76,14 @@ AppInfo::launch(const Glib::RefPtr<Gio::File>& file)
}
bool
-AppInfo::launch_uri(const std::string& uri, const Glib::RefPtr<AppLaunchContext>& launch_context)
+AppInfo::launch_uri(const std::string& uri, const Glib::RefPtr<AppLaunchContext>& context)
{
std::vector<std::string> vec = { uri };
GError* gerror = nullptr;
const bool retvalue =
g_app_info_launch_uris(gobj(), Glib::ListHandler<std::string>::vector_to_list(vec).data(),
- Glib::unwrap(launch_context), &(gerror));
+ Glib::unwrap(context), &(gerror));
if (gerror)
::Glib::Error::throw_exception(gerror);
diff --git a/gio/src/appinfo.hg b/gio/src/appinfo.hg
index 01d7bcd2..27dd2487 100644
--- a/gio/src/appinfo.hg
+++ b/gio/src/appinfo.hg
@@ -90,7 +90,7 @@ public:
#m4 _CONVERSION(`const std::vector< Glib::RefPtr<Gio::File> >&',`GList*',`Glib::ListHandler<Glib::RefPtr<Gio::File> >::vector_to_list($3).data ()')
/** Launches the application. This passes the @a file to the launched application
- * as an argument, using the optional @a launch_context to get information
+ * as an argument, using the optional @a context to get information
* about the details of the launcher (like what screen it is on).
* On error, an exception will be thrown accordingly.
*
@@ -110,14 +110,14 @@ public:
* @c GIO_LAUNCHED_DESKTOP_FILE, should it be inherited
* by further processes. The @c DISPLAY and
* @c DESKTOP_STARTUP_ID environment variables are also
- * set, based on information provided in @a launch_context.
+ * set, based on information provided in @a context.
* @param file A File object.
- * @param launch_context An AppLaunchContext.
+ * @param context An AppLaunchContext.
* @return <tt>true</tt> on successful launch, <tt>false</tt> otherwise.
*
* @newin{2,30}
*/
- bool launch(const Glib::RefPtr<Gio::File>& file, const Glib::RefPtr<AppLaunchContext>& launch_context);
+ bool launch(const Glib::RefPtr<Gio::File>& file, const Glib::RefPtr<AppLaunchContext>& context);
/** Launches the application. This passes the @a file to the launched application
* as an argument.
@@ -139,7 +139,7 @@ public:
* @c GIO_LAUNCHED_DESKTOP_FILE, should it be inherited
* by further processes. The @c DISPLAY and
* @c DESKTOP_STARTUP_ID environment variables are also
- * set, based on information provided in @a launch_context.
+ * set, based on information provided in @a context.
* @param file A File object.
* @return <tt>true</tt> on successful launch, <tt>false</tt> otherwise.
*
@@ -148,7 +148,7 @@ public:
bool launch(const Glib::RefPtr<Gio::File>& file);
_WRAP_METHOD(bool launch(const std::vector< Glib::RefPtr<Gio::File> >& files,
- const Glib::RefPtr<AppLaunchContext>& launch_context{?}),
+ const Glib::RefPtr<AppLaunchContext>& context{?}),
g_app_info_launch,
errthrow)
@@ -157,18 +157,18 @@ public:
#m4 _CONVERSION(`const Glib::ListHandle<std::string>&',`GList*',`$3.data()')
_WRAP_METHOD(bool launch_uris(const Glib::ListHandle<std::string>& uris,
- GAppLaunchContext* launch_context),
+ GAppLaunchContext* 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{?}),
+ const Glib::RefPtr<AppLaunchContext>& context{?}),
g_app_info_launch_uris,
errthrow)
/** Launches the application. This passes the @a uri to the launched application
- * as an arguments, using the optional @a launch_context to get information
+ * as an arguments, using the optional @a context to get information
* about the details of the launcher (like what screen it is on).
* On error, an exception will be thrown accordingly.
*
@@ -176,12 +176,12 @@ public:
* can fail to start if it runs into problems during startup. There is
* no way to detect this.
* @param uris A URIs to launch.
- * @param launch_context An AppLaunchContext.
+ * @param context An AppLaunchContext.
* @return <tt>true</tt> on successful launch, <tt>false</tt> otherwise.
*
* @newin{2,30}
*/
- bool launch_uri(const std::string& uris, const Glib::RefPtr<AppLaunchContext>& launch_context);
+ bool launch_uri(const std::string& uris, const Glib::RefPtr<AppLaunchContext>& context);
/** A launch_uri() convenience overload.
*
@@ -220,9 +220,9 @@ public:
_WRAP_METHOD(static Glib::RefPtr<AppInfo> get_default_for_type(const std::string& content_type, bool must_support_uris = true), g_app_info_get_default_for_type)
_WRAP_METHOD(static Glib::RefPtr<AppInfo> get_default_for_uri_scheme(const std::string& uri_scheme), g_app_info_get_default_for_uri_scheme)
_WRAP_METHOD(static void reset_type_associations(const std::string& content_type), g_app_info_reset_type_associations)
- _WRAP_METHOD(static bool launch_default_for_uri(const std::string& uri, const Glib::RefPtr<AppLaunchContext>& launch_context{?}), g_app_info_launch_default_for_uri, errthrow)
+ _WRAP_METHOD(static bool launch_default_for_uri(const std::string& uri, const Glib::RefPtr<AppLaunchContext>& context{?}), g_app_info_launch_default_for_uri, errthrow)
- _WRAP_METHOD(static void launch_default_for_uri_async(const std::string& uri, const Glib::RefPtr<AppLaunchContext>& launch_context{.?},
+ _WRAP_METHOD(static void launch_default_for_uri_async(const std::string& uri, const Glib::RefPtr<AppLaunchContext>& context{.?},
const SlotAsyncReady& slot{callback?}, const Glib::RefPtr<Cancellable>& cancellable{.?}), g_app_info_launch_default_for_uri_async, slot_name slot, slot_callback SignalProxy_async_callback)
_IGNORE(g_app_info_launch_default_for_uri_async)
_WRAP_METHOD(static bool launch_default_for_uri_finish(const Glib::RefPtr<AsyncResult>& result), g_app_info_launch_default_for_uri_finish, errthrow)
@@ -237,10 +237,10 @@ protected:
//_WRAP_VFUNC(Glib::RefPtr<Icon> get_icon() const, "get_icon")
//#m4 _CONVERSION(`const Glib::ListHandle<std::string>&',`GList*',`$3.data()')
//#m4 _CONVERSION(`GList*',`const Glib::ListHandle<std::string>&',`Glib::ListHandle<std::string>($3, Glib::OWNERSHIP_NONE)')
- //_WRAP_VFUNC(bool launch(const std::vector<Gio::File>& filenames, const Glib::RefPtr<AppLaunchContext>& launch_context, GError** error), "launch")
+ //_WRAP_VFUNC(bool launch(const std::vector<Gio::File>& filenames, const Glib::RefPtr<AppLaunchContext>& context, GError** error), "launch")
//_WRAP_VFUNC(bool supports_uris() const, "supports_uris")
//_WRAP_VFUNC(bool supports_files() const, "supports_files")
- //_WRAP_VFUNC(bool launch_uris(const Glib::ListHandle<std::string>& uris, const Glib::RefPtr<AppLaunchContext>& launch_context, GError** error), "launch_uris")
+ //_WRAP_VFUNC(bool launch_uris(const Glib::ListHandle<std::string>& uris, const Glib::RefPtr<AppLaunchContext>& context, GError** error), "launch_uris")
//_WRAP_VFUNC(bool should_show() const, "should_show")
//_WRAP_VFUNC(bool set_as_default_for_type(const std::string& content_type, GError** error), "set_as_default_for_type")
//_WRAP_VFUNC(bool set_as_default_for_extension(const std::string& extension, GError** error), "set_as_default_for_extension")