mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-23 13:01:42 +00:00
37912655f2
2004-09-21 Michael Natterer <mitch@gimp.org> For the sake of completeness, added a GUI for the hidden "Open as Layer" feature: * app/actions/file-actions.c * app/actions/file-commands.[ch]: added "file-open-as-layer" action and callback. Abuse the "gimage" field of GimpFileDialog to indicate layer opening (it's otherwise unused for file-open). * app/dialogs/file-open-dialog.c: if dialog->gimage is non-NULL, open the selected files as layers for that image. * app/widgets/gimphelp-ids.h: added GIMP_HELP_FILE_OPEN_AS_LAYER. * menus/image-menu.xml.in: added it to the menu.
55 lines
2.5 KiB
C
55 lines
2.5 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 __FILE_COMMANDS_H__
|
|
#define __FILE_COMMANDS_H__
|
|
|
|
|
|
void file_open_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
void file_open_from_image_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
void file_open_as_layer_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
void file_open_location_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
void file_last_opened_cmd_callback (GtkAction *action,
|
|
gint value,
|
|
gpointer data);
|
|
|
|
void file_save_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
void file_save_as_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
void file_save_a_copy_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
void file_save_template_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
|
|
void file_revert_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
void file_quit_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
|
|
void file_file_open_dialog (Gimp *gimp,
|
|
const gchar *uri,
|
|
GtkWidget *parent);
|
|
|
|
|
|
#endif /* __FILE_COMMANDS_H__ */
|