GNOME Bugzilla – Bug 690970
Unhelpful deprecation message for g_value_array_get_nth
Last modified: 2013-01-03 15:52:29 UTC
I get, for example, dialog-doc-metadata.c: In function 'gnm_docprop_vector_as_string': dialog-doc-metadata.c:531:3: warning: 'g_value_array_get_nth' is deprecated (declared at /usr/include/glib-2.0/gobject/gvaluearray.h:65): Use 'g_array_index' instead [-Wdeprecated-declarations] ...and it is not clear to me how g_array_index can replace g_value_array_get_nth. If this is meant to be analog to GtkTable->GtkGrid then the deprecation message should be similar. If not, a sample would be appreciated.
Created attachment 232545 [details] [review] GValueArray: clarify the deprecation warnings GValueArray as a whole is deprecated in favor of GArray (with GValue elements); warnings like "'g_value_array_get_nth' is deprecated: Use 'g_array_index' instead" are confusing because they suggest that the GArray functions can be used with GValueArrays. Make them say "Use 'GArray' instead" instead.
Review of attachment 232545 [details] [review]: sure
Attachment 232545 [details] pushed as 03e84f9 - GValueArray: clarify the deprecation warnings