From 86defceaa77e9ecd0e72d1a2c064b830c7933208 Mon Sep 17 00:00:00 2001 From: Murray Cumming Date: Sat, 15 Sep 2012 14:47:43 +0200 Subject: AppLaunchContext: Add setenv(), unsetenv() and get_environment(). * gio/src/applaunchcontext.hg: Wrap these C functions. --- ChangeLog | 6 ++++++ gio/src/applaunchcontext.hg | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index ac9d8418..93daeef4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-09-15 Murray Cumming + + AppLaunchContext: Add setenv(), unsetenv() and get_environment(). + + * gio/src/applaunchcontext.hg: Wrap these C functions. + 2012-09-12 Kjell Ahlstedt Use std::time_t instead of ::time_t. diff --git a/gio/src/applaunchcontext.hg b/gio/src/applaunchcontext.hg index c446ffc3..1254977a 100644 --- a/gio/src/applaunchcontext.hg +++ b/gio/src/applaunchcontext.hg @@ -49,6 +49,12 @@ protected: public: _WRAP_CREATE() + _WRAP_METHOD(void setenv(const Glib::ustring& variable, const Glib::ustring& value), g_app_launch_context_setenv) + _WRAP_METHOD(void unsetenv(const Glib::ustring& variable), g_app_launch_context_unsetenv) + +#m4 _CONVERSION(`char**',`std::vector',`Glib::ArrayHandler::array_to_vector($3, Glib::OWNERSHIP_DEEP)') + _WRAP_METHOD(std::vector get_environment() const, g_app_launch_context_get_environment) + #m4 _CONVERSION(`const Glib::ListHandle&',`GList*',`$3.data()') _WRAP_METHOD(std::string get_display(const Glib::RefPtr& info, const Glib::ListHandle< Glib::RefPtr >& files), g_app_launch_context_get_display) -- cgit v1.2.1