[glibmm] Gio::Application: Allow the application ID to be empty.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Gio::Application: Allow the application ID to be empty.
- Date: Sun, 27 May 2012 09:31:33 +0000 (UTC)
commit b6ee18e086ba52a674ecb4c22dc51d9e9ea1d932
Author: Murray Cumming <murrayc murrayc com>
Date: Sun May 27 11:31:27 2012 +0200
Gio::Application: Allow the application ID to be empty.
* configure.ac: Depend on the latest unstable glib release (2.33.1).
* gio/src/application.hg: constructor, create(): Add a default
(empty string) parameter for the application ID, because this may
now be empty if you do not need the full GApplication functionality.
ChangeLog | 9 +++++++++
configure.ac | 2 +-
gio/src/application.hg | 16 ++++++++++++++--
3 files changed, 24 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5b87399..c357ddd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2012-05-27 Murray Cumming <murrayc murrayc com>
+
+ Gio::Application: Allow the application ID to be empty.
+
+ * configure.ac: Depend on the latest unstable glib release (2.33.1).
+ * gio/src/application.hg: constructor, create(): Add a default
+ (empty string) parameter for the application ID, because this may
+ now be empty if you do not need the full GApplication functionality.
+
2012-04-21 Kalev Lember <kalevlember gmail com>
Gio: Start wrapping GResource.
diff --git a/configure.ac b/configure.ac
index b462cc3..2a15726 100644
--- a/configure.ac
+++ b/configure.ac
@@ -60,7 +60,7 @@ AS_IF([test "x$enable_static" = xyes],
AC_DEFINE([GIOMM_STATIC_LIB], [1], [Define if giomm is built as a static library])
])
-glibreq='2.0 >= 2.32.0'
+glibreq='2.0 >= 2.33.1'
GLIBMM_MODULES="sigc++-2.0 >= 2.2.10 glib-$glibreq gobject-$glibreq gmodule-$glibreq"
GIOMM_MODULES="$GLIBMM_MODULES gio-$glibreq"
diff --git a/gio/src/application.hg b/gio/src/application.hg
index edaf38f..70db6b6 100644
--- a/gio/src/application.hg
+++ b/gio/src/application.hg
@@ -90,11 +90,23 @@ class Application : public Glib::Object, public ActionGroup, public ActionMap
_IMPLEMENTS_INTERFACE(ActionMap)
protected:
- explicit Application(const Glib::ustring& application_id, ApplicationFlags flags = APPLICATION_FLAGS_NONE);
+ /** Constructs an application instance.
+ * If no application ID is given then some features (most notably application uniqueness) will be disabled.
+ *
+ * @aparam application_id The application ID.
+ * @param flags The application flags.
+ */
+ explicit Application(const Glib::ustring& application_id = Glib::ustring(), ApplicationFlags flags = APPLICATION_FLAGS_NONE);
_IGNORE(g_application_new)
public:
- _WRAP_CREATE(const Glib::ustring& application_id, ApplicationFlags flags = APPLICATION_FLAGS_NONE)
+ /** Creates an application instance.
+ * If no application ID is given then some features (most notably application uniqueness) will be disabled.
+ *
+ * @aparam application_id The application ID.
+ * @param flags The application flags.
+ */
+ _WRAP_CREATE(const Glib::ustring& application_id = Glib::ustring(), ApplicationFlags flags = APPLICATION_FLAGS_NONE)
_WRAP_METHOD(static bool id_is_valid(const Glib::ustring& application_id), g_application_id_is_valid)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]