libgimpwidgets: add macros to hide alternative_button_order warnings

Since we don't know yet what to do about this, let's not spam the
build with distracting warnings in the meantime.

gimp_dialog_set_alternative_button_order
gimp_dialog_set_alternative_button_order_from_array

are macros which just call the deprecated GtkDialog functions, but
wrap them in G_GNUC_BEGIN,END_IGNORE_DEPRECATIONS.
This commit is contained in:
Michael Natterer 2018-05-10 17:01:58 +02:00
parent dfb4d26611
commit 3be0d13be3

View file

@ -97,6 +97,20 @@ gint gimp_dialog_run (GimpDialog *dialog);
void gimp_dialogs_show_help_button (gboolean show);
/* since we don't know yet what to do about alternative button order,
* just hide the warnings for now...
*/
#define gimp_dialog_set_alternative_button_order(d,f...) \
G_GNUC_BEGIN_IGNORE_DEPRECATIONS; \
gtk_dialog_set_alternative_button_order(d,f); \
G_GNUC_END_IGNORE_DEPRECATIONS;
#define gimp_dialog_set_alternative_button_order_from_array(d,n,o) \
G_GNUC_BEGIN_IGNORE_DEPRECATIONS; \
gtk_dialog_set_alternative_button_order_from_array(d,n,o); \
G_GNUC_END_IGNORE_DEPRECATIONS;
G_END_DECLS
#endif /* __GIMP_DIALOG_H__ */