
2004-10-24 Michael Natterer <mitch@gimp.org> * app/widgets/gimpgradienteditor.[ch] * app/widgets/gimppaletteeditor.[ch]: added public APIs for zooming the editors. Use gimp_editor_add_action_button() to create all buttons. Removed all button callbacks and all duplicated button sensitivity logic. * app/widgets/gimpdataeditor.c (gimp_data_editor_set_data): update the editor's UI manager if it exists. * app/actions/gradient-editor-actions.c * app/actions/gradient-editor-commands.[ch]: added zoom actions and callback and call gimp_gradient_editor_zoom(). Fixed gradient_editor_actions_update() to actually set all items' sensitivity (it was possible to modify read-only gradients and even to crash GIMP). * app/actions/palette-editor-actions.c * app/actions/palette-editor-commands.[ch]: changed "new" and "zoom" actions to actually do their job instead of calling gtk_button_clicked(editor->foo_button).
74 lines
3.9 KiB
C
74 lines
3.9 KiB
C
/* The GIMP -- an image manipulation program
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __GRADIENT_EDITOR_COMMANDS_H__
|
|
#define __GRADIENT_EDITOR_COMMANDS_H__
|
|
|
|
|
|
void gradient_editor_left_color_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
void gradient_editor_load_left_cmd_callback (GtkAction *action,
|
|
gint value,
|
|
gpointer data);
|
|
void gradient_editor_save_left_cmd_callback (GtkAction *action,
|
|
gint value,
|
|
gpointer data);
|
|
|
|
void gradient_editor_right_color_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
void gradient_editor_load_right_cmd_callback (GtkAction *action,
|
|
gint value,
|
|
gpointer data);
|
|
void gradient_editor_save_right_cmd_callback (GtkAction *action,
|
|
gint value,
|
|
gpointer data);
|
|
|
|
void gradient_editor_blending_func_cmd_callback (GtkAction *action,
|
|
GtkAction *current,
|
|
gpointer data);
|
|
void gradient_editor_coloring_type_cmd_callback (GtkAction *action,
|
|
GtkAction *current,
|
|
gpointer data);
|
|
|
|
void gradient_editor_flip_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
void gradient_editor_replicate_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
void gradient_editor_split_midpoint_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
void gradient_editor_split_uniformly_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
void gradient_editor_delete_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
void gradient_editor_recenter_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
void gradient_editor_redistribute_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
|
|
void gradient_editor_blend_color_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
void gradient_editor_blend_opacity_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
|
|
void gradient_editor_zoom_cmd_callback (GtkAction *action,
|
|
gint value,
|
|
gpointer data);
|
|
|
|
|
|
#endif /* __GRADIENT_EDITOR_COMMANDS_H__ */
|