Commit Graph

13355 Commits

Author SHA1 Message Date
Manish Singh 5b705ffdfb remove LDFLAGS references to now private file_open_dialog_show,
2004-09-18  Manish Singh  <yosh@gimp.org>

        * app/Makefile.am: remove LDFLAGS references to now private
        file_open_dialog_show, file_open_location_dialog_show, and
        file_save_dialog_show.
2004-09-18 08:21:20 +00:00
Sven Neumann cace0a19a0 app/actions/qmask-commands.c just some cleanup.
2004-09-18  Sven Neumann  <sven@gimp.org>

	* app/actions/qmask-commands.c
	* libgimpcolor/gimprgb.c (gimp_rgba_distance): just some cleanup.

	* app/core/gimpimage-qmask.c (gimp_image_set_qmask_color): always
	set gimage->qmask_color regardless of the qmask state.

	* libgimpwidgets/gimpcolorbutton.c (gimp_color_button_new): set
	the type before setting the color.
2004-09-17 22:16:21 +00:00
Michael Natterer c9cac47fbe use gimp_component_editor_get_iter() instead of duplicating its code.
2004-09-17  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcomponenteditor.c
	(gimp_component_editor_renderer_update): use
	gimp_component_editor_get_iter() instead of duplicating its code.
2004-09-17 11:20:30 +00:00
Simon Budig 430c5f8170 Added a slider for the brush spacing to the brush editor. Should make it
2004-09-17  Simon Budig  <simon@gimp.org>

	* app/widgets/gimpbrusheditor.[ch]: Added a slider for the
	brush spacing to the brush editor. Should make it more obvious
	how to change it.
2004-09-17 10:31:34 +00:00
Sven Neumann 477b44360f based on a patch from Joao S. O. Bueno: Ensure that the pasted layer is
2004-09-17  Sven Neumann  <sven@gimp.org>

	* app/core/gimp-edit.c (gimp_edit_paste): based on a patch from
	Joao S. O. Bueno: Ensure that the pasted layer is always within
	the image, if it fits and aligned at top left if it doesn't.
	Fixes bug #142944.
2004-09-17 09:14:02 +00:00
Sven Neumann d051ce4e1a updated.
2004-09-16  Sven Neumann  <sven@gimp.org>

	* INSTALL: updated.
2004-09-16 15:33:58 +00:00
Sven Neumann 6b543611c0 applied a patch by Joao S. O. Bueno that fixes bug #152820.
2004-09-16  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpwidgets.c (gimp_scale_entry_set_logarithmic):
	applied a patch by Joao S. O. Bueno that fixes bug #152820.
2004-09-16 15:20:06 +00:00
Dave Neary 2ade3b8a6e patch from Kevin Cozens which reinstates corona. Fixes bug #142282.
2004-09-16  Dave Neary  <bolsh@gimp.org>

	* plug-ins/script-fu/scripts/burn-in-anim.scm: patch from Kevin
	Cozens which reinstates corona. Fixes bug #142282.
2004-09-16 14:55:30 +00:00
Michael Natterer 357dc2d777 depend on GLib >= 2.4.5 and GTK+ >= 2.4.4.
2004-09-16  Michael Natterer  <mitch@gimp.org>

	* configure.in: depend on GLib >= 2.4.5 and GTK+ >= 2.4.4.

	* app/gui/gui.c: changed accordingly.

	* app/sanity.c: ditto. Added check for GLib and put each check
	into its own utility function. Enabled #if 0'ed check for
	FreeType >= 6.2.7.

	* app/widgets/gimpactiongroup.c
	* app/widgets/gimpcursor.c
	* app/widgets/gimpselectiondata.c
	* app/widgets/gimpuimanager.c
	* app/widgets/gimpwidgets-utils.c: removed workarounds for library
	versions we refuse to start with.
