mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 09:53:25 +00:00
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:
parent
dfb4d26611
commit
3be0d13be3
1 changed files with 14 additions and 0 deletions
|
@ -97,6 +97,20 @@ gint gimp_dialog_run (GimpDialog *dialog);
|
||||||
void gimp_dialogs_show_help_button (gboolean show);
|
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
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GIMP_DIALOG_H__ */
|
#endif /* __GIMP_DIALOG_H__ */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue