summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/web-view.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/web-view.c b/src/web-view.c
index 44e2921..f9ead49 100644
--- a/src/web-view.c
+++ b/src/web-view.c
@@ -58,7 +58,7 @@ G_DEFINE_TYPE(MqWebView, mq_web_view, WEBKIT_TYPE_WEB_VIEW)
static void
get_property(GObject *object, guint property_id, GValue *value,
- GParamSpec G_GNUC_UNUSED *pspec)
+ GParamSpec *pspec)
{
MqWebView *web_view;
@@ -71,12 +71,16 @@ get_property(GObject *object, guint property_id, GValue *value,
case PROP_URI:
g_value_set_string(value, web_view->uri); /* TODO */
break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id,
+ pspec);
+ break;
}
}
static void
set_property(GObject *object, guint property_id, const GValue *value,
- GParamSpec G_GNUC_UNUSED *pspec)
+ GParamSpec *pspec)
{
MqWebView *web_view;
@@ -89,6 +93,10 @@ set_property(GObject *object, guint property_id, const GValue *value,
case PROP_URI:
web_view->uri = g_value_get_string(value);
break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id,
+ pspec);
+ break;
}
}