2004-09-16 14:31:39 +00:00
Michael Natterer f338d93835 reverse order of DND dests so "text/uri-list" is preferred again after my
2004-09-16  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdnd.c (gimp_dnd_uri_list_dest_add): reverse
	order of DND dests so "text/uri-list" is preferred again after my
	DND change of 2004-06-29. Fixes dropping of multiple files.
2004-09-16 14:28:10 +00:00
Michael Natterer 0514ee4ba2 set the viewable renderer's "renderer" property to NULL when clearing the
2004-09-16  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcomponenteditor.[ch]: set the viewable
	renderer's "renderer" property to NULL when clearing the
	view to work around bug #149906.
2004-09-16 14:00:02 +00:00
Sven Neumann 29b455c901 replaced a bitshift with a binary and. Should be unnoticeably faster ;)
2004-09-16  Sven Neumann  <sven@gimp.org>

	* app/core/gimpscanconvert.c (VALUE_TO_PIXEL): replaced a bitshift
	with a binary and. Should be unnoticeably faster ;)
2004-09-16 11:31:30 +00:00
Michael Natterer fc01210b78 removed #if 0'ed code, took assignments out of if()-conditions, minor
2004-09-16  Michael Natterer  <mitch@gimp.org>

	* app/pdb/procedural_db.c: removed #if 0'ed code, took assignments
	out of if()-conditions, minor cleanup.
2004-09-16 10:32:30 +00:00
Simon Budig 34d51a6382 Implemented an own rendering callback for libart and use it instead of
2004-09-16  Simon Budig  <simon@gimp.org>

	* app/core/gimpscanconvert.c: Implemented an own rendering
	callback for libart and use it instead of art_gray_svp_aa().
	This now handles non-antialiased scan conversions itself. It
	also basically shows the way to implement a LUT for the
	scan conversion.
2004-09-16 00:46:02 +00:00
Sven Neumann 918070d77a removed code that isn't needed any longer now that the dialog is a
2004-09-16  Sven Neumann  <sven@gimp.org>

	* app/dialogs/quit-dialog.c: removed code that isn't needed any
	longer now that the dialog is a singleton.
2004-09-15 23:38:05 +00:00
Sven Neumann 4df47bde0c news flash 2004-09-15 22:49:14 +00:00
David Odin a971903384 fix the preview for the zoom blur mode.
* plug-ins/common/mblur.c: fix the preview for the zoom blur mode.
2004-09-15 21:08:58 +00:00
Sven Neumann 5f1373436c fixed code that handles drawing outside of the preview area.
2004-09-15  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreviewarea.c
	(gimp_preview_area_[draw|blend|mask]): fixed code that handles
	drawing outside of the preview area.

	* plug-ins/common/unsharp.c (preview_update): draw the preview
	directly from the pixel region.
2004-09-15 20:51:00 +00:00
Manish Singh 6582e0ad49 use guint16 instead of __u16. Should fix bug #152746.
2004-09-15  Manish Singh  <yosh@gimp.org>

        * modules/controller_linux_input.c: use guint16 instead of __u16.
        Should fix bug #152746.
2004-09-15 20:25:41 +00:00
Sven Neumann bfa352bae0 libgimp/gimpdrawablepreview.[ch] renamed gimp_drawable_preview_draw() to
2004-09-15  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpdrawablepreview.[ch]
	* libgimp/gimpui.def: renamed gimp_drawable_preview_draw() to
	gimp_drawable_preview_draw_buffer() and added a rowstride
	parameter. Added new functions gimp_drawable_preview_get_drawable()
	and gimp_drawable_preview_draw_region().

	* plug-ins/common/mblur.c: added a preview that uses the
	shadow tiles as the preview buffer and draws using the new
	gimp_drawable_preview_draw_region() API.

	* plug-ins/common/photocopy.c
	* plug-ins/common/softglow.c: use gimp_drawable_preview_draw_region().

	* plug-ins/common/cartoon.c
	* plug-ins/common/despeckle.c
	* plug-ins/common/edge.c
	* plug-ins/common/gauss.c
	* plug-ins/common/grid.c
	* plug-ins/common/neon.c
	* plug-ins/common/noisify.c
	* plug-ins/common/sel_gauss.c
	* plug-ins/common/sharpen.c
	* plug-ins/common/sobel.c
	* plug-ins/common/spread.c
	* plug-ins/common/struc.c
	* plug-ins/common/unsharp.c
	* plug-ins/common/wind.c: use gimp_drawable_preview_draw_buffer().
