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 /mate-dictionary/src | |
parent | 6244782e8b8311a6fb63a10893ecd1699ca9ad44 (diff) | |
download | mate-utils-88ac43d1e046f7b50ea0d7060d192d68b07f6ea4.tar.bz2 mate-utils-88ac43d1e046f7b50ea0d7060d192d68b07f6ea4.tar.xz |
Warn about accessing an undefined property of the object
Diffstat (limited to 'mate-dictionary/src')
-rw-r--r-- | mate-dictionary/src/gdict-pref-dialog.c | 2 | ||||
-rw-r--r-- | mate-dictionary/src/gdict-source-dialog.c | 2 |
2 files changed, 4 insertions, 0 deletions
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; } } |