Commit 3be0d13b authored by Michael Natterer's avatar Michael Natterer 😴

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.
parent dfb4d266
......@@ -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__ */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment