summaryrefslogtreecommitdiff
path: root/gio/src/application.ccg
diff options
context:
space:
mode:
authorJonathon Jongsma <jonathon@quotidian.org>2010-11-12 23:07:31 -0600
committerJonathon Jongsma <jonathon@quotidian.org>2010-11-12 23:12:54 -0600
commit93179324198684926203b20b3bb2ecc8bb4bded2 (patch)
treee096e1fefce7cdc70b49465afb33def2bdc7d90c /gio/src/application.ccg
parent65564dceded03624380abefb40381f1626181b14 (diff)
downloadglibmm-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.ccg10
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