[epiphany/wip/modern_gobject] EphyDialog: Use G_OBJECT_WARN_INVALID_PROPERTY_ID
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/modern_gobject] EphyDialog: Use G_OBJECT_WARN_INVALID_PROPERTY_ID
- Date: Wed, 16 Sep 2015 02:13:57 +0000 (UTC)
commit 1f96c2452005dbe93a51bda3ef71bff36505b8bf
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Tue Sep 15 20:02:05 2015 -0500
EphyDialog: Use G_OBJECT_WARN_INVALID_PROPERTY_ID
lib/ephy-dialog.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/lib/ephy-dialog.c b/lib/ephy-dialog.c
index 676474e..5eaf46d 100644
--- a/lib/ephy-dialog.c
+++ b/lib/ephy-dialog.c
@@ -452,6 +452,9 @@ ephy_dialog_set_property (GObject *object,
case PROP_DEFAULT_HEIGHT:
priv->default_height = g_value_get_int (value);
break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+ break;
}
}
@@ -478,6 +481,9 @@ ephy_dialog_get_property (GObject *object,
case PROP_DEFAULT_HEIGHT:
g_value_set_int (value, priv->default_height);
break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+ break;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]