mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-20 19:43:01 +00:00
c8b4394d71
2003-02-20 Michael Natterer <mitch@gimp.org> Reimplemented the undo history: * app/Makefile.am * app/undo_history.[ch]: removed. Changes/cleanups to the undo system to enable/simplify the new undo history implementation: * app/core/core-types.h: removed enum undo_event_t. Removed the GimpImage parameter from GimpUndoPopFunc and GimpUndoFreeFunc because GimpUndo has a GimpImage pointer now (see below). * app/core/core-enums.[ch]: added enum GimpUndoEvent. Added an enum value for REDO_EXPIRED. * app/core/gimpimage.[ch]: added a GimpUndo pointer to the "undo_event" signal which needs to be passed for all events except UNDO_FREE. * app/display/gimpdisplayshell-handlers.c: changed accordingly. * app/core/gimpundo.[ch]: added a GimpImage pointer to the GimpUndo struct. Removed GimpImage parameters all over the place. Added preview stuff. The preview creation needs to be triggered explicitly using gimp_undo_create_preview() because the GimpUndo can't know when it's possible to create the preview. * app/core/gimpimage-undo-push.c * app/paint/gimppaintcore-undo.c * app/tools/gimptransformtool-undo.c: changed accordingly, cleanup. * app/core/gimpundostack.[ch]: ditto. Return the freed undo from gimp_undo_stack_free_bottom(). Removed unused container signal handlers. * app/core/gimpimage-undo.c: free the redo stack the same way old undos are freed (from bottom up). Emit "undo_event" with event == REDO_EXPIRED for each removed redo. * app/core/gimpmarshal.list: added new marshallers. New undo history implementation: * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/gimpundoeditor.[ch] * app/widgets/gimpundopreview.[ch]: new widgets for the undo step previews and the history itself. * app/widgets/gimppreview-utils.c: added GimpUndoPreview to the list of possible preview types. * app/gui/dialogs-constructors.[ch] * app/gui/dialogs-menu.c * app/gui/dialogs.c * app/gui/image-menu.c * app/gui/toolbox-menu.c: removed the old and added the new undo history to the dialog factory and the various dialog menus. * app/widgets/gimpdnd.[ch]: don't warn if a GType has no corresponding DND type. Instead, return FALSE from the function that failed. * app/widgets/gimppreview.c: check the return value of gimpdnd functions. Not only add drag sources but also remove them when no longer needed. * app/widgets/gimpselectioneditor.h: removed unneeded inclusion of "gui/gui-types.h".
137 lines
2.5 KiB
Makefile
137 lines
2.5 KiB
Makefile
## Process this file with automake to produce Makefile.in
|
|
|
|
if OS_WIN32
|
|
gimp_exp = gimp.exp
|
|
|
|
gimp.exp : gimp.def
|
|
dlltool --output-exp $@ --input-def gimp.def
|
|
|
|
gimp.def: gimp.sym
|
|
echo EXPORTS >$@
|
|
cat $< >>$@
|
|
|
|
mwindows = -mwindows
|
|
|
|
endif
|
|
|
|
SUBDIRS = \
|
|
paint-funcs \
|
|
base \
|
|
core \
|
|
config \
|
|
paint \
|
|
text \
|
|
vectors \
|
|
xcf \
|
|
file \
|
|
plug-in \
|
|
tools \
|
|
widgets \
|
|
gui \
|
|
display \
|
|
pdb
|
|
|
|
scriptdata =
|
|
|
|
bin_PROGRAMS = gimp-1.3
|
|
|
|
##
|
|
## stuff which is about to be replaced by new subsystems
|
|
##
|
|
bye_sources = \
|
|
ops_buttons.c \
|
|
ops_buttons.h \
|
|
path.c \
|
|
path.h \
|
|
pathP.h \
|
|
path_transform.h
|
|
|
|
##
|
|
## stuff
|
|
##
|
|
stuff_sources = \
|
|
appenv.h \
|
|
app_procs.c \
|
|
app_procs.h \
|
|
main.c \
|
|
batch.c \
|
|
batch.h \
|
|
errors.c \
|
|
errors.h \
|
|
libgimp_glue.c \
|
|
libgimp_glue.h
|
|
|
|
gimp_1_3_SOURCES = \
|
|
$(bye_sources) \
|
|
$(stuff_sources)
|
|
|
|
EXTRA_DIST = \
|
|
makefile.msc \
|
|
gimp.rc \
|
|
gimp.sym \
|
|
wilber.ico \
|
|
arch/i386/mmx/detect_mmx.S \
|
|
arch/i386/mmx/paint_funcs_mmx.S
|
|
|
|
if HAVE_GLIBC_REGEX
|
|
REGEXREPL =
|
|
else
|
|
REGEXREPL = $(top_builddir)/regexrepl/libregex.a
|
|
endif
|
|
|
|
gimp_1_3_LDFLAGS = -export-dynamic -export-symbols $(srcdir)/gimp.sym $(mwindows)
|
|
|
|
AM_CPPFLAGS = \
|
|
-DG_LOG_DOMAIN=\"Gimp\" \
|
|
-DGIMP_APP_GLUE_COMPILATION \
|
|
@GIMP_THREAD_FLAGS@ \
|
|
@GIMP_MP_FLAGS@
|
|
|
|
INCLUDES = \
|
|
-I$(top_srcdir) \
|
|
$(GTK_CFLAGS) \
|
|
-I$(includedir)
|
|
|
|
gimp_1_3_LDADD = \
|
|
$(gimp_exp) \
|
|
config/libappconfig.a \
|
|
gui/libappgui.a \
|
|
display/libappdisplay.a \
|
|
tools/libapptools.a \
|
|
widgets/libappwidgets.a \
|
|
core/libappcore.a \
|
|
pdb/libapppdb.a \
|
|
paint/libapppaint.a \
|
|
text/libapptext.a \
|
|
vectors/libappvectors.a \
|
|
xcf/libappxcf.a \
|
|
file/libappfile.a \
|
|
plug-in/libappplug-in.a \
|
|
paint-funcs/libapppaint-funcs.a \
|
|
base/libappbase.a \
|
|
$(top_builddir)/libgimpcolor/libgimpcolor-$(LT_RELEASE).la \
|
|
$(top_builddir)/libgimpmath/libgimpmath-$(LT_RELEASE).la \
|
|
$(top_builddir)/libgimpbase/libgimpbase-$(LT_RELEASE).la \
|
|
$(top_builddir)/libgimpmodule/libgimpmodule-$(LT_RELEASE).la \
|
|
$(top_builddir)/libgimpwidgets/libgimpwidgets-$(LT_RELEASE).la \
|
|
$(top_builddir)/libgimptool/libgimptool-$(LT_RELEASE).la \
|
|
$(GTK_LIBS) \
|
|
$(PANGOFT2_LIBS) \
|
|
$(LIBART_LIBS) \
|
|
$(GIMP_THREAD_LIBS) \
|
|
$(GIMP_MP_LIBS) \
|
|
$(INTLLIBS) \
|
|
$(REGEXREPL)
|
|
|
|
install-exec-hook:
|
|
if DEFAULT_BINARY
|
|
cd $(DESTDIR)$(bindir) \
|
|
&& rm -f gimp$(EXEEXT) \
|
|
&& $(LN_S) gimp-1.3$(EXEEXT) gimp$(EXEEXT)
|
|
endif
|
|
|
|
uninstall-local:
|
|
if DEFAULT_BINARY
|
|
rm -f $(DESTDIR)$(bindir)/gimp$(EXEEXT)
|
|
endif
|