mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-24 14:28:19 +00:00
1358fafb0e
2003-05-18 Michael Natterer <mitch@gimp.org> Implemented "Flip Image". Fixes bug #23179: * app/core/core-enums.[ch]: added GIMP_UNDO_GROUP_IMAGE_FLIP. * app/core/Makefile.am * app/core/gimpimage-flip.[ch]: new files implementing gimp_image_flip(). * app/gui/image-menu.c * app/gui/image-commands.[ch]: added it to the "Image" menu. * themes/Default/images/Makefile.am * themes/Default/images/stock-flip-horizontal-16.png * themes/Default/images/stock-flip-vertical-16.png * libgimpwidgets/gimpstock.[ch]: added icons for the new menu items. Bugs found while hacking the stuff above: * app/core/gimpdrawable-transform.c (gimp_drawable_transform_paste): only call gimp_layer_add_alpha() if the pasted tiles have alpha. * app/core/gimpimage-undo-push.c (undo_pop_channel_mod): fixed to do the right thing if the channel is the selection mask.
53 lines
2.1 KiB
C
53 lines
2.1 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 __IMAGE_COMMANDS_H__
|
|
#define __IMAGE_COMMANDS_H__
|
|
|
|
|
|
void image_convert_rgb_cmd_callback (GtkWidget *widget,
|
|
gpointer data);
|
|
void image_convert_grayscale_cmd_callback (GtkWidget *widget,
|
|
gpointer data);
|
|
void image_convert_indexed_cmd_callback (GtkWidget *widget,
|
|
gpointer data);
|
|
|
|
void image_resize_cmd_callback (GtkWidget *widget,
|
|
gpointer data);
|
|
void image_scale_cmd_callback (GtkWidget *widget,
|
|
gpointer data);
|
|
void image_flip_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void image_crop_cmd_callback (GtkWidget *widget,
|
|
gpointer data);
|
|
|
|
void image_duplicate_cmd_callback (GtkWidget *widget,
|
|
gpointer data);
|
|
|
|
void image_merge_layers_cmd_callback (GtkWidget *widet,
|
|
gpointer data);
|
|
void image_flatten_image_cmd_callback (GtkWidget *widet,
|
|
gpointer data);
|
|
|
|
void image_layers_merge_query (GimpImage *gimage,
|
|
gboolean merge_visible);
|
|
|
|
|
|
#endif /* __IMAGE_COMMANDS_H__ */
|