2004-09-15 19:56:01 +00:00
Michael Natterer 186b590844 added help IDs for the drawable- and vectors-visible and -liked actions as
2004-09-15  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimphelp-ids.h: added help IDs for the drawable- and
	vectors-visible and -liked actions as well as for the layer mask
	property action.

	* app/actions/drawable-actions.c
	* app/actions/vectors-actions.c: use them.

	* app/actions/layers-actions.c
	* app/actions/layers-commands.[ch]: ditto. Use
	GIMP_STOCK_TRANSPARENCY for all layer opacity actions. Replaced
	"paint_mode" by "mode" in all action and function/variable names
	because this is the layer mode, not a paint mode.

	* app/actions/channels-commands.c
	* app/actions/layers-commands.c
	* app/actions/vectors-commands.c: set the "activates-default"
	property on the name entry in all "New Foo" and "Edit Foo
	Attributes" dialogs except in the "New Layer" dialog.
	Addresses bug #148026.

	* menus/image-menu.xml.in: added a (commented out) layer
	properties menu containing all the new actions.
2004-09-15 15:06:08 +00:00
Michael Natterer 6a723efc4b app/actions/layers-actions.c added actions and callbacks
2004-09-15  Michael Natterer  <mitch@gimp.org>

	* app/actions/layers-actions.c
	* app/actions/layers-commands.[ch]: added actions and callbacks
	"layers-preserve-transparency" and
	"layers-paint-mode-first,last,previous,next". Update the "active"
	state of the recently added layer mask property actions in
	layers_actions_update().

	* app/actions/drawable-actions.c
	* app/actions/drawable-commands.[ch]: added actions and callbacks
	for "drawable-visible" and "drawable-linked". Fixes bug #152597.

	* app/actions/vectors-actions.c
	* app/actions/vectors-commands.[ch]: same here ("vectors-visible"
	and "vectors-linked").

	* app/widgets/gimplayertreeview.c
	(gimp_layer_tree_view_preserve_button_toggled): flush the image
	so the new actions are updated. Compress preserve_trans undos.

	* menus/image-menu.xml.in: added the layer mask property actions
	to the Layers/Mask submenu.

	* menus/layers-menu.xml: reordered the mask property actions
	to have the same order as in the image menu.
2004-09-15 13:24:45 +00:00
Sven Neumann b5f8fa24d8 improved the fix for bug #152662 and removed trailing whitespace.
2004-09-15  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcontainertreeview.c
	(gimp_container_tree_view_menu_position): improved the fix for bug
	#152662 and removed trailing whitespace.
2004-09-15 09:34:02 +00:00
Nathan Summers 8c4062f2b2 clamp the popup menu's Y position to the visible area of the GtkTreeView.
2004-09-15  Nathan Summers  <rock@gimp.org>

        * app/widgets/gimpcontainertreeview.c
        (gimp_container_tree_view_menu_position): clamp the popup menu's Y
        position to the visible area of the GtkTreeView.  Fixes #152662.
2004-09-15 05:55:56 +00:00
Michael Natterer e8dd3c3b8d set the "activates-default" property on the entries in all query boxes so
2004-09-14  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpquerybox.c: set the "activates-default"
	property on the entries in all query boxes so hitting "return"
	confirms them. Addresses bug #148026.
