diff options
author | rbuj <[email protected]> | 2020-08-07 15:56:59 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-09-05 16:23:30 +0200 |
commit | 88ac43d1e046f7b50ea0d7060d192d68b07f6ea4 (patch) | |
tree | 9d3fbdae149d11daafc217c3ecb21db099e4159d | |
parent | 6244782e8b8311a6fb63a10893ecd1699ca9ad44 (diff) | |
download | mate-utils-88ac43d1e046f7b50ea0d7060d192d68b07f6ea4.tar.bz2 mate-utils-88ac43d1e046f7b50ea0d7060d192d68b07f6ea4.tar.xz |
Warn about accessing an undefined property of the object
-rw-r--r-- | logview/src/logview-filter.c | 3 | ||||
-rw-r--r-- | mate-dictionary/src/gdict-pref-dialog.c | 2 | ||||
-rw-r--r-- | mate-dictionary/src/gdict-source-dialog.c | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/logview/src/logview-filter.c b/logview/src/logview-filter.c index 91bfa3b2..47ac9878 100644 --- a/logview/src/logview-filter.c +++ b/logview/src/logview-filter.c @@ -116,6 +116,9 @@ logview_filter_get_property (GObject *object, guint prop_id, GValue *value, GPar case PROP_TEXTTAG: g_value_set_object (value, priv->tag); break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; } } diff --git a/mate-dictionary/src/gdict-pref-dialog.c b/mate-dictionary/src/gdict-pref-dialog.c index 4c2c8e6c..3afa876b 100644 --- a/mate-dictionary/src/gdict-pref-dialog.c +++ b/mate-dictionary/src/gdict-pref-dialog.c @@ -556,6 +556,7 @@ gdict_pref_dialog_set_property (GObject *object, set_source_loader (dialog, g_value_get_object (value)); break; default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } } @@ -574,6 +575,7 @@ gdict_pref_dialog_get_property (GObject *object, g_value_set_object (value, dialog->loader); break; default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } } diff --git a/mate-dictionary/src/gdict-source-dialog.c b/mate-dictionary/src/gdict-source-dialog.c index 622ee9e4..9807afba 100644 --- a/mate-dictionary/src/gdict-source-dialog.c +++ b/mate-dictionary/src/gdict-source-dialog.c @@ -538,6 +538,7 @@ gdict_source_dialog_set_property (GObject *object, dialog->action = (GdictSourceDialogAction) g_value_get_int (value); break; default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } } @@ -562,6 +563,7 @@ gdict_source_dialog_get_property (GObject *object, g_value_set_int (value, dialog->action); break; default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } } |