diff options
author | Jonathon Jongsma <jonathon@quotidian.org> | 2010-11-12 23:07:31 -0600 |
---|---|---|
committer | Jonathon Jongsma <jonathon@quotidian.org> | 2010-11-12 23:12:54 -0600 |
commit | 93179324198684926203b20b3bb2ecc8bb4bded2 (patch) | |
tree | e096e1fefce7cdc70b49465afb33def2bdc7d90c /gio/src/application.ccg | |
parent | 65564dceded03624380abefb40381f1626181b14 (diff) | |
download | glibmm-93179324198684926203b20b3bb2ecc8bb4bded2.tar.gz |
Miscellaneous Gio::Application fixes
- Add non-cancellable overload of register_application()
- return int value from run() correctly
- Fix protected constructor signature
- use _WRAP_CTOR and _WRAP_CREATE()
Diffstat (limited to 'gio/src/application.ccg')
-rw-r--r-- | gio/src/application.ccg | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gio/src/application.ccg b/gio/src/application.ccg index fb7a56fc..196738c8 100644 --- a/gio/src/application.ccg +++ b/gio/src/application.ccg @@ -41,4 +41,14 @@ void Application::open(const type_vec_files& files, const Glib::ustring& hint) delete[] files_array ; } +bool Application::register_application() +{ + GError* gerror = 0; + bool retvalue = g_application_register(gobj(), NULL, &(gerror)); + if(gerror) + ::Glib::Error::throw_exception(gerror); + + return retvalue; +} + } // namespace Gio |