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

app: change all action callback signatures to use GimpAction

instead of GtkAction, which is correct now because all our actions
implement the GimpAction interface.
parent 738c0358
......@@ -46,7 +46,7 @@
/* public functions */
void
buffers_paste_cmd_callback (GtkAction *action,
buffers_paste_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -96,7 +96,7 @@ buffers_paste_cmd_callback (GtkAction *action,
}
void
buffers_paste_as_new_image_cmd_callback (GtkAction *action,
buffers_paste_as_new_image_cmd_callback (GimpAction *action,
gpointer data)
{
GimpContainerEditor *editor = GIMP_CONTAINER_EDITOR (data);
......@@ -124,7 +124,7 @@ buffers_paste_as_new_image_cmd_callback (GtkAction *action,
}
void
buffers_delete_cmd_callback (GtkAction *action,
buffers_delete_cmd_callback (GimpAction *action,
gpointer data)
{
GimpContainerEditor *editor = GIMP_CONTAINER_EDITOR (data);
......
......@@ -19,12 +19,12 @@
#define __BUFFERS_COMMANDS_H__
void buffers_paste_cmd_callback (GtkAction *action,
void buffers_paste_cmd_callback (GimpAction *action,
gint value,
gpointer data);
void buffers_paste_as_new_image_cmd_callback (GtkAction *action,
void buffers_paste_as_new_image_cmd_callback (GimpAction *action,
gpointer data);
void buffers_delete_cmd_callback (GtkAction *action,
void buffers_delete_cmd_callback (GimpAction *action,
gpointer data);
......
......@@ -90,7 +90,7 @@ static void channels_edit_attributes_callback (GtkWidget *dialog,
/* public functions */
void
channels_edit_attributes_cmd_callback (GtkAction *action,
channels_edit_attributes_cmd_callback (GimpAction *action,
gpointer data)
{
GimpImage *image;
......@@ -136,7 +136,7 @@ channels_edit_attributes_cmd_callback (GtkAction *action,
}
void
channels_new_cmd_callback (GtkAction *action,
channels_new_cmd_callback (GimpAction *action,
gpointer data)
{
GimpImage *image;
......@@ -181,7 +181,7 @@ channels_new_cmd_callback (GtkAction *action,
}
void
channels_new_last_vals_cmd_callback (GtkAction *action,
channels_new_last_vals_cmd_callback (GimpAction *action,
gpointer data)
{
GimpImage *image;
......@@ -207,7 +207,7 @@ channels_new_last_vals_cmd_callback (GtkAction *action,
}
void
channels_raise_cmd_callback (GtkAction *action,
channels_raise_cmd_callback (GimpAction *action,
gpointer data)
{
GimpImage *image;
......@@ -219,7 +219,7 @@ channels_raise_cmd_callback (GtkAction *action,
}
void
channels_raise_to_top_cmd_callback (GtkAction *action,
channels_raise_to_top_cmd_callback (GimpAction *action,
gpointer data)
{
GimpImage *image;
......@@ -231,7 +231,7 @@ channels_raise_to_top_cmd_callback (GtkAction *action,
}
void
channels_lower_cmd_callback (GtkAction *action,
channels_lower_cmd_callback (GimpAction *action,
gpointer data)
{
GimpImage *image;
......@@ -243,7 +243,7 @@ channels_lower_cmd_callback (GtkAction *action,
}
void
channels_lower_to_bottom_cmd_callback (GtkAction *action,
channels_lower_to_bottom_cmd_callback (GimpAction *action,
gpointer data)
{
GimpImage *image;
......@@ -255,7 +255,7 @@ channels_lower_to_bottom_cmd_callback (GtkAction *action,
}
void
channels_duplicate_cmd_callback (GtkAction *action,
channels_duplicate_cmd_callback (GimpAction *action,
gpointer data)
{
GimpImage *image;
......@@ -307,7 +307,7 @@ channels_duplicate_cmd_callback (GtkAction *action,
}
void
channels_delete_cmd_callback (GtkAction *action,
channels_delete_cmd_callback (GimpAction *action,
gpointer data)
{
GimpImage *image;
......@@ -319,7 +319,7 @@ channels_delete_cmd_callback (GtkAction *action,
}
void
channels_to_selection_cmd_callback (GtkAction *action,
channels_to_selection_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -351,7 +351,7 @@ channels_to_selection_cmd_callback (GtkAction *action,
}
void
channels_visible_cmd_callback (GtkAction *action,
channels_visible_cmd_callback (GimpAction *action,
gpointer data)
{
GimpImage *image;
......@@ -362,7 +362,7 @@ channels_visible_cmd_callback (GtkAction *action,
}
void
channels_linked_cmd_callback (GtkAction *action,
channels_linked_cmd_callback (GimpAction *action,
gpointer data)
{
GimpImage *image;
......@@ -373,7 +373,7 @@ channels_linked_cmd_callback (GtkAction *action,
}
void
channels_lock_content_cmd_callback (GtkAction *action,
channels_lock_content_cmd_callback (GimpAction *action,
gpointer data)
{
GimpImage *image;
......@@ -384,7 +384,7 @@ channels_lock_content_cmd_callback (GtkAction *action,
}
void
channels_lock_position_cmd_callback (GtkAction *action,
channels_lock_position_cmd_callback (GimpAction *action,
gpointer data)
{
GimpImage *image;
......@@ -395,7 +395,7 @@ channels_lock_position_cmd_callback (GtkAction *action,
}
void
channels_color_tag_cmd_callback (GtkAction *action,
channels_color_tag_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -408,7 +408,7 @@ channels_color_tag_cmd_callback (GtkAction *action,
}
void
channels_select_cmd_callback (GtkAction *action,
channels_select_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......
......@@ -19,44 +19,44 @@
#define __CHANNELS_COMMANDS_H__
void channels_edit_attributes_cmd_callback (GtkAction *action,
void channels_edit_attributes_cmd_callback (GimpAction *action,
gpointer data);
void channels_new_cmd_callback (GtkAction *action,
void channels_new_cmd_callback (GimpAction *action,
gpointer data);
void channels_new_last_vals_cmd_callback (GtkAction *action,
void channels_new_last_vals_cmd_callback (GimpAction *action,
gpointer data);
void channels_raise_cmd_callback (GtkAction *action,
void channels_raise_cmd_callback (GimpAction *action,
gpointer data);
void channels_raise_to_top_cmd_callback (GtkAction *action,
void channels_raise_to_top_cmd_callback (GimpAction *action,
gpointer data);
void channels_lower_cmd_callback (GtkAction *action,
void channels_lower_cmd_callback (GimpAction *action,
gpointer data);
void channels_lower_to_bottom_cmd_callback (GtkAction *action,
void channels_lower_to_bottom_cmd_callback (GimpAction *action,
gpointer data);
void channels_duplicate_cmd_callback (GtkAction *action,
void channels_duplicate_cmd_callback (GimpAction *action,
gpointer data);
void channels_delete_cmd_callback (GtkAction *action,
void channels_delete_cmd_callback (GimpAction *action,
gpointer data);
void channels_to_selection_cmd_callback (GtkAction *action,
void channels_to_selection_cmd_callback (GimpAction *action,
gint value,
gpointer data);
void channels_visible_cmd_callback (GtkAction *action,
void channels_visible_cmd_callback (GimpAction *action,
gpointer data);
void channels_linked_cmd_callback (GtkAction *action,
void channels_linked_cmd_callback (GimpAction *action,
gpointer data);
void channels_lock_content_cmd_callback (GtkAction *action,
void channels_lock_content_cmd_callback (GimpAction *action,
gpointer data);
void channels_lock_position_cmd_callback (GtkAction *action,
void channels_lock_position_cmd_callback (GimpAction *action,
gpointer data);
void channels_color_tag_cmd_callback (GtkAction *action,
void channels_color_tag_cmd_callback (GimpAction *action,
gint value,
gpointer data);
void channels_select_cmd_callback (GtkAction *action,
void channels_select_cmd_callback (GimpAction *action,
gint value,
gpointer data);
......
......@@ -37,7 +37,7 @@
/* public functions */
void
colormap_edit_color_cmd_callback (GtkAction *action,
colormap_edit_color_cmd_callback (GimpAction *action,
gpointer data)
{
GimpColormapEditor *editor = GIMP_COLORMAP_EDITOR (data);
......@@ -46,7 +46,7 @@ colormap_edit_color_cmd_callback (GtkAction *action,
}
void
colormap_add_color_cmd_callback (GtkAction *action,
colormap_add_color_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -70,7 +70,7 @@ colormap_add_color_cmd_callback (GtkAction *action,
}
void
colormap_to_selection_cmd_callback (GtkAction *action,
colormap_to_selection_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......
......@@ -19,12 +19,12 @@
#define __COLORMAP_COMMANDS_H__
void colormap_edit_color_cmd_callback (GtkAction *action,
void colormap_edit_color_cmd_callback (GimpAction *action,
gpointer data);
void colormap_add_color_cmd_callback (GtkAction *action,
void colormap_add_color_cmd_callback (GimpAction *action,
gint value,
gpointer data);
void colormap_to_selection_cmd_callback (GtkAction *action,
void colormap_to_selection_cmd_callback (GimpAction *action,
gint value,
gpointer data);
......
......@@ -81,7 +81,7 @@ static GimpColormapEditor * context_get_colormap_editor (void);
/* public functions */
void
context_colors_default_cmd_callback (GtkAction *action,
context_colors_default_cmd_callback (GimpAction *action,
gpointer data)
{
GimpContext *context;
......@@ -91,7 +91,7 @@ context_colors_default_cmd_callback (GtkAction *action,
}
void
context_colors_swap_cmd_callback (GtkAction *action,
context_colors_swap_cmd_callback (GimpAction *action,
gpointer data)
{
GimpContext *context;
......@@ -102,7 +102,7 @@ context_colors_swap_cmd_callback (GtkAction *action,
#define SELECT_COLOR_CMD_CALLBACK(name, fgbg, use_colormap, use_palette) \
void \
context_##name##_##fgbg##ground_cmd_callback (GtkAction *action, \
context_##name##_##fgbg##ground_cmd_callback (GimpAction *action, \
gint value, \
gpointer data) \
{ \
......@@ -124,7 +124,7 @@ SELECT_COLOR_CMD_CALLBACK (swatch, fore, TRUE, TRUE)
SELECT_COLOR_CMD_CALLBACK (swatch, back, TRUE, TRUE)
void
context_foreground_red_cmd_callback (GtkAction *action,
context_foreground_red_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -141,7 +141,7 @@ context_foreground_red_cmd_callback (GtkAction *action,
}
void
context_foreground_green_cmd_callback (GtkAction *action,
context_foreground_green_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -158,7 +158,7 @@ context_foreground_green_cmd_callback (GtkAction *action,
}
void
context_foreground_blue_cmd_callback (GtkAction *action,
context_foreground_blue_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -175,7 +175,7 @@ context_foreground_blue_cmd_callback (GtkAction *action,
}
void
context_background_red_cmd_callback (GtkAction *action,
context_background_red_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -192,7 +192,7 @@ context_background_red_cmd_callback (GtkAction *action,
}
void
context_background_green_cmd_callback (GtkAction *action,
context_background_green_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -209,7 +209,7 @@ context_background_green_cmd_callback (GtkAction *action,
}
void
context_background_blue_cmd_callback (GtkAction *action,
context_background_blue_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -226,7 +226,7 @@ context_background_blue_cmd_callback (GtkAction *action,
}
void
context_foreground_hue_cmd_callback (GtkAction *action,
context_foreground_hue_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -246,7 +246,7 @@ context_foreground_hue_cmd_callback (GtkAction *action,
}
void
context_foreground_saturation_cmd_callback (GtkAction *action,
context_foreground_saturation_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -266,7 +266,7 @@ context_foreground_saturation_cmd_callback (GtkAction *action,
}
void
context_foreground_value_cmd_callback (GtkAction *action,
context_foreground_value_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -286,7 +286,7 @@ context_foreground_value_cmd_callback (GtkAction *action,
}
void
context_background_hue_cmd_callback (GtkAction *action,
context_background_hue_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -306,7 +306,7 @@ context_background_hue_cmd_callback (GtkAction *action,
}
void
context_background_saturation_cmd_callback (GtkAction *action,
context_background_saturation_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -326,7 +326,7 @@ context_background_saturation_cmd_callback (GtkAction *action,
}
void
context_background_value_cmd_callback (GtkAction *action,
context_background_value_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -346,7 +346,7 @@ context_background_value_cmd_callback (GtkAction *action,
}
void
context_opacity_cmd_callback (GtkAction *action,
context_opacity_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -367,7 +367,7 @@ context_opacity_cmd_callback (GtkAction *action,
}
void
context_paint_mode_cmd_callback (GtkAction *action,
context_paint_mode_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -414,7 +414,7 @@ context_paint_mode_cmd_callback (GtkAction *action,
}
void
context_tool_select_cmd_callback (GtkAction *action,
context_tool_select_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -426,7 +426,7 @@ context_tool_select_cmd_callback (GtkAction *action,
}
void
context_brush_select_cmd_callback (GtkAction *action,
context_brush_select_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -438,7 +438,7 @@ context_brush_select_cmd_callback (GtkAction *action,
}
void
context_pattern_select_cmd_callback (GtkAction *action,
context_pattern_select_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -450,7 +450,7 @@ context_pattern_select_cmd_callback (GtkAction *action,
}
void
context_palette_select_cmd_callback (GtkAction *action,
context_palette_select_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -462,7 +462,7 @@ context_palette_select_cmd_callback (GtkAction *action,
}
void
context_gradient_select_cmd_callback (GtkAction *action,
context_gradient_select_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -474,7 +474,7 @@ context_gradient_select_cmd_callback (GtkAction *action,
}
void
context_font_select_cmd_callback (GtkAction *action,
context_font_select_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -486,7 +486,7 @@ context_font_select_cmd_callback (GtkAction *action,
}
void
context_brush_spacing_cmd_callback (GtkAction *action,
context_brush_spacing_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -507,7 +507,7 @@ context_brush_spacing_cmd_callback (GtkAction *action,
}
void
context_brush_shape_cmd_callback (GtkAction *action,
context_brush_shape_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -540,7 +540,7 @@ context_brush_shape_cmd_callback (GtkAction *action,
}
void
context_brush_radius_cmd_callback (GtkAction *action,
context_brush_radius_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -600,7 +600,7 @@ context_brush_radius_cmd_callback (GtkAction *action,
}
void
context_brush_spikes_cmd_callback (GtkAction *action,
context_brush_spikes_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -622,7 +622,7 @@ context_brush_spikes_cmd_callback (GtkAction *action,
}
void
context_brush_hardness_cmd_callback (GtkAction *action,
context_brush_hardness_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -644,7 +644,7 @@ context_brush_hardness_cmd_callback (GtkAction *action,
}
void
context_brush_aspect_cmd_callback (GtkAction *action,
context_brush_aspect_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......@@ -666,7 +666,7 @@ context_brush_aspect_cmd_callback (GtkAction *action,
}
void
context_brush_angle_cmd_callback (GtkAction *action,
context_brush_angle_cmd_callback (GimpAction *action,
gint value,
gpointer data)
{
......
......@@ -20,117 +20,117 @@
void context_colors_default_cmd_callback (GtkAction *action,
void context_colors_default_cmd_callback (GimpAction *action,
gpointer data);
void context_colors_swap_cmd_callback (GtkAction *action,
void context_colors_swap_cmd_callback (GimpAction *action,
gpointer data);
void context_palette_foreground_cmd_callback (GtkAction *action,
void context_palette_foreground_cmd_callback (GimpAction *action,
gint value,
gpointer data);
void context_palette_background_cmd_callback (GtkAction *action,
void context_palette_background_cmd_callback (GimpAction *action,
gint value,
gpointer data);
void context_colormap_foreground_cmd_callback (GtkAction *action,
void context_colormap_foreground_cmd_callback (GimpAction *action,
gint value,
gpointer data);
void context_colormap_background_cmd_callback (GtkAction *action,
void context_colormap_background_cmd_callback (GimpAction *action,
gint value,
gpointer data);
void context_swatch_foreground_cmd_callback (GtkAction *action,
void context_swatch_foreground_cmd_callback (GimpAction *action,
gint value,
gpointer data);
void context_swatch_background_cmd_callback (GtkAction *action,
void context_swatch_background_cmd_callback (GimpAction *action,
gint value,
gpointer data);
void context_foreground_red_cmd_callback (GtkAction *action,
void context_foreground_red_cmd_callback (GimpAction *action,
gint value,
gpointer data);
void context_foreground_green_cmd_callback (GtkAction *action,
void context_foreground_green_cmd_callback (GimpAction *action,
gint value,
gpointer data);
void context_foreground_blue_cmd_callback (GtkAction *action,
void context_foreground_blue_cmd_callback (GimpAction *action,
gint value,
gpointer data);
void context_background_red_cmd_callback (GtkAction *action,
void context_background_red_cmd_callback (GimpAction *action,
gint value,
gpointer data);
void context_background_green_cmd_callback (GtkAction *action,
void context_background_green_cmd_callback (GimpAction *action,
gint value,
gpointer data);
void context_background_blue_cmd_callback (GtkAction *action,
void context_background_blue_cmd_callback (GimpAction *action,
gint value,
gpointer data);
void context_foreground_hue_cmd_callback (GtkAction *action,
void context_foreground_hue_cmd_callback (GimpAction *action,
gint value,
gpointer data);
void context_foreground_saturation_cmd_callback (GtkAction *action,
void context_foreground_saturation_cmd_callback (GimpAction *action,
gint value,
gpointer data);
void context_foreground_value_cmd_callback (GtkAction *action,
void context_foreground_value_cmd_callback (GimpAction *action,
gint value,
gpointer data);
void context_background_hue_cmd_callback (GtkAction *action,
void context_background_hue_cmd_callback (GimpAction *action,
gint value,
gpointer data);
void context_background_saturation_cmd_callback (GtkAction *action,
void context_background_saturation_cmd_callback (GimpAction *action,
gint value,
gpointer data);
void context_background_value_cmd_callback (GtkAction *action,
void context_background_value_cmd_callback (GimpAction *action,
gint value,
gpointer data);