Commit bdbec794 authored by Michael Natterer's avatar Michael Natterer 😴

Use the new macros from the last commit in all files

...and gone are the annoying warnings.
parent 3be0d13b
...@@ -232,7 +232,7 @@ documents_clear_cmd_callback (GtkAction *action, ...@@ -232,7 +232,7 @@ documents_clear_cmd_callback (GtkAction *action,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -163,7 +163,7 @@ edit_undo_clear_cmd_callback (GtkAction *action, ...@@ -163,7 +163,7 @@ edit_undo_clear_cmd_callback (GtkAction *action,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -99,7 +99,7 @@ error_console_save_cmd_callback (GtkAction *action, ...@@ -99,7 +99,7 @@ error_console_save_cmd_callback (GtkAction *action,
NULL); NULL);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -417,7 +417,7 @@ file_revert_cmd_callback (GtkAction *action, ...@@ -417,7 +417,7 @@ file_revert_cmd_callback (GtkAction *action,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -480,7 +480,7 @@ gradient_editor_replicate_cmd_callback (GtkAction *action, ...@@ -480,7 +480,7 @@ gradient_editor_replicate_cmd_callback (GtkAction *action,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
...@@ -583,7 +583,7 @@ gradient_editor_split_uniformly_cmd_callback (GtkAction *action, ...@@ -583,7 +583,7 @@ gradient_editor_split_uniformly_cmd_callback (GtkAction *action,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -83,7 +83,7 @@ gradients_save_as_pov_ray_cmd_callback (GtkAction *action, ...@@ -83,7 +83,7 @@ gradients_save_as_pov_ray_cmd_callback (GtkAction *action,
g_free (title); g_free (title);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -182,7 +182,7 @@ plug_in_reset_all_cmd_callback (GtkAction *action, ...@@ -182,7 +182,7 @@ plug_in_reset_all_cmd_callback (GtkAction *action,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -245,7 +245,7 @@ templates_delete_cmd_callback (GtkAction *action, ...@@ -245,7 +245,7 @@ templates_delete_cmd_callback (GtkAction *action,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -67,7 +67,7 @@ text_editor_load_cmd_callback (GtkAction *action, ...@@ -67,7 +67,7 @@ text_editor_load_cmd_callback (GtkAction *action,
NULL); NULL);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -121,7 +121,7 @@ text_tool_load_cmd_callback (GtkAction *action, ...@@ -121,7 +121,7 @@ text_tool_load_cmd_callback (GtkAction *action,
NULL); NULL);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -198,7 +198,7 @@ tool_options_reset_all_cmd_callback (GtkAction *action, ...@@ -198,7 +198,7 @@ tool_options_reset_all_cmd_callback (GtkAction *action,
NULL); NULL);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -77,7 +77,7 @@ window_open_display_cmd_callback (GtkAction *action, ...@@ -77,7 +77,7 @@ window_open_display_cmd_callback (GtkAction *action,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -218,7 +218,7 @@ color_profile_dialog_new (ColorProfileDialogType dialog_type, ...@@ -218,7 +218,7 @@ color_profile_dialog_new (ColorProfileDialogType dialog_type,
private->dialog = dialog; private->dialog = dialog;
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -106,7 +106,7 @@ color_profile_import_dialog_run (GimpImage *image, ...@@ -106,7 +106,7 @@ color_profile_import_dialog_run (GimpImage *image,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -140,7 +140,7 @@ convert_indexed_dialog_new (GimpImage *image, ...@@ -140,7 +140,7 @@ convert_indexed_dialog_new (GimpImage *image,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -169,7 +169,7 @@ convert_precision_dialog_new (GimpImage *image, ...@@ -169,7 +169,7 @@ convert_precision_dialog_new (GimpImage *image,
g_free (blurb); g_free (blurb);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -88,7 +88,7 @@ data_delete_dialog_new (GimpDataFactory *factory, ...@@ -88,7 +88,7 @@ data_delete_dialog_new (GimpDataFactory *factory,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -124,7 +124,7 @@ fade_dialog_new (GimpImage *image, ...@@ -124,7 +124,7 @@ fade_dialog_new (GimpImage *image,
g_free (title); g_free (title);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -82,7 +82,7 @@ file_open_location_dialog_new (Gimp *gimp) ...@@ -82,7 +82,7 @@ file_open_location_dialog_new (Gimp *gimp)
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG(dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG(dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -716,7 +716,7 @@ file_save_dialog_use_extension (GtkWidget *save_dialog, ...@@ -716,7 +716,7 @@ file_save_dialog_use_extension (GtkWidget *save_dialog,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -117,7 +117,7 @@ fill_dialog_new (GimpItem *item, ...@@ -117,7 +117,7 @@ fill_dialog_new (GimpItem *item,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
RESPONSE_RESET, RESPONSE_RESET,
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
......
...@@ -104,7 +104,7 @@ grid_dialog_new (GimpImage *image, ...@@ -104,7 +104,7 @@ grid_dialog_new (GimpImage *image,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GRID_RESPONSE_RESET, GRID_RESPONSE_RESET,
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
......
...@@ -102,7 +102,7 @@ image_merge_layers_dialog_new (GimpImage *image, ...@@ -102,7 +102,7 @@ image_merge_layers_dialog_new (GimpImage *image,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -108,7 +108,7 @@ image_new_dialog_new (GimpContext *context) ...@@ -108,7 +108,7 @@ image_new_dialog_new (GimpContext *context)
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
RESPONSE_RESET, RESPONSE_RESET,
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
...@@ -327,7 +327,7 @@ image_new_confirm_dialog (ImageNewDialog *private) ...@@ -327,7 +327,7 @@ image_new_confirm_dialog (ImageNewDialog *private)
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (private->confirm_dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (private->confirm_dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -212,7 +212,7 @@ image_scale_confirm_dialog (ImageScaleDialog *private) ...@@ -212,7 +212,7 @@ image_scale_confirm_dialog (ImageScaleDialog *private)
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (widget), gimp_dialog_set_alternative_button_order (GTK_DIALOG (widget),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -64,7 +64,7 @@ input_devices_dialog_new (Gimp *gimp) ...@@ -64,7 +64,7 @@ input_devices_dialog_new (Gimp *gimp)
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CLOSE, GTK_RESPONSE_CLOSE,
-1); -1);
......
...@@ -147,7 +147,7 @@ item_options_dialog_new (GimpImage *image, ...@@ -147,7 +147,7 @@ item_options_dialog_new (GimpImage *image,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -112,7 +112,7 @@ layer_add_mask_dialog_new (GimpLayer *layer, ...@@ -112,7 +112,7 @@ layer_add_mask_dialog_new (GimpLayer *layer,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -135,7 +135,7 @@ module_dialog_new (Gimp *gimp) ...@@ -135,7 +135,7 @@ module_dialog_new (Gimp *gimp)
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_CLOSE, GTK_RESPONSE_CLOSE,
RESPONSE_REFRESH, RESPONSE_REFRESH,
-1); -1);
......
...@@ -139,7 +139,7 @@ offset_dialog_new (GimpDrawable *drawable, ...@@ -139,7 +139,7 @@ offset_dialog_new (GimpDrawable *drawable,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -163,7 +163,7 @@ palette_import_dialog_new (GimpContext *context) ...@@ -163,7 +163,7 @@ palette_import_dialog_new (GimpContext *context)
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -289,7 +289,7 @@ prefs_response (GtkWidget *widget, ...@@ -289,7 +289,7 @@ prefs_response (GtkWidget *widget,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (confirm), gimp_dialog_set_alternative_button_order (GTK_DIALOG (confirm),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
...@@ -638,7 +638,7 @@ prefs_menus_remove_callback (GtkWidget *widget, ...@@ -638,7 +638,7 @@ prefs_menus_remove_callback (GtkWidget *widget,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
...@@ -1096,7 +1096,7 @@ prefs_dialog_new (Gimp *gimp, ...@@ -1096,7 +1096,7 @@ prefs_dialog_new (Gimp *gimp,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
RESPONSE_RESET, RESPONSE_RESET,
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
......
...@@ -126,7 +126,7 @@ print_size_dialog_new (GimpImage *image, ...@@ -126,7 +126,7 @@ print_size_dialog_new (GimpImage *image,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
RESPONSE_RESET, RESPONSE_RESET,
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
......
...@@ -175,7 +175,7 @@ quit_close_all_dialog_new (Gimp *gimp, ...@@ -175,7 +175,7 @@ quit_close_all_dialog_new (Gimp *gimp,
private->ok_button = gtk_dialog_add_button (GTK_DIALOG (private->dialog), private->ok_button = gtk_dialog_add_button (GTK_DIALOG (private->dialog),
"", GTK_RESPONSE_OK); "", GTK_RESPONSE_OK);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (private->dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (private->dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -187,7 +187,7 @@ resize_dialog_new (GimpViewable *viewable, ...@@ -187,7 +187,7 @@ resize_dialog_new (GimpViewable *viewable,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
RESPONSE_RESET, RESPONSE_RESET,
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
......
...@@ -75,7 +75,7 @@ resolution_calibrate_dialog (GtkWidget *resolution_entry, ...@@ -75,7 +75,7 @@ resolution_calibrate_dialog (GtkWidget *resolution_entry,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
......
...@@ -139,7 +139,7 @@ scale_dialog_new (GimpViewable *viewable, ...@@ -139,7 +139,7 @@ scale_dialog_new (GimpViewable *viewable,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
RESPONSE_RESET, RESPONSE_RESET,
GTK_RESPONSE_OK,