Commit Graph

15672 Commits

Author SHA1 Message Date
Sven Neumann 2617fe3fe4 plug-ins/bmp/bmp.h (Bitmap_Head_Struct) use a signed long for width and
2005-03-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/bmp/bmp.h (Bitmap_Head_Struct)
	* plug-ins/bmp/bmpread.c: use a signed long for width and height
	and check that width is > 0 (negative height is allowed and
	handled by our code). Fixes bug #171453.
2005-03-24 20:56:39 +00:00
William Skaggs bd9ef9bed6 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/core/gimpimage-undo-push.[ch]
	* app/core/gimplayermask.c: fix compile warnings.
2005-03-24 19:23:14 +00:00
Sven Neumann b41ee0c7ee use RINT() instead or ROUND() to get proper rounding of negative values.
2005-03-24  Sven Neumann  <sven@gimp.org>

	* app/display/gimpstatusbar.c (gimp_statusbar_push_coords)
	(gimp_statusbar_set_cursor): use RINT() instead or ROUND() to get
	proper rounding of negative values. Fixes bug #171497.
2005-03-24 17:34:13 +00:00
William Skaggs b5f1ae88e2 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/core/core-enums.[ch]
	* app/core/gimpimage-undo-push.[ch]
	* app/core/gimplayermask.[ch]:
	* app/pdb/pdb_glue.h
	* app/actions/layers-commands.c: try again from clean tree;
	hopefully will work this time.  (bug #148852)
2005-03-24 17:10:03 +00:00
Sven Neumann afb6274e51 libgimp/libgimp-sections.txt updated.
2005-03-24  Sven Neumann  <sven@gimp.org>

	* libgimp/libgimp-sections.txt
	* libgimp/tmpl/gimpplugin.sgml: updated.
2005-03-24 16:56:01 +00:00
Michael Natterer ae593a7360 updated after menu branch changes.
2005-03-24  Michael Natterer  <mitch@gimp.org>

	* de.po: updated after menu branch changes.
2005-03-24 16:42:50 +00:00
Sven Neumann 1754a9daa2 don't mark menu branches for translation; the translatable branch name is
2005-03-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/*.scm: don't mark menu branches for
	translation; the translatable branch name is registered by the
	Script-Fu extension.
2005-03-24 16:40:00 +00:00
Michael Natterer 0a5ce16b84 Added API to explicitly register dynamic menu items hierarchies. Fixes bug
2005-03-24  Michael Natterer  <mitch@gimp.org>

	Added API to explicitly register dynamic menu items hierarchies.
	Fixes bug #170623.

	* app/core/gimp.h: added "GSList *plug_in_menu_branches".

	* app/plug-in/plug-in-types.h

	* app/plug-in/plug-ins.[ch]: added API to register plug-in menu
	branches, just as for locale and help domans. Cleaned up handling
	of locale and help domains.

	(plug_ins_exit): free the registered menu branches.

	* app/actions/plug-in-actions.[ch] (plug_in_actions_add_branch):
	new function to explicitly add a menu branch action.

	(plug_in_actions_setup): add the registered menu branches to each
	new action group.

	(plug_in_actions_build_path): always strip the untranslated menu
	path from underlines before using it as hash table key or action
	name.

	* app/menus/plug-in-menus.c (plug_in_menus_add_proc): changed
	accordingly: strip underlines from untranslated menu paths before
	passing them to plug_in_menus_build_path().

	* app/core/gimp-gui.[ch]: added gimp_menus_create_branch() plus
	vtable entry to access the new stuff from the core. Renamed the
	functions desling with items from gimp_foo_entry() to
	gimp_foo_item().

	* app/gui/gui-vtable.c: implement create_branch() and add the
	branch action to all existing "plug-in" action groups. Note that
	we don't need to create any menus because that happens implicitly
	when adding menu items.

	* tools/pdbgen/pdb/plug_in.pdb (plugin_menu_branch_register): new
	PDB wrapper to access branch registering from plug-ins.

	* app/pdb/internal_procs.c
	* app/pdb/plug_in_cmds.c
	* libgimp/gimpplugin_pdb.[ch]: regenerated.

	* libgimp/gimp.def: changed accordingly.

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_find_scripts):
	register the menu branches for all included scripts.
2005-03-24 16:08:04 +00:00
Sven Neumann 13bd5eabe5 use a GimpColorHexEntry widget.
2005-03-24  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcolormapeditor.c: use a GimpColorHexEntry widget.
2005-03-24 15:29:48 +00:00
Sven Neumann dd4c196624 applied a patch from David Costanzo that fixes handling of odd-length
2005-03-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/bmp/bmpread.c: applied a patch from David Costanzo that
	fixes handling of odd-length pixel encodings in "absolute mode" of
	RLE4 compressed data (bug #171306).
2005-03-24 13:31:44 +00:00
Sven Neumann 45fd7984bb Merged from gimp-2-2 branch:
2005-03-24  Sven Neumann  <sven@gimp.org>

	Merged from gimp-2-2 branch:

	* app/widgets/gimphistogrameditor.c: change to the Value channel
	if the current channel becomes invalid due to an image mode change.
	Fixes bug #170116.
2005-03-24 13:09:10 +00:00
Sven Neumann 4314dca031 app/actions/layers-commands.c app/core/core-enums.[ch]
2005-03-24  Sven Neumann  <sven@gimp.org>

	* app/actions/layers-commands.c
	* app/core/core-enums.[ch]
	* app/core/gimpimage-undo-push.[ch]
	* app/pdb/pdb_glue.h: reverted Bill's changes to fix the build.
2005-03-24 10:34:41 +00:00
William Skaggs 72241e5ed2 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/core/core-enums.[ch]
	* app/core/gimpimage-undo-push.[ch]
	* app/pdb/pdb_glue.h
	* app/actions/layers-commands.c: make layer mask property changes
	undoable, should fix bug #148852.  Note that a little shape-layer
	stuff is in core-enums, will be needed shortly.
2005-03-24 02:16:40 +00:00
Sven Neumann 5ef815da2c seperated platform specific code into individual functions; should make it
2005-03-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c: seperated platform specific code into
	individual functions; should make it easier to contribute the missing
	platform specific code ...
2005-03-24 01:12:07 +00:00
Sven Neumann c3578e01b3 plug-ins/script-fu/scripts/alien-glow-logo.scm
2005-03-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/alien-glow-logo.scm
	* plug-ins/script-fu/scripts/alien-neon-logo.scm
	* plug-ins/script-fu/scripts/basic1-logo.scm
	* plug-ins/script-fu/scripts/basic2-logo.scm
	* plug-ins/script-fu/scripts/blended-logo.scm
	* plug-ins/script-fu/scripts/bovinated-logo.scm
	* plug-ins/script-fu/scripts/chalk.scm
	* plug-ins/script-fu/scripts/chip-away.scm
	* plug-ins/script-fu/scripts/chrome-logo.scm
	* plug-ins/script-fu/scripts/comic-logo.scm
	* plug-ins/script-fu/scripts/coolmetal-logo.scm
	* plug-ins/script-fu/scripts/frosty-logo.scm
	* plug-ins/script-fu/scripts/glossy.scm
	* plug-ins/script-fu/scripts/gradient-bevel-logo.scm
	* plug-ins/script-fu/scripts/neon-logo.scm
	* plug-ins/script-fu/scripts/starburst-logo.scm
	* plug-ins/script-fu/scripts/starscape-logo.scm
	* plug-ins/script-fu/scripts/t-o-p-logo.scm
	* plug-ins/script-fu/scripts/textured-logo.scm: no need to set the
	text as name of the text layer. The text layer is created with that
	name already.
2005-03-24 00:26:15 +00:00
Sven Neumann e6b63117cf app/widgets/gimpmessagebox.h added G_GNUC_PRINTF attributes.
2005-03-24  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpmessagebox.h
	* libgimpconfig/gimpconfigwriter.h: added G_GNUC_PRINTF attributes.
2005-03-23 23:36:17 +00:00
William Skaggs e9fb0580da Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/screenshot.c: add ability to define region
	by pointer-dragging.  UI may need tweaking.
2005-03-23 21:58:28 +00:00
Sven Neumann a93f4bdb94 app/app-docs.sgml updated.
2005-03-23  Sven Neumann  <sven@gimp.org>

	* app/app-docs.sgml
	* app/app-sections.txt: updated.
2005-03-23 16:38:26 +00:00
Sven Neumann f579c11f3b fixed gtk-doc comments; added G_GNUC_PRINTF attribute.
2005-03-23  Sven Neumann  <sven@gimp.org>

	* app/display/gimpcanvas.[ch] (gimp_canvas_draw_text): fixed
	gtk-doc comments; added G_GNUC_PRINTF attribute.
2005-03-23 13:53:31 +00:00
Michael Natterer e243c26985 same fix as below for ID-based DND types.
2005-03-23  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpselectiondata.c (gimp_selection_data_get_image)
	(gimp_selection_data_get_component)
	(gimp_selection_data_get_item): same fix as below for ID-based DND
	types.
2005-03-23 12:29:56 +00:00
Sven Neumann ec7fb058c6 added a g_warning() if UTF-8 validation fails 2005-03-23 11:30:52 +00:00
Sven Neumann 2bea01cab8 libgimp/gimpbrushmenu.c libgimp/gimpfontmenu.c libgimp/gimpgradientmenu.c
2005-03-23  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpbrushmenu.c
	* libgimp/gimpfontmenu.c
	* libgimp/gimpgradientmenu.c
	* libgimp/gimppalettemenu.c
	* libgimp/gimppatternmenu.c: accept names passed over DND no matter
	whether they are NULL-terminated or not.

	* app/widgets/gimpselectiondata.c: same change here, also
	UTF8-validate the selection data before accepting it.
2005-03-23 11:26:56 +00:00
Sven Neumann d3b0374e2b libgimp/gimpbrushmenu.c libgimp/gimpfontmenu.c libgimp/gimpgradientmenu.c
2005-03-23  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpbrushmenu.c
	* libgimp/gimpfontmenu.c
	* libgimp/gimpgradientmenu.c
	* libgimp/gimppalettemenu.c
	* libgimp/gimppatternmenu.c: accept drops on selection widgets as
	requested in bug #10677.
2005-03-23 10:51:33 +00:00
Sven Neumann 3df8b243de added gtk-doc comments explaining what functions to use instead of these
2005-03-23  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpmenu.c: added gtk-doc comments explaining what
	functions to use instead of these deprecated ones.
2005-03-23 09:58:33 +00:00
Sven Neumann 0ad939a46f create the swap directory if it doesn't exist. Will still fail if the
2005-03-23  Sven Neumann  <sven@gimp.org>

	* app/base/tile-swap.c (tile_swap_init): create the swap directory
	if it doesn't exist. Will still fail if the parent directory is not
	available. Still good enough to close bug #167506.

	* app/app_procs.c: tweaked error message.
2005-03-22 23:20:56 +00:00
Sven Neumann 6b1d1888bc unset "Keep transparency", it is not what the user wants if this plug-in
2005-03-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/colortoalpha.c: unset "Keep transparency", it is
	not what the user wants if this plug-in is being used.
2005-03-22 22:51:03 +00:00
Sven Neumann 62fa2ee2b3 removed global variables; added a short delay after destroying the dialog
2005-03-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c: removed global variables; added a
	short delay after destroying the dialog so that the root window
	gets redrawn; moved camera icon to the action button.
2005-03-22 21:29:04 +00:00
William Skaggs 0084ddf8cb Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/screenshot.c: always derive image from root
	window, fixes bug #144788.
2005-03-22 20:08:22 +00:00
Sven Neumann 749915136a app/widgets/gimpactiongroup.c use gtk_action_set_sensitive() and
2005-03-22  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpactiongroup.c
	* app/widgets/gimpcolorpanel.c: use gtk_action_set_sensitive()
	and gtk_action_set_visible() instead of setting the respective
	properties.
2005-03-22 18:51:57 +00:00
William Skaggs 158038594c missed in previous commit 2005-03-22 17:59:48 +00:00
William Skaggs 39f3972bee Bill Skaggs <weskaggs@primate.ucdavis.edu>
* configure.in: raise required librsvg version to 2.8.0
	* plug-ins/common/svg.c: change deprecated librsvg api,
	fixes bug #147662.
2005-03-22 17:09:53 +00:00
William Skaggs 8d0a6f5cf1 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/sparkle.c
	* plug-ins/common/spheredesigner.c
	* plug-ins/common/struc.c
	* plug-ins/common/tileit.c
	* plug-ins/common/warp.c
	* plug-ins/common/whirlpinch.c
	* plug-ins/common/wind.c: handle situation where intersection
	of selection and drawable is empty; progress on bug #155733.
2005-03-21 23:59:12 +00:00
William Skaggs 1cc9701bed Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimptransformtool.c
	* app/tools/gimpfliptool.c
	* app/core/gimpdrawabletransform.c: avoid messages and critical
	error when transforming a drawable that does not intersect
	the selection.
2005-03-21 22:47:06 +00:00
Sven Neumann e87f6dcc14 changed time-smoother code to use guint32 time values externally, guint64
2005-03-21  Sven Neumann  <sven@gimp.org>

	* app/paint/gimpink.c: changed time-smoother code to use guint32
	time values externally, guint64 internally. Proper fix for bug
	#164272.
2005-03-21 21:51:29 +00:00
Sven Neumann eac2c0065b typo 2005-03-21 21:29:20 +00:00
Sven Neumann 123133ec57 bail out if widgets/gimpaction.group.h has not been included beforehand.
2005-03-21  Sven Neumann  <sven@gimp.org>

	* app/actions/dialogs-actions.h: bail out if
	widgets/gimpaction.group.h has not been included beforehand.

	* app/actions/actions.c: include widgets/gimpaction.group.h. Fixes
	build with amd64/gcc-4.0 (Debian bug report #300227).
2005-03-21 21:18:20 +00:00
Sven Neumann 3c5d71da83 fixed defaults for mouse wheel controller (bug #171083, fix spotted by
2005-03-21  Sven Neumann  <sven@gimp.org>

	* etc/controllerrc: fixed defaults for mouse wheel controller (bug
	#171083, fix spotted by Michael Schumacher).
2005-03-21 19:37:57 +00:00
Sven Neumann 2bb4d73e13 disable search for tree views so that treeview typeahead doesn't collide
2005-03-21  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcontainertreeview.c
	(gimp_container_tree_view_constructor): disable search for tree
	views so that treeview typeahead doesn't collide with global
	accelerators. Fixes bug #169339 and would suck less if bug #170435
	got fixed.
2005-03-21 19:20:11 +00:00
Sven Neumann 5d7931db74 changed all transform utilities to modify the passed transform matrix
2005-03-21  Sven Neumann  <sven@gimp.org>

	* app/core/gimp-transform-utils.[ch]: changed all transform
	utilities to modify the passed transform matrix instead of
	creating a new one.

	* app/text/gimptextlayer-transform.c
	* app/tools/gimpperspectivetool.c
	* app/tools/gimprotatetool.c
	* app/tools/gimpscaletool.c
	* app/tools/gimpsheartool.c
	* app/vectors/gimpvectors.c
	* tools/pdbgen/pdb/drawable_transform.pdb
	* tools/pdbgen/pdb/transform_tools.pdb: changed accordingly.

	* app/pdb/drawable_transform_cmds.c
	* app/pdb/transform_tools_cmds.c: regenerated.
2005-03-21 19:10:11 +00:00
Sven Neumann 32d063d917 fixed parameter check, NULL is valid for an empty palette. Fixes bug
2005-03-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/winicon/icosave.c (ico_create_palette): fixed parameter
	check, NULL is valid for an empty palette. Fixes bug #170812.
2005-03-21 14:19:30 +00:00
Sven Neumann 0c2447d108 added new files.
2005-03-21  Sven Neumann  <sven@gimp.org>

        * POTFILES.in: added new files.
2005-03-21 13:23:43 +00:00
Sven Neumann a8634b2920 added missing period in newly added message.
2005-03-21  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage-convert.c (gimp_image_convert): added missing
	period in newly added message.

	* app/dialogs/convert-dialog.c (convert_dialog_palette_filter): don't
	show empty palettes (bug #170973).
2005-03-21 10:32:27 +00:00
Michael Natterer 271fae5fc2 added width and height to the info displayed in the statusbar and the info
2005-03-21  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpmeasuretool.[ch]: added width and height to the
	info displayed in the statusbar and the info window.
	Fixes bug #165275.
2005-03-21 10:27:36 +00:00
William Skaggs 89a76c042f Bill Skaggs <weskaggs@primate.ucdavis.edu>
* libgimpwidgets/gimpcolorscales.c (gimp_color_scales_update_scales):
	Block callback when updating hex entry, fixes bug #169882.
2005-03-20 23:16:15 +00:00
William Skaggs f76b79ae26 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/core/gimpimage-convert.c: check for non-empty palette
	before converting to indexed using custom palette, otherwise
	show warning and abort;	fixes bug #170973.
2005-03-20 20:01:55 +00:00
William Skaggs 65237901af Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/core/gimpimage-convert.c: applied patch from Adam
	Moss converning gray->indexed conversion,
	fixes bug #170825.
2005-03-20 18:57:10 +00:00
Sven Neumann 00338c9ef4 app/text/gimptext.[ch] some infrastructure for text transforms.
2005-03-20  Sven Neumann  <sven@gimp.org>

	* app/text/gimptext.[ch]
	* app/text/gimptextlayer-transform.[ch]: some infrastructure for
	text transforms.
2005-03-20 01:56:58 +00:00
Sven Neumann a974e4ba79 cosmetic changes.
2005-03-20  Sven Neumann  <sven@gimp.org>

	* app/core/gimp-transform-utils.c (gimp_transform_matrix_perspective):
	cosmetic changes.

	* libgimpmath/gimpmatrix.[ch]
	* libgimpmath/gimpmath.def: added gimp_matrix_is_affine().
2005-03-20 00:09:29 +00:00
Michael Natterer 7cbe447c79 app/core/gimpimage-sample-points.c app/display/gimpdisplayshell-draw.c
2005-03-19  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage-sample-points.c
	* app/display/gimpdisplayshell-draw.c
	* app/display/gimpdisplayshell.c
	* app/tools/gimpcolortool.c: make sure sample points always have
	coordinates in the range [0..width/height-1], also added lots of
	+0.5 because they live at the pixels' centers, not at their
	borders. Fixed drawing of sample points at the display borders.
2005-03-19 22:04:31 +00:00
Manish Singh 339ef0f0ef actually link test program with libgimpconfig.
2005-03-19  Manish Singh  <yosh@gimp.org>

        * app/config/Makefile.am: actually link test program with
        libgimpconfig.

        * app/Makefile.am
        * libgimpwidgets/Makefile.am: reordered library link order to be
        consistent with shared library dependencies.

        * plug-ins/common/mkgen.pl: Cosmetic fix to the generated Makefile.am.

        * plug-ins/common/Makefile.am: regenerated.
2005-03-19 21:05:42 +00:00