Commit Graph

3211 Commits

Author SHA1 Message Date
David Odin eeebb20b25 GtkPreview->GtkDrawingArea, plus some minor code cleanups.
* plug-ins/common/channel_mixer.c: GtkPreview->GtkDrawingArea, plus
  some minor code cleanups.
2004-07-30 19:55:03 +00:00
David Odin 37807e024a Transformed one GtkPreview to a GimpPreviewArea and the other to a simple
* plug-ins/common/CML_explorer.c: Transformed one GtkPreview to a
  GimpPreviewArea and the other to a simple GtkDrawingArea, since this
  makes the code simpler.
2004-07-30 18:45:34 +00:00
Sven Neumann 61dd01a0be optimized preview filling a little bit, removed trailing whitespace.
2004-07-30  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/ccanalyze.c (fillPreview): optimized preview
	filling a little bit, removed trailing whitespace.
2004-07-30 12:26:11 +00:00
David Odin 77ef39284d converted to use a GimpPreviewArea, and some small cleanups (g_malloc to
* common/ccanalyze.c: converted to use a GimpPreviewArea, and some
  small cleanups (g_malloc to g_new, removing tabs)
2004-07-30 12:03:30 +00:00
Sven Neumann c6cbd6d335 Applied a bunch of AIX portability fixes (bug #148813):
2004-07-30  Sven Neumann  <sven@gimp.org>

	Applied a bunch of AIX portability fixes (bug #148813):

	* configure.in: when testing for Xmu library, link with -lXt -lX11.

	* app/gui/tips-parser.c
	* app/gui/user-install-dialog.c
	* app/tools/tools-enums.h
	* app/widgets/gimpdasheditor.c
	* app/widgets/widgets-enums.h
	* libgimpthumb/gimpthumb-error.h
	* libgimpwidgets/gimpcolorbutton.c
	* plug-ins/common/edge.c: removed trailing commas from enums.

	* plug-ins/common/snoise.c

	* plug-ins/imagemap/imap_cmd_move.c: no C++ style comments.

	* app/paint-funcs/paint-funcs-generic.h
	* app/paint-funcs/paint-funcs.c: use integers for bit fields.
2004-07-30 00:57:22 +00:00
Sven Neumann 7f60cbf082 removed preview code that isn't used any longer.
2004-07-30  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/bumpmap.c: removed preview code that isn't used
	any longer.
2004-07-29 23:41:36 +00:00
David Odin 014a676b28 use GimpPreviewArea instead of GtkPreview (which leads to much simpler
* plug-ins/common/bumpmap.c: use GimpPreviewArea instead of
  GtkPreview (which leads to much simpler code)
2004-07-29 22:52:09 +00:00
David Odin ab80007315 converted all the GtkPreviews to GimpPreviewArea.
* plug-ins/FractalExplorer/Dialogs.c: converted all the GtkPreviews to
  GimpPreviewArea.
2004-07-29 20:52:56 +00:00
Shlomi Fish e8ae7e7f28 normalized the names of the fields of gimpressionist_vals_t.
* plug-ins/gimpressionist/*.[ch]: normalized the names of the fields
of gimpressionist_vals_t.
2004-07-29 18:41:47 +00:00
Sven Neumann c307429a24 libgimpwidgets/Makefile.am libgimpwidgets/gimpwidgets.def
2004-07-29  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/Makefile.am
	* libgimpwidgets/gimpwidgets.def
	* libgimpwidgets/gimpwidgets.h
	* libgimpwidgets/gimpwidgetstypes.h
	* libgimpwidgets/gimppreviewarea.[ch]: added GimpPreviewArea, a
	replacement for GtkPreview, loosely based on patches from Geert
	Jordaens and David Odin. Fixes bug #144759.

	* plug-ins/common/sharpen.c: use the new widget instead of a
	GtkPreview; saves about 100 lines of rather complex code :)
2004-07-29 17:10:28 +00:00
Shlomi Fish d7b314d13f converted a multiple if into a nested one.
* plug-ins/gimpressionist/repaint.c: converted a multiple if into
a nested one.
2004-07-29 12:55:46 +00:00
Sven Neumann d750b5c212 applied patch by Kevin Cozens that moves a g_free() to the right place
2004-07-29  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_free_script):
	applied patch by Kevin Cozens that moves a g_free() to the right
	place (bug #148729).
2004-07-28 22:39:49 +00:00
Shlomi Fish 8a94538efe removed a redundant parameter from one of the internal functions. Made
* plug-ins/gimpressionist/brush.c: removed a redundant parameter
from one of the internal functions.
* plug-ins/gimpressionist/utils.c: Made sure that resources that
are selected by the presets will position their list views
accordingly.
2004-07-28 19:35:36 +00:00
Shlomi Fish 06bdf47027 created a base function for two functions with duplicate code.
* plug-ins/gimpressionist/presets.c: created a base function for
two functions with duplicate code.
2004-07-28 18:42:46 +00:00
Sven Neumann f60cc31256 no need to include "libgimp/stdplugins-intl.h" here.
2004-07-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_default_dialog.c: no need to include
	"libgimp/stdplugins-intl.h" here.

2004-07-28  Sven Neumann  <sven@gimp.org>

	* POTFILES.in: updated.
2004-07-28 16:50:50 +00:00
Sven Neumann e082fd5572 Applied a patch from Brion Vibber that makes the TWAIN plug-in available
2004-07-28  Sven Neumann  <sven@gimp.org>

	Applied a patch from Brion Vibber that makes the TWAIN plug-in
	available on Mac OS X (bug #147962):

	* configure.in
	* plug-ins/Makefile.am: check for Mac OS X twain support.

	* plug-ins/twain/Makefile.am
	* plug-ins/twain/tw_local.h
	* plug-ins/twain/tw_mac.c
	* plug-ins/twain/tw_platform.h
	* plug-ins/twain/tw_win.c: new files with platform specific code.

	* plug-ins/twain/README
	* plug-ins/twain/tw_dump.[ch]
	* plug-ins/twain/tw_func.[ch]
	* plug-ins/twain/tw_util.[ch]
	* plug-ins/twain/twain.c: changed accordingly.

	* plug-ins/twain/gimp-twain.png: twain application icon used by
	the Mac port.

	* plug-ins/twain/tw_sess.c: removed, doesn't seem to be used.
2004-07-28 15:54:50 +00:00
David Odin d0b0388c38 Added a toggle button to enable/disable preview updating. Should fix
*  plug-ins/common/unsharp.c: Added a toggle button to enable/disable
	preview updating. Should fix #144972.
2004-07-28 13:58:08 +00:00
David Odin e491608fb0 plug-ins/common/shift.c plug-ins/common/sinus.c plug-ins/common/snoise.c
* plug-ins/common/shift.c
	* plug-ins/common/sinus.c
	* plug-ins/common/snoise.c
	* plug-ins/common/spheredesigner.c: added missing calls to
	g_rand_free (), remove tabs while I was at it.

	* plug-ins/common/smooth_palette.c: minor cleanup

	* plug-ins/common/spread.c: removed tabs.
2004-07-28 12:10:20 +00:00
David Odin 971b131956 fix a smallish memory leak. 2004-07-28 09:45:53 +00:00
Sven Neumann bd427b2e4d libgimpbase/Makefile.am libgimpbase/gimpbase.h libgimpbase/gimpbase.def
2004-07-27  Sven Neumann  <sven@gimp.org>

	* libgimpbase/Makefile.am
	* libgimpbase/gimpbase.h
	* libgimpbase/gimpbase.def
	* libgimpbase/gimpmemsize.[ch]: added new files with memsize
	related functions (moved here from gimputil.c) and
	GIMP_TYPE_MEMSIZE (moved here from app/config/gimpconfig-types.[ch]).

	* libgimpbase/gimputils.[ch]: removed gimp_memsize_to_string() here.

	* libgimpbase/gimpunit.[ch]: added GIMP_TYPE_UNIT (moved here from
	app/config/gimpconfig-types.[ch]).

	* libgimpbase/gimpbase-private.c
	* libgimp/gimptile.c
	* libgimp/gimpunitcache.c
	* plug-ins/help/domain.c
	* app/xcf/xcf-read.c: need to include glib-object.h.

	* plug-ins/common/uniteditor.c: use GIMP_TYPE_UNIT.

	* app/config/gimpconfig-types.[ch]: removed code that lives in
	libgimpbase now.

	* app/config/gimpconfig-deserialize.c: changed accordingly.

	* app/config/gimpbaseconfig.c
	* app/config/gimpdisplayconfig.c
	* app/core/gimpcontext.c
	* app/gui/grid-dialog.c
	* app/tools/gimpcolortool.c
	* app/widgets/gimpaction.c
	* app/widgets/gimpunitstore.c: no need to include gimpconfig-types.h
	any longer.
2004-07-27 16:39:00 +00:00
Michael Natterer 820b4d247b libgimp/Makefile.am libgimp/gimp.h libgimp/gimpui.h
2004-07-27  Michael Natterer  <mitch@gimp.org>

	* libgimp/Makefile.am
	* libgimp/gimp.h
	* libgimp/gimpui.h
	* libgimp/gimppalettemenu.[ch]
	* libgimp/gimppaletteselect.[ch]: added palette select wrapper and
	widget (straight copy & string replace of the font select stuff).
	Fixes bug #136130.

	* plug-ins/script-fu/script-fu-enums.h
	* plug-ins/script-fu/script-fu-scripts.c
	* plug-ins/script-fu/siod-wrapper.c: added SF_PALETTE so it can
	be used in scripts.

	* plug-ins/script-fu/scripts/test-sphere.scm: added a palette
	parameter to the test script.
2004-07-27 15:15:58 +00:00
Shlomi Fish bfa52ab740 added a de-allocation to the PPM's allocated by the size map dialog.
* plug-ins/gimpressionist/: added a de-allocation to the PPM's
allocated by the size map dialog.
2004-07-26 19:22:22 +00:00
Shlomi Fish 7e4db68e80 placed all the orientation map-related public functions in orientmap.h.
* plug-ins/gimpressionist/: placed all the orientation map-related
public functions in orientmap.h. Now we're freeing the PPM's that it
is allocating by a call to orientation_map_free_resources().
2004-07-26 14:56:44 +00:00
Sven Neumann 23935b2bb9 plug-ins/bmp/bmp.h applied a patch by Brion Vibber that fixes extra data
2004-07-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/bmp/bmp.h
	* plug-ins/bmp/bmpread.c: applied a patch by Brion Vibber that
	fixes extra data overflow, nonstandard 16bpp field arrangement
	and unrecognized compression (bug #143682).
2004-07-26 00:44:01 +00:00
William Skaggs 2a803755fd Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/decompose.c: clamp results of LAB decomposition
	so that out-of-gamut conversions do not overflow and get
	badly distorted.  Fixes bug #147603.  Note that it would probably
	be a good idea to do similar things for other conversion types.
2004-07-25 21:02:31 +00:00
Shlomi Fish 95cf883274 converted checks for initialization of ppm's done by checking the "col"
* plug-ins/gimpressionist/: converted checks for initialization of
ppm's done by checking the "col" buffer, to macro calls.
2004-07-25 18:12:49 +00:00
Shlomi Fish 5559b6223e fixed bug #148088: ("Gimpressioinst crashes if given malicious presets
* plug-ins/gimpressionist/: fixed bug #148088: ("Gimpressioinst crashes if
given malicious presets with out of range values, in the radio buttons
group numeric values: "placetype", "orienttype", etc. ").

This was done by adding clamps to the relevant values in the preset.
2004-07-25 14:29:27 +00:00
Sven Neumann 36d3ac5967 fixed formatting 2004-07-24 19:54:03 +00:00
Shlomi Fish 60f4e7680b created a header "orientation.h" for the Orientation tab specific
* plug-ins/gimpressionist/: created a header "orientation.h" for the
Orientation tab specific declarations.
2004-07-23 19:34:47 +00:00
Sven Neumann a70d2dd8a2 declared global const variable as static. Fixes compiler warnings seen
2004-07-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/gif.c: declared global const variable as static.
	Fixes compiler warnings seen with gcc 3.4.1 (don't ask me why).
2004-07-21 17:06:18 +00:00
Michael Natterer a80977b0bc app/widgets/gimptemplateeditor.c plug-ins/common/gif.c set GTK_SHADOW_IN
2004-07-21  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimptemplateeditor.c
	* plug-ins/common/gif.c
	* plug-ins/common/jpeg.c: set GTK_SHADOW_IN on scrolled windows of
	text views. Fixes bug #148025.
2004-07-21 16:29:29 +00:00
Shlomi Fish 59179c2dd9 normalized the identifiers in placement.c.
* plug-ins/gimpressionist/: normalized the identifiers in placement.c.
2004-07-21 13:48:13 +00:00
William Skaggs 85e884cee1 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/Lighting/lighting_main.c
	* plug-ins/Lighting/lighting_main.h
	* plug-ins/Lighting/lighting_preview.c
	* plug-ins/Lighting/lighting_preview.h
	* plug-ins/Lighting/lighting_shade.c
	* plug-ins/Lighting/lighting_ui.c: completely reworked UI for
	lighting page.  Now supports up to 6 lights (more is trivial).
	Added ability to temporarily isolate selected light.  Added
	light intensity controls.  Can interactively position each light
	(does not quite work yet for directional lights).
2004-07-20 18:19:47 +00:00
Shlomi Fish faa6e7b70d fixed the incorrect strings for input and output of the preset's fields.
* plug-ins/gimpressionist/presets.c: fixed the incorrect strings
for input and output of the preset's fields. (a relic of an
irresponsible search-and-replace script).
* plug-ins/gimpressionist/: normalized the identifiers of
orientmap.c.
2004-07-20 16:54:22 +00:00
Sven Neumann 6d8b24dace plug-ins/winicon/icoload.c added explicit casts to please the compiler.
2004-07-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/winicon/icoload.c
	* plug-ins/winicon/icosave.c: added explicit casts to please the
	compiler.
2004-07-20 00:53:19 +00:00
Sven Neumann 3da94c7257 added paper.h.
2004-07-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/gimpressionist/Makefile.am (gimpressionist_sources):
	added paper.h.
2004-07-20 00:28:58 +00:00
Sven Neumann 686a5687e7 added back arcball.h.
2004-07-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/MapObject/Makefile.am (MapObject_SOURCES): added back
	arcball.h.

	* plug-ins/MapObject/mapobject_main.c
	* plug-ins/MapObject/mapobject_preview.c: no need to include
	arcball.h here.
2004-07-20 00:09:58 +00:00
Sven Neumann abf7ed21a1 added back gfig-examples
2004-07-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/gfig/Makefile.am (SUBDIRS): added back gfig-examples

	* plug-ins/gfig/gfig-examples/Makefile.am: cleanup.
2004-07-19 23:44:42 +00:00
Sven Neumann ce5ffd3ea7 fixed some GUI issues: left-align labels, use stock buttons, added
2004-07-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/Lighting/lighting_ui.c: fixed some GUI issues:
	left-align labels, use stock buttons, added line-breaks to make
	the code fit into 80 columns.
2004-07-19 22:06:09 +00:00
Sven Neumann 95ca2a8dd0 fixed a couple of issues with the new code: don't include individual glib
2004-07-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/Lighting/lighting_ui.c: fixed a couple of issues with
	the new code: don't include individual glib headers, never ever
	use sprintf(), mark user-visible strings for translations, use
	default messages, removed trailing whitespace.
2004-07-19 21:33:55 +00:00
William Skaggs f5d56368e7 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/Lighting/lighting_ui.c: added ability to save and load
	presets for lights.
2004-07-19 19:49:19 +00:00
Shlomi Fish e113a667d6 normalized some variables in the module and fixed some indentation.
* plug-ins/gimpressionist/orientation.c: normalized some variables
in the module and fixed some indentation.
2004-07-19 16:19:01 +00:00
Shlomi Fish 894de83e12 Fixed a copy-and-paste error with the dates of my commits. removed a few
* ChangeLog: Fixed a copy-and-paste error with the dates of my commits.
* plug-ins/gimpressionist/ppmtool.c: removed a few commented-out
  asserts, and the function that was used to implement them.
2004-07-19 12:18:59 +00:00
Sven Neumann 8e55c2e1cc renamed struct member file_selection to file_chooser.
2004-07-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_browse.[ch]: renamed struct member
	file_selection to file_chooser.
2004-07-19 11:35:43 +00:00
Shlomi Fish c600346e2a replaced a few if's+destructors pairs for ppm_ with just the destructors.
* plug-ins/gimpressionist/repaint.c: replaced a few if's+destructors
pairs for ppm_ with just the destructors.
2004-07-19 10:28:23 +00:00
Shlomi Fish 2964e2add6 normalized some identifiers of repaint.c, and corrected some indentation
* plug-ins/gimpressionist/repaint.c: normalized some identifiers of
repaint.c, and corrected some indentation there.
2004-07-19 10:02:33 +00:00
Philip Lafleur 68aa11c012 Fixed a write to unallocated memory that was causing crashes in various
2004-07-17  Philip Lafleur  <plafleur@cvs.gnome.org>

	* plug-ins/common/polar.c (dialog_update_preview): Fixed a
	write to unallocated memory that was causing crashes in various
	spots.
2004-07-18 01:45:57 +00:00
Philip Lafleur 774b116e08 moved array initialization out of variable declaration. Fixes bug #147799.
2004-07-17  Philip Lafleur  <plafleur@cvs.gnome.org>

	* plug-ins/common/polar.c (polarize_func): moved array
	initialization out of variable declaration. Fixes bug #147799.
2004-07-18 00:30:56 +00:00
Sven Neumann d95059db48 use GIMP_STOCK_WEB for "file-open-location".
2004-07-17  Sven Neumann  <sven@gimp.org>

	* app/actions/file-actions.c (file_actions): use GIMP_STOCK_WEB
	for "file-open-location".

	* app/widgets/gimpfiledialog.c: create the scrolled window with
	shadow_type GTK_SHADOW_IN.

	* app/widgets/gimpfileprocview.c (gimp_file_proc_view_new): skip
	procedures that register a prefix (the URL loader).

	* app/widgets/gimphelp-ids.h: removed help IDs that used to be
	used from the file-open and file-save menus.

	* plug-ins/common/xwd.c (query): "X window dump" seems to be more
	appropriate than "X window image".
2004-07-17 13:06:59 +00:00
Philip Lafleur a23024eb2b Applied a patch from Brion Vibber that fixes corruption when saving
2004-07-17  Philip Lafleur  <plafleur@cvs.gnome.org>

	* plug-ins/bmp/bmpwrite.c (WriteImage): Applied a patch from
	Brion Vibber that fixes corruption when saving RLE-encoded
	BMPs on big endian hosts. Fixes bug #147759.
2004-07-17 11:33:03 +00:00