GNOME Bugzilla – Bug 720884
glade-editor-property: use literal format strings
Last modified: 2013-12-21 20:38:34 UTC
I'm pretty sure the patch here is correct in terms of keeping functionality with the original, but the original was pretty difficult to understand. I didn't test it.
Created attachment 264693 [details] [review] glade-editor-property: use literal format strings Refactor glade_eprop_object_dialog_title() to make use of literal format strings instead of storing the format string into a variable. It is my opinion that this change also improves readability of the function in question by reducing the complexity and redundancy of the checks. This fixes the build which was broken on clang due to the use of -Werror=format-nonliteral.
You can test this function for example with transient-for and accelerator-group properties in a GtkWindow. pushed to master