summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-11 19:38:25 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-11 19:38:25 (EDT)
commit1332804b4d020dc02249b29f5b6dc1fe14d1626c (patch)
tree38bf37b1a6a83ea01d2c22a8c667c5c6ac212b8c /src
parentcb34333a750d424a9c141fa7dfa8a75fba04e61e (diff)
downloadmarquee-1332804b4d020dc02249b29f5b6dc1fe14d1626c.zip
marquee-1332804b4d020dc02249b29f5b6dc1fe14d1626c.tar.gz
marquee-1332804b4d020dc02249b29f5b6dc1fe14d1626c.tar.bz2
MqWebView: Warn on invalid property IDs
Diffstat (limited to 'src')
-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;
}
}