mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 03:52:33 +00:00
99e78c7074
2001-10-22 Michael Natterer <mitch@gimp.org> General cleanup of the selection tools and their PDB wrappers: * app/core/Makefile.am * app/core/gimpimage-contiguous-region.[ch] * app/core/gimpimage-mask-select.[ch]: new files providing a clean, uniform API for the selection functionalities. Changed order of parameters to be consistent, removed code duplication. The region returned by the "by_color" function is not really contiguous but the API is so similar to "by_seed" and it's used in the same context so it's fair enough to put them together. Also, I'm not sure if the two is_pixel_sufficiently_different() I've optimized away were meant to do *exactly* the same. Added a comment there to remember the former difference. * app/core/gimpchannel.[ch] (gimp_channel_feather): removed the "output" channel parameter and made it optionally push an undo (like the other channel operations do). * app/core/gimpimage-mask.c: call gimp_channel_feather() with "push_undo == TRUE", removed some useless comments. * app/tools/gimpbycolorselecttool.[ch] * app/tools/gimpellipseselecttool.[ch] * app/tools/gimpfreeselecttool.[ch] * app/tools/gimpfuzzyselecttool.[ch] * app/tools/gimprectselecttool.[ch]: removed all the actual selection functionality and call the new gimp_image_mask_select_*() and gimp_image_contiguous_region_*() functions instead. * app/tools/gimpbezierselecttool.c * app/tools/gimpiscissorstool.c: use new function gimp_image_mask_select_channel() instead of doing the same manually. * app/tools/gimpbucketfilltool.c: find_contiguous_region() -> gimp_image_contiguous_region_by_seed(). * tools/pdbgen/Makefile.am * tools/pdbgen/groups.pl * tools/pdbgen/pdb/selection_tools.pdb: added new group "Selection Tools" which depends only on "core/" stuff (not on "tools/" any more, brrrr). * tools/pdbgen/pdb/text_tool.pdb: don't include "appenv.h" * tools/pdbgen/pdb/tools.pdb: removed the selection tools. * app/pdb/Makefile.am * app/pdb/selection_tools_cmds.c: new file. * app/pdb/internal_procs.c * app/pdb/text_tool_cmds.c * app/pdb/tools_cmds.c: regenerated. * libgimp/Makefile.am * libgimp/gimp_pdb.h * libgimp/gimpselectiontools_pdb.[ch]: new files. * libgimp/gimptools_pdb.[ch]: regenerated Misc cleanups: * app/app_procs.c: call splash_create() with "no_splash_image" as parameter. * app/display/gimpdisplay-render.c * app/display/gximage.c: don't include "appenv.h". * app/gui/gui.c: call session_restore() only if "restore_session" is TRUE. * app/gui/session.c: don't "if(restore_session)" here and don't include "appenv.h" * app/gui/splash.[ch]: added "gboolean show_image" parameter to splash_create(), don't include "appenv.h" * app/tools/gimppainttool.[ch]: added a "GimpGradient" parameter to gimp_paint_tool_get_color_from_gradient(). * app/tools/gimppaintbrushtool.c: pass the gradient. * app/tools/gimpselectiontool.c * app/tools/gimptransformtool.c * app/tools/tool_manager.c: s/GDisplay/GimpDisplay/. * app/widgets/gimpcontainergridview.[ch]: removed the "white_style" class variable and don't fiddle around with colors and styles... * themes/Default/gtkrc: ...do the same here with a simple rc style.
196 lines
3.9 KiB
Makefile
196 lines
3.9 KiB
Makefile
## Process this file with automake to produce Makefile.in
|
|
|
|
gimpincludedir = $(includedir)/gimp-$(LT_RELEASE)/libgimp
|
|
|
|
AM_CPPFLAGS = @STRIP_BEGIN@ \
|
|
-DGIMPDIR=\""$(gimpdir)"\" \
|
|
-DDATADIR=\""$(gimpdatadir)"\" \
|
|
-DSYSCONFDIR=\""$(gimpsysconfdir)"\" \
|
|
-DG_LOG_DOMAIN=\"LibGimp\" \
|
|
@GIMP_THREAD_FLAGS@ \
|
|
@STRIP_END@
|
|
|
|
INCLUDES = @STRIP_BEGIN@ \
|
|
-I$(top_srcdir) \
|
|
$(GTK_CFLAGS) \
|
|
-I$(includedir) \
|
|
@STRIP_END@
|
|
|
|
EXTRA_DIST = \
|
|
makefile.mingw \
|
|
makefile.mingw.in \
|
|
makefile.msc \
|
|
gimp.def \
|
|
gimpui.def
|
|
|
|
lib_LTLIBRARIES = libgimp-1.3.la libgimpui-1.3.la
|
|
|
|
PDB_WRAPPERS_C = \
|
|
gimpbrushes_pdb.c \
|
|
gimpbrushselect_pdb.c \
|
|
gimpchannel_pdb.c \
|
|
gimpcolor_pdb.c \
|
|
gimpconvert_pdb.c \
|
|
gimpdisplay_pdb.c \
|
|
gimpdrawable_pdb.c \
|
|
gimpedit_pdb.c \
|
|
gimpfileops_pdb.c \
|
|
gimpfloatingsel_pdb.c \
|
|
gimpgimprc_pdb.c \
|
|
gimpgradients_pdb.c \
|
|
gimpgradientselect_pdb.c \
|
|
gimpguides_pdb.c \
|
|
gimphelp_pdb.c \
|
|
gimpimage_pdb.c \
|
|
gimplayer_pdb.c \
|
|
gimpmessage_pdb.c \
|
|
gimpmisc_pdb.c \
|
|
gimppalette_pdb.c \
|
|
gimpparasite_pdb.c \
|
|
gimppaths_pdb.c \
|
|
gimppatterns_pdb.c \
|
|
gimppatternselect_pdb.c \
|
|
gimpplugin_pdb.c \
|
|
gimpproceduraldb_pdb.c \
|
|
gimpselection_pdb.c \
|
|
gimpselectiontools_pdb.c \
|
|
gimptexttool_pdb.c \
|
|
gimptools_pdb.c \
|
|
gimpundo_pdb.c \
|
|
gimpunit_pdb.c
|
|
|
|
PDB_WRAPPERS_H = \
|
|
gimp_pdb.h \
|
|
gimpbrushes_pdb.h \
|
|
gimpbrushselect_pdb.h \
|
|
gimpchannel_pdb.h \
|
|
gimpcolor_pdb.h \
|
|
gimpconvert_pdb.h \
|
|
gimpdisplay_pdb.h \
|
|
gimpdrawable_pdb.h \
|
|
gimpedit_pdb.h \
|
|
gimpfileops_pdb.h \
|
|
gimpfloatingsel_pdb.h \
|
|
gimpgimprc_pdb.h \
|
|
gimpgradients_pdb.h \
|
|
gimpgradientselect_pdb.h \
|
|
gimpguides_pdb.h \
|
|
gimphelp_pdb.h \
|
|
gimpimage_pdb.h \
|
|
gimplayer_pdb.h \
|
|
gimpmessage_pdb.h \
|
|
gimpmisc_pdb.h \
|
|
gimppalette_pdb.h \
|
|
gimpparasite_pdb.h \
|
|
gimppaths_pdb.h \
|
|
gimppatterns_pdb.h \
|
|
gimppatternselect_pdb.h \
|
|
gimpplugin_pdb.h \
|
|
gimpproceduraldb_pdb.h \
|
|
gimpselection_pdb.h \
|
|
gimpselectiontools_pdb.h \
|
|
gimptexttool_pdb.h \
|
|
gimptools_pdb.h \
|
|
gimpundo_pdb.h \
|
|
gimpunit_pdb.h
|
|
|
|
libgimp_1_3_la_SOURCES = @STRIP_BEGIN@ \
|
|
gimp.c \
|
|
gimp.h \
|
|
gimptypes.h \
|
|
${PDB_WRAPPERS_C} \
|
|
${PDB_WRAPPERS_H} \
|
|
gimpchannel.c \
|
|
gimpchannel.h \
|
|
gimpdrawable.c \
|
|
gimpdrawable.h \
|
|
gimpgradientselect.c \
|
|
gimpgradientselect.h \
|
|
gimphelp.c \
|
|
gimpimage.c \
|
|
gimpimage.h \
|
|
gimplayer.c \
|
|
gimplayer.h \
|
|
gimppixelrgn.c \
|
|
gimppixelrgn.h \
|
|
gimpproceduraldb.c \
|
|
gimpproceduraldb.h \
|
|
gimpselection.c \
|
|
gimpselection.h \
|
|
gimptile.c \
|
|
gimptile.h \
|
|
gimpunit.c \
|
|
\
|
|
gimpintl.h \
|
|
stdplugins-intl.h \
|
|
libgimp-intl.h \
|
|
@STRIP_END@
|
|
|
|
libgimpui_1_3_la_SOURCES = @STRIP_BEGIN@ \
|
|
gimpui.c \
|
|
gimpui.h \
|
|
gimpuitypes.h \
|
|
\
|
|
gimpmenu.c \
|
|
gimpmenu.h \
|
|
gimpbrushmenu.c \
|
|
gimpgradientmenu.c \
|
|
gimppatternmenu.c \
|
|
\
|
|
gimpexport.c \
|
|
gimpexport.h \
|
|
@STRIP_END@
|
|
|
|
gimpinclude_HEADERS = @STRIP_BEGIN@ \
|
|
gimpcolordisplay.h \
|
|
gimpcolorselector.h \
|
|
\
|
|
gimp.h \
|
|
gimptypes.h \
|
|
${PDB_WRAPPERS_H} \
|
|
gimpchannel.h \
|
|
gimpdrawable.h \
|
|
gimpenums.h \
|
|
gimpgradientselect.h \
|
|
gimpimage.h \
|
|
gimplayer.h \
|
|
gimpmodule.h \
|
|
gimppixelrgn.h \
|
|
gimpproceduraldb.h \
|
|
gimpselection.h \
|
|
gimptile.h \
|
|
\
|
|
gimpexport.h \
|
|
\
|
|
gimpintl.h \
|
|
\
|
|
gimpui.h \
|
|
gimpuitypes.h \
|
|
\
|
|
gimpmenu.h \
|
|
@STRIP_END@
|
|
|
|
EXTRA_HEADERS +=
|
|
|
|
libgimp_1_3_la_LDFLAGS = @STRIP_BEGIN@ \
|
|
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
|
|
@STRIP_END@
|
|
|
|
libgimp_1_3_la_LIBADD = $(GLIB_LIBS)
|
|
|
|
libgimpui_1_3_la_LDFLAGS = @STRIP_BEGIN@ \
|
|
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
|
|
@STRIP_END@
|
|
|
|
libgimpui_1_3_la_LIBADD = $(GTK_LIBS)
|
|
|
|
.PHONY: files
|
|
|
|
files:
|
|
@files=`ls $(DISTFILES) 2> /dev/null`; for p in $$files; do \
|
|
echo $$p; \
|
|
done
|
|
|
|
makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/libgimp/makefile.mingw.in
|
|
cd $(top_builddir) && CONFIG_FILES=libgimp/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|