mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-23 13:01:42 +00:00
714771d450
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).
37 lines
1.6 KiB
C
37 lines
1.6 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 __PALETTE_EDITOR_COMMANDS_H__
|
|
#define __PALETTE_EDITOR_COMMANDS_H__
|
|
|
|
|
|
void palette_editor_edit_color_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
void palette_editor_new_color_cmd_callback (GtkAction *action,
|
|
gint value,
|
|
gpointer data);
|
|
void palette_editor_delete_color_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
|
|
void palette_editor_zoom_cmd_callback (GtkAction *action,
|
|
gint value,
|
|
gpointer data);
|
|
|
|
|
|
#endif /* __PALETTE_EDITOR_COMMANDS_H__ */
|