Skip to content

Commit

Permalink
Add V8ToGValue ENUM handler
Browse files Browse the repository at this point in the history
  • Loading branch information
WebReflection committed Dec 15, 2015
1 parent 9e9aed6 commit 56c5801
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/value.cc
Expand Up @@ -251,6 +251,8 @@ void V8ToGValue(GValue *gvalue, Handle<Value> value) {
String::Utf8Value str (value);
const char *data = *str;
g_value_set_string (gvalue, data);
} else if (G_VALUE_HOLDS_ENUM (gvalue)) {
g_value_set_enum (gvalue, value->Int32Value ());
} else if (G_VALUE_HOLDS_OBJECT (gvalue)) {
g_value_set_object (gvalue, GObjectFromWrapper (value));
} else {
Expand Down

0 comments on commit 56c5801

Please sign in to comment.