2004-09-14 12:37:03 +00:00
Michael Natterer d62a3f0487 simplified the code which deals with the global_buffer's preview. The new
2004-09-14  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpbufferview.c: simplified the code which deals
	with the global_buffer's preview. The new buffer view renderer
	does the aspect ratio magic all by itself now.

	* app/actions/image-commands.h: removed trailing whitespace.
2004-09-14 12:19:16 +00:00
Michael Natterer c450ca1858 app/widgets/Makefile.am app/widgets/widgets-types.h added a view renderer
2004-09-14  Michael Natterer  <mitch@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimpviewrendererbuffer.[ch]: added a view renderer
	which knows how to preserve a GimpBuffer's aspect ratio if the
	view's aspect ratio is different.

	* app/widgets/gimpviewrenderer-utils.c
	(gimp_view_renderer_type_from_viewable_type): use it for viewables
	of type GimpBuffer. Fixes bug #152531
2004-09-14 12:06:28 +00:00
Sven Neumann 6d02719401 plug-ins/common/flarefx.c embed the preview into a sunken frame and put it
2004-09-14  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/flarefx.c
	* plug-ins/common/nova.c: embed the preview into a sunken frame
	and put it into the upper left corner of the dialog.
2004-09-14 11:43:02 +00:00
Michael Natterer 98b70b511c app/Makefile.am app/app-docs.sgml app/app-sections.txt updated for the
2004-09-14  Michael Natterer  <mitch@gimp.org>

	* app/Makefile.am
	* app/app-docs.sgml
	* app/app-sections.txt
	* app/app.types: updated for the remaining Preview -> View changes
	and the new app/dialogs/ module.
2004-09-14 11:41:36 +00:00
Sven Neumann d6c4830027 app/dialogs/dialogs-constructors.[ch] app/dialogs/dialogs.c let the dialog
2004-09-14  Sven Neumann  <sven@gimp.org>

	* app/dialogs/dialogs-constructors.[ch]
	* app/dialogs/dialogs.c
	* app/gui/gui.c: let the dialog factory handle the quit dialog
	as singleton. Fixes bug #151914.

	* app/dialogs/quit-dialog.c: added a warning here. We need a
	container of dirty images for the above change to work correctly.
