diff options
author | Murray Cumming <murrayc@murrayc.com> | 2012-09-15 14:47:43 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2012-09-15 14:47:43 +0200 |
commit | 86defceaa77e9ecd0e72d1a2c064b830c7933208 (patch) | |
tree | 8eb3c034a79f04c352f65930bde25232eda11e2d | |
parent | ee4c519f22506c2e972ce4374f16c43dbb9c7528 (diff) | |
download | glibmm-86defceaa77e9ecd0e72d1a2c064b830c7933208.tar.gz |
AppLaunchContext: Add setenv(), unsetenv() and get_environment().
* gio/src/applaunchcontext.hg: Wrap these C functions.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | gio/src/applaunchcontext.hg | 6 |
2 files changed, 12 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2012-09-15 Murray Cumming <murrayc@murrayc.com> + + AppLaunchContext: Add setenv(), unsetenv() and get_environment(). + + * gio/src/applaunchcontext.hg: Wrap these C functions. + 2012-09-12 Kjell Ahlstedt <kjell.ahlstedt@bredband.net> 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::ustring>',`Glib::ArrayHandler<Glib::ustring>::array_to_vector($3, Glib::OWNERSHIP_DEEP)') + _WRAP_METHOD(std::vector<Glib::ustring> get_environment() const, g_app_launch_context_get_environment) + #m4 _CONVERSION(`const Glib::ListHandle<std::string>&',`GList*',`$3.data()') _WRAP_METHOD(std::string get_display(const Glib::RefPtr<AppInfo>& info, const Glib::ListHandle< Glib::RefPtr<Gio::File> >& files), g_app_launch_context_get_display) |