mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-24 14:12:53 +00:00
6663cee5f3
2003-04-13 Michael Natterer <mitch@gimp.org> * app/core/gimptemplate.c (gimp_template_notify): invalidate the preview when the stock_id changes. * app/widgets/gimptemplateeditor.[ch]: added an optional entry to edit the template's name. * app/widgets/gimptemplateview.[ch]: added a "duplicate" button and function pointers for creating templates, editing templates and creating images from templates. * app/gui/file-new-dialog.[ch] (file_new_dialog_create): added an optional template parameter. * app/gui/file-commands.c: pass template == NULL. * app/gui/templates-menu.c: added a "Duplicate Template" menu entry. * app/gui/templates-commands.[ch]: added the callback for the duplicate menu item. Added "New Template" and "Edit Template" dialogs. Added a function which opens a file_new_dialog with a template preselected. * app/gui/dialogs-constructors.c: let GimpTemplateView know about the functions.
42 lines
2 KiB
C
42 lines
2 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 __TEMPLATES_COMMANDS_H__
|
|
#define __TEMPLATES_COMMANDS_H__
|
|
|
|
|
|
void templates_new_template_cmd_callback (GtkWidget *widget,
|
|
gpointer data);
|
|
void templates_duplicate_template_cmd_callback (GtkWidget *widget,
|
|
gpointer data);
|
|
void templates_edit_template_cmd_callback (GtkWidget *widget,
|
|
gpointer data);
|
|
void templates_create_image_cmd_callback (GtkWidget *widget,
|
|
gpointer data);
|
|
void templates_delete_template_cmd_callback (GtkWidget *widget,
|
|
gpointer data);
|
|
|
|
void templates_new_template_dialog (Gimp *gimp,
|
|
GimpTemplate *template);
|
|
void templates_edit_template_dialog (Gimp *gimp,
|
|
GimpTemplate *template);
|
|
void templates_file_new_dialog (Gimp *gimp,
|
|
GimpTemplate *template);
|
|
|
|
#endif /* __TEMPLATES_COMMANDS_H__ */
|