2004-09-13 23:09:10 +00:00
Sven Neumann e2d8f7e48d make the "Save EXIF data" toggle insensitive when no EXIF data is present
2004-09-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/jpeg.c (save_dialog): make the "Save EXIF data"
	toggle insensitive when no EXIF data is present (bug #140042).

	* app/display/gimpdisplayshell-close.c: as suggested by the HIG,
	ask the user to save the image when the last display is being
	closed. Addresses some issues raised in bug #106726.
2004-09-13 21:58:27 +00:00
Michael Natterer 359303a796 install the message handler for the "Gimp-Dialogs" domain.
2004-09-13  Michael Natterer  <mitch@gimp.org>

	* app/app_procs.c (app_run): install the message handler for the
	"Gimp-Dialogs" domain.
2004-09-13 20:00:19 +00:00
Michael Natterer e93af81c53 resurrected file_open_dialog_show() and file_save_dialog_show() as private
2004-09-13  Michael Natterer  <mitch@gimp.org>

	* app/actions/file-commands.c: resurrected file_open_dialog_show()
	and file_save_dialog_show() as private utility functions to get
	rid of code duplication.
2004-09-13 19:33:07 +00:00
Michael Natterer 0a8523a828 forgot to mention fixed bug. 2004-09-13 16:39:04 +00:00
Michael Natterer 582a096604 app/dialogs/Makefile.am removed these files.
2004-09-13  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/Makefile.am
	* app/dialogs/file-dialog-utils.[ch]: removed these files.

	* app/dialogs/file-save-dialog.[ch]: removed functions
	file_save_dialog_show() and file_save_a_copy_dialog_show() and
	changed internal function file_save_dialog_create() to
	file_save_dialog_new().

	* app/dialogs/dialogs.c
	* app/dialogs/dialogs-constructors.[ch]: made it completely
	managed by the dialog factory.

	* app/actions/file-commands.c: create it using the dialog
	factory. Attach it to the image so we open only one save
	dialog per image.

	* app/dialogs/file-open-dialog.c: added precondition checks
	to file_open_dialog_new().
2004-09-13 16:37:01 +00:00
Sven Neumann 2449510d5b some code cleanup.
2004-09-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/jpeg.c: some code cleanup.
2004-09-13 16:29:59 +00:00
Michael Natterer 593e98c6de removed function file_open_dialog_show() and changed internal function
2004-09-13  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/file-open-dialog.[ch]: removed function
	file_open_dialog_show() and changed internal function
	file_open_dialog_create() to file_open_dialog_new().

	* app/dialogs/dialogs.c
	* app/dialogs/dialogs-constructors.[ch]: made it completely
	managed by the dialog factory.

	* app/actions/file-commands.c: create it using the dialog factory.
2004-09-13 16:01:52 +00:00
Michael Natterer a7e5ebef55 eek 2004-09-13 15:22:58 +00:00
Michael Natterer 7d065360c7 configure.in added new directory app/dialogs and link libappdialogs.c into
2004-09-13  Michael Natterer  <mitch@gimp.org>

	* configure.in
	* app/Makefile.am: added new directory app/dialogs and link
	libappdialogs.c into the gimp binary.

	* app/gui/Makefile.am
	* app/gui/gui-types.h
	* app/gui/gui-vtable.c
	* app/gui/gui.c

	* app/gui/about-dialog.[ch]
	* app/gui/authors.h
	* app/gui/color-notebook.[ch]
	* app/gui/convert-dialog.[ch]
	* app/gui/dialogs-constructors.[ch]
	* app/gui/dialogs.[ch]
	* app/gui/file-dialog-utils.[ch]
	* app/gui/file-new-dialog.[ch]
	* app/gui/file-open-dialog.[ch]
	* app/gui/file-open-location-dialog.[ch]
	* app/gui/file-save-dialog.[ch]
	* app/gui/grid-dialog.[ch]
	* app/gui/info-dialog.[ch]
	* app/gui/info-window.[ch]
	* app/gui/module-browser.[ch]
	* app/gui/offset-dialog.[ch]
	* app/gui/palette-import-dialog.[ch]
	* app/gui/preferences-dialog.[ch]
	* app/gui/quit-dialog.[ch]
	* app/gui/resize-dialog.[ch]
	* app/gui/resolution-calibrate-dialog.[ch]
	* app/gui/stroke-dialog.[ch]
	* app/gui/tips-dialog.[ch]
	* app/gui/tips-parser.[ch]
	* app/gui/user-install-dialog.[ch]: removed these files...

	* app/dialogs/Makefile.am
	* app/dialogs/dialogs-types.h

	* app/dialogs/*.[ch]: ...and added them here. Changed some
	filenames like module-browser -> module-dialog.

	* app/app_procs.c
	* app/actions/actions-types.h
	* app/actions/actions.c
	* app/actions/dialogs-actions.c
	* app/actions/dialogs-commands.c
	* app/actions/dockable-commands.c
	* app/actions/drawable-commands.c
	* app/actions/edit-commands.c
	* app/actions/file-commands.c
	* app/actions/gradient-editor-commands.c
	* app/actions/image-commands.c
	* app/actions/layers-commands.c
	* app/actions/palettes-commands.c
	* app/actions/select-commands.c
	* app/actions/templates-commands.c
	* app/actions/templates-commands.h
	* app/actions/vectors-commands.c
	* app/actions/view-commands.c
	* app/display/gimpdisplayshell-cursor.c
	* app/display/gimpdisplayshell-title.c
	* app/display/gimpdisplayshell.[ch]
	* app/tools/gimpcroptool.c
	* app/tools/gimpperspectivetool.c
	* app/tools/gimprotatetool.c
	* app/tools/gimpscaletool.c
	* app/tools/gimpsheartool.c
	* app/tools/gimptransformtool.[ch]
	* app/tools/gimpvectortool.c
	* app/widgets/gimpcolormapeditor.[ch]
	* app/widgets/gimpcolorpanel.c
	* app/widgets/gimpgradienteditor.[ch]
	* app/widgets/gimppaletteeditor.[ch]
	* app/widgets/gimptoolbox-color-area.c
	* menus/toolbox-menu.xml.in
	* tools/authorsgen/authorsgen.pl: changed accordingly.
2004-09-13 15:15:23 +00:00
Michael Natterer 95da4fd6a6 dialog sources were moved to app/dialogs/.
2004-09-13  Michael Natterer  <mitch@gimp.org>

	* POTFILE.in: dialog sources were moved to app/dialogs/.
2004-09-13 15:14:53 +00:00
Michael Natterer 4f6f5316eb Restore binary compatibility of the wire protocol that was broken by the
2004-09-13  Michael Natterer  <mitch@gimp.org>

	Restore binary compatibility of the wire protocol that was
	broken by the recent GPConfig changes:

	* libgimpbase/gimpprotocol.[ch] (struct _GPConfig)
	(_gp_config_read)
	(_gp_config_write): argh, we can't use the two bytes padding
	because that's just a binary compatible struct change, but inserts
	two bytes into the byte stream that goes over the wire. Use the
	first two bytes of the former "gdouble gamma" instead.

	* app/plug-in/plug-in-run.c (plug_in_run)
	* libgimp/gimp.c (gimp_config): changed accordingly.
2004-09-13 13:33:56 +00:00
Sven Neumann 952cd37e00 simulate the behaviour of GNU gettext and look at the LANGUAGE environment
2004-09-13  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimphelp.c: simulate the behaviour of GNU gettext and
	look at the LANGUAGE environment variable if the locale is not "C".
2004-09-13 12:19:34 +00:00
Simon Budig c07125554a Fix trailing whitespace introduced by me. /me hides embarrassed in a
2004-09-13  Simon Budig  <simon@gimp.org>

	* app/tools/gimpcroptool.c: Fix trailing whitespace introduced by me.
	/me hides embarrassed in a corner...   :)
2004-09-13 12:02:06 +00:00
Simon Budig ef206e7fd2 Fix warnings and coding style.
2004-09-13  Simon Budig  <simon@gimp.org>

	* app/tools/gimpcroptool.c: Fix warnings and coding style.
2004-09-13 10:10:43 +00:00
Nathan Summers 8be9e2b2be disable crop and resize buttons while the operation is being processed.
2004-09-12  Nathan Summers  <rock@gimp.org>

        * app/tools/gimpcroptool.c: disable crop and resize buttons while the
	operation is being processed.  Fixes #152372.
2004-09-13 01:45:45 +00:00
Sven Neumann 6c2aa00188 use a combo box for format selection.
2004-09-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/aa.c (aa_dialog): use a combo box for format
	selection.
2004-09-12 21:29:46 +00:00
Sven Neumann 835e591286 fixed gtk-doc comments, removed trailing whitespace.
2004-09-12  Sven Neumann  <sven@gimp.org>

	* libgimp/gimppixelrgn.c: fixed gtk-doc comments, removed trailing
	whitespace.
2004-09-12 12:23:50 +00:00
David Odin 91836bfce4 some more fixes by nomis.
* libgimp/gimppixelrgn.c: some more fixes by nomis.
2004-09-12 00:00:38 +00:00
David Odin cd03397ffa nomis helped me to make some correction to the documentation.
* libgimp/gimppixelrgn.c: nomis helped me to make some correction to
  the documentation.
2004-09-11 23:43:38 +00:00
David Odin 41a86d046b more documentation.
* libgimp/gimppixelrgn.c: more documentation.
2004-09-11 23:05:56 +00:00