Don't warn about newer deprecated symbols when targeting older GTK versions
Submitted by Michael Gratton
I'm currently using Glade for a project that aims to be compatible with older versions of GTK+, so people on long-term supported distros can still use the app. Because of this, the UI files are set in Glade to target the older version.
This works well, except when a symbol has been deprecated in a version of GTK newer than targetted. When that happens, then I have no choice except to use the deprecated symbol because the replacement has yet to be introduced, but Glade still warns me about the use of the symbol - by plastering a warning symbol next to the widget and property, and issuing warning messages + confirmation on save
Glade should definitely not do the warning messages + confirmation on save, and probably should not use the warning icons either in this situation, since the user have no choice but to use the deprecated symbols, and over time it just teaches them to ignore the warnings, making them pointless.
A concrete example is as follows. Target GTK+ <= 3.14 and try to change a GtkLabel's alignment of the text on a system with GTK+ >= 3.16 installed. Because gtk_misc_set_alignment was deprecated in 3.14 it shows up as a deprecated symbol in Glade, but the replacement gtk_label_get_xalign did not show up until 3.16, so it can't be used in the project.