[glibmm] giomm: Add VariantParseError.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] giomm: Add VariantParseError.
- Date: Tue, 17 Sep 2013 07:58:25 +0000 (UTC)
commit d5c05e2c735daca98389783157859d1e2bfaff1d
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Sep 17 09:56:33 2013 +0200
giomm: Add VariantParseError.
glib/src/variant.hg | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/glib/src/variant.hg b/glib/src/variant.hg
index 5cb7a1c..e7b6066 100644
--- a/glib/src/variant.hg
+++ b/glib/src/variant.hg
@@ -21,6 +21,7 @@ _DEFS(glibmm,glib)
#include <glibmm/varianttype.h>
#include <glibmm/variantiter.h>
#include <glibmm/ustring.h>
+#include <glibmm/error.h>
#include <utility>
#include <vector>
#include <map>
@@ -60,6 +61,13 @@ namespace Glib
* with type inferencing.</a>.
*/
+//Note: So far we only wrap this because it is thrown by GtkBuilder's functions.
+// See https://bugzilla.gnome.org/show_bug.cgi?id=708206
+// It would also be thrown by parse() if we wrap g_variant_parse().
+/** Exception class for Variant parse errors.
+ */
+_WRAP_GERROR(VariantParseError, GVariantParseError, G_VARIANT_PARSE_ERROR, NO_GTYPE)
+
//TODO: VariantBase class can be copied, so suggest how it can be dynamic casted to
//derived types: See https://bugzilla.gnome.org/show_bug.cgi?id=644146
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]