Commit Graph

11486 Commits

Author SHA1 Message Date
Martin Nordholts 7bddad1320 app: Introduce file_save_dialog_unknown_ext_msg()
Introduce file_save_dialog_unknown_ext_msg() so that we don't need to
have a copy-pasted huge error message (and prepare for more intricate
message handling).
2009-04-25 18:14:13 +02:00
Michael Natterer 42b28066b8 Move the straight line constrain code to GimpPaintCore.
* app/paint/gimppaintcore.[ch]: add gimp_paint_core_round_line()

* app/tools/gimppainttool.c: remove gimp_paint_tool_round_line() and call
above new function instead.
2009-04-22 21:22:08 +02:00
Michael Natterer 090e06ecdd Move the stuff in tools-utils to the core so it can be used from
app/paint/ in the next step.

* app/tools/Makefile.am
* app/tools/tools-utils.[ch]: removed.

* app/core/gimp-utils.[ch]: add gimp_constrain_line() instead.

* app/tools/gimpblendtool.c
* app/tools/gimpeditselectiontool.c
* app/tools/gimpfreeselecttool.c
* app/tools/gimpmeasuretool.c
* app/tools/gimppainttool.c: changed accordingly.
2009-04-22 21:08:42 +02:00
Michael Natterer 50199a542c Made GimpCoords* parameter of GimpPaintCore::start() const.
* app/paint/gimppaintcore.[ch]: made GimpCoords* parameter of
GimpPaintCore::start() const.

* app/paint/gimpbrushcore.c
* app/paint/gimpclone.c
* app/paint/gimpheal.c
* app/paint/gimpperspectiveclone.c
* app/paint/gimpsourcecore.c: changed accordingly.
2009-04-17 22:29:25 +02:00
Tobias Mueller ed7b1a9c4d Remove the ICC profile when image will be converted from/to grayscale mode.
svn path=/trunk/; revision=28268
2009-04-13 20:14:49 +00:00
Martin Nordholts 5803dc058b Improve Debug -> Show Image Graph output
Use the new gegl:introspect feature of showing the graph of nodes a
given node depends on. This gives much better depicted graphs.

svn path=/trunk/; revision=28265
2009-04-12 10:23:02 +00:00
Michael Natterer 83b37fb4f9 Bug 577575 – transform tool fills underlying extracted area wrongly
2009-04-03  Michael Natterer  <mitch@gimp.org>

	Bug 577575 – transform tool fills underlying extracted area wrongly

	* app/tools/gimpfliptool.c
	* app/tools/gimpperspectivetool.c
	* app/tools/gimprotatetool.c
	* app/tools/gimpscaletool.c (gimp_*_tool_register): pass
	GIMP_CONTEXT_BACKGROUND_MASK to the register callback to the tools
	use the global background color.


svn path=/trunk/; revision=28236
2009-04-03 14:03:38 +00:00
Sven Neumann 94e626e1cc Bug 568479 – add PDB procedures to manipulate size of text box
2009-03-31  Sven Neumann  <sven@gimp.org>

	Bug 568479 – add PDB procedures to manipulate size of text box

	* tools/pdbgen/pdb/text_layer.pdb: add gimp-text-layer-resize,
	based on a patch from Barak Itkin.

	* app/pdb/internal-procs.c
	* app/pdb/text-layer-cmds.c
	* libgimp/gimptextlayer_pdb.[ch]: regenerated.


svn path=/trunk/; revision=28235
2009-03-31 19:07:12 +00:00
Michael Natterer bee31119ca Bug 555738 – Image display is wrong after undoing canvas size
2009-03-28  Michael Natterer  <mitch@gimp.org>

	Bug 555738 – Image display is wrong after undoing canvas size
	enlargement

	* app/display/gimpdisplayshell-handlers.c
	(gimp_display_shell_size_changed_detailed_handler): call
	gimp_display_shell_expose_full() because resizing the canvas can
	leave all sorts of display areas unupdated otherwise.


svn path=/trunk/; revision=28230
2009-03-28 21:18:40 +00:00
Michael Natterer e4ba543ca3 swallow the code of gimp_display_shell_image_size_starts_to_fit() because
2009-03-28  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-handlers.c
	(gimp_display_shell_size_changed_detailed_handler): swallow the
	code of gimp_display_shell_image_size_starts_to_fit() because it
	didn't make things clearer. Add local variables instead to make
	things more readable.


svn path=/trunk/; revision=28229
2009-03-28 21:13:20 +00:00
Michael Natterer a4e7e678c2 Bug 566575 – Warning when creating sample point and releasing Ctrl key
2009-03-28  Michael Natterer  <mitch@gimp.org>

	Bug 566575 – Warning when creating sample point and releasing Ctrl
	key too late

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_ruler_button_press): call
	gimp_display_shell_update_focus() after changing the tool so the
	new tool has the right state.


svn path=/trunk/; revision=28226
2009-03-28 15:20:18 +00:00
Michael Natterer d9448730f9 Bug 555025 – Action GEGL box widgets weirdness
2009-03-28  Michael Natterer  <mitch@gimp.org>

	Bug 555025 – Action GEGL box widgets weirdness

	Must not set GDK_HINT_MIN_SIZE if we don't actually set a minimum
	size, or the window will be shrinkable to zero and it won't
	expand automatically when its contents' requisition grows.

	* app/widgets/gimpdialogfactory.[ch]: add hackish API
	gimp_dialog_factory_set,get_has_min_size() because GTK+ itself
	has no API for querying a window's GdkWindowHints.

	(gimp_dialog_factory_set_user_pos): set GDK_HINT_MIN_SIZE only if
	the window was being marked as having a minimum size using above
	new API.

	* app/widgets/gimptoolbox.c (gimp_toolbox_set_geometry)
	* app/display/gimpdisplayshell.c (gimp_display_shell_style_set):
	call gimp_dialog_factory_set_has_min_size (window, TRUE).


svn path=/trunk/; revision=28224
2009-03-28 13:19:53 +00:00
Sven Neumann e148dfd6a2 Bug 576909 – "_Paste" and "_Paste as" have the same mnemonic
2009-03-27  Sven Neumann  <sven@gimp.org>

	Bug 576909 – "_Paste" and "_Paste as" have the same mnemonic

	* app/actions/edit-actions.c: resolved colliding mnemonics.


svn path=/trunk/; revision=28223
2009-03-27 19:25:12 +00:00
Michael Natterer 2399d31d41 use GtkScaleButton's accessors.
2009-03-23  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpscalebutton.c: use GtkScaleButton's accessors.


svn path=/trunk/; revision=28212
2009-03-23 08:57:59 +00:00
Michael Natterer 45e89543d1 use GtkAdjustment's accessors.
2009-03-23  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpgradienteditor.c: use GtkAdjustment's accessors.


svn path=/trunk/; revision=28210
2009-03-22 23:24:45 +00:00
Michael Natterer b05a4efacb use GtkSelectionData's accessors.
2009-03-23  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdnd.c (gimp_dnd_data_drop_handle): use
	GtkSelectionData's accessors.


svn path=/trunk/; revision=28209
2009-03-22 23:16:59 +00:00
Michael Natterer a89e8d59e9 use GtkAdjustment's accessors.
2009-03-23  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontainertreeview-dnd.c: use GtkAdjustment's
	accessors.


svn path=/trunk/; revision=28208
2009-03-22 23:13:15 +00:00
Michael Natterer ee8e1b2af8 use GtkAdjustment's accessors.
2009-03-23  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontainergridview.c: use GtkAdjustment's accessors.


svn path=/trunk/; revision=28207
2009-03-22 23:10:26 +00:00
Michael Natterer 0251d98b64 use accessors instead of scrolled_window->vscrollbar.
2009-03-23  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontainerbox.c: use accessors instead of
	scrolled_window->vscrollbar.


svn path=/trunk/; revision=28206
2009-03-22 23:07:56 +00:00
Michael Natterer b11b678d2d use accessors instead of widget->window and widget->style.
2009-03-23  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcombotagentry.c: use accessors instead of
	widget->window and widget->style.


svn path=/trunk/; revision=28205
2009-03-22 23:04:37 +00:00
Sven Neumann a85bbe7fec added a newline to the output in the error case.
2009-03-22  Sven Neumann  <sven@gimp.org>

        * app/batch.c (batch_run_cmd): added a newline to the output in
        the error case.

        * plug-ins/script-fu/script-fu-eval.c (script_fu_eval_run):
        instead of disabling all output in batch mode, use the usual
        routine for error handling and pass the error string along with


svn path=/trunk/; revision=28200
2009-03-22 20:49:55 +00:00
Michael Natterer bcc31e20e7 use "list" as variable name for iterators to be consistent with the rest
2009-03-22  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimptagentry.c: use "list" as variable name for
	iterators to be consistent with the rest of GIMP; various code
	cleanups.


svn path=/trunk/; revision=28196
2009-03-22 19:10:15 +00:00
Michael Natterer 9ae1fa8872 app/widgets/Makefile.am remove this evil hack.
2009-03-22  Michael Natterer  <mitch@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/gtkscalebutton.[ch]: remove this evil hack.

	* app/widgets/gimpscalebutton.[ch]
	* app/widgets/gimppropwidgets.c: minor adjustments so the widget
	from GTK+ gets used.


svn path=/trunk/; revision=28194
2009-03-22 18:12:36 +00:00
Michael Natterer d85fb156b5 app/widgets/gimpblobeditor.c app/widgets/gimpbrushselect.c
2009-03-22  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpblobeditor.c
	* app/widgets/gimpbrushselect.c
	* app/widgets/gimpcolorbar.c
	* app/widgets/gimpcolordialog.c
	* app/widgets/gimpcolorframe.c
	* app/widgets/gimpcontainergridview.c
	* app/widgets/gimpcontainerpopup.c
	* app/widgets/gimpcontainertreeview.c
	* app/widgets/gimpcontrollereditor.c
	* app/widgets/gimpcontrollerlist.c
	* app/widgets/gimpcursor.c
	* app/widgets/gimpcurveview.c
	* app/widgets/gimpdasheditor.c
	* app/widgets/gimpdialogfactory.c
	* app/widgets/gimpdnd-xds.c
	* app/widgets/gimpdockable.c
	* app/widgets/gimperrordialog.c
	* app/widgets/gimpfgbgeditor.c
	* app/widgets/gimpfgbgview.c
	* app/widgets/gimpfiledialog.c
	* app/widgets/gimpfontselect.c
	* app/widgets/gimpgradienteditor.c
	* app/widgets/gimpgradientselect.c
	* app/widgets/gimphandlebar.c
	* app/widgets/gimphistogrambox.c
	* app/widgets/gimphistogramview.c
	* app/widgets/gimpmessagedialog.c
	* app/widgets/gimpnavigationview.c
	* app/widgets/gimppaletteselect.c
	* app/widgets/gimppaletteview.c
	* app/widgets/gimppatternselect.c
	* app/widgets/gimpprogressbox.c
	* app/widgets/gimpprogressdialog.c
	* app/widgets/gimpscalebutton.c
	* app/widgets/gimpselectiondata.c
	* app/widgets/gimpsessioninfo.c
	* app/widgets/gimpsettingsbox.c
	* app/widgets/gimpstrokeeditor.c
	* app/widgets/gimptexteditor.c
	* app/widgets/gimptoolbox.c
	* app/widgets/gimpuimanager.c
	* app/widgets/gimpview-popup.c
	* app/widgets/gimpview.c
	* app/widgets/gimpviewabledialog.c
	* app/widgets/gimpwidgets-utils.c: use accessors for various
	members of GTK+ structures that don't exist any longer when
	GSEAL_ENABLE is defined.


svn path=/trunk/; revision=28193
2009-03-22 16:35:53 +00:00
Michael Natterer d3dcff66f7 app/display/gimpcanvas.c use accessors for various members of GTK+
2009-03-22  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpcanvas.c
	* app/display/gimpdisplayshell.c: use accessors for various
	members of GTK+ structures that don't exist any longer when
	GSEAL_ENABLE is defined.


svn path=/trunk/; revision=28192
2009-03-22 16:03:46 +00:00
Sven Neumann b4670e2f8a changed "Aspect" to "Aspect Ratio".
2009-03-19  Sven Neumann  <sven@gimp.org>

	* app/actions/context-actions.c (context_actions): 
	* app/paint/gimpinkoptions.c: changed "Aspect" to "Aspect 
Ratio".


svn path=/trunk/; revision=28183
2009-03-19 22:16:41 +00:00
Sven Neumann 640afea581 Bug 471681 – Keyboard shortcuts for brush size/params need feedback
2009-03-19  Sven Neumann  <sven@gimp.org>

	Bug 471681 – Keyboard shortcuts for brush size/params need 
feedback

	* app/core/gimpbrushgenerated.c
	* app/core/gimpcontext.c
	* app/paint/gimppaintoptions.c: applied patch from Stephen G. 
that
	marks some strings for translation.


svn path=/trunk/; revision=28182
2009-03-19 20:40:43 +00:00
Sven Neumann 55c8a0f636 formatting
svn path=/trunk/; revision=28163
2009-03-16 19:59:58 +00:00
Sven Neumann a9327fca52 gimp_brush_real_transform_pixmap): don't mix variable declarations and
2009-03-16  Sven Neumann  <sven@gimp.org>

	* app/core/gimpbrush-transform.c 
(gimp_brush_real_transform_mask):
	gimp_brush_real_transform_pixmap): don't mix variable 
declarations
	and code. Added missing const qualifiers.

	* plug-ins/common/ripple.c (ripple_horizontal): removed stray
	semicolon.


svn path=/trunk/; revision=28162
2009-03-16 19:57:31 +00:00
Sven Neumann c11ef1413f adapt button labels to the latest GNOME HIG.
2009-03-16  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-close.c
	(gimp_display_shell_close_dialog): adapt button labels to the
	latest GNOME HIG.


svn path=/trunk/; revision=28161
2009-03-16 13:48:46 +00:00
Tor Lillqvist 458d6439ac The build-time and run-time versions were swapped in the output.
2009-03-16  Tor Lillqvist  <tml@iki.fi>

	* app/version.c (gimp_show_library_version): The build-time and
	run-time versions were swapped in the output.


svn path=/trunk/; revision=28160
2009-03-16 13:16:07 +00:00
Sven Neumann 2e7c80384b Bug 566443 – diagonal method guidelines for crop tool
2009-03-14  Sven Neumann  <sven@gimp.org>

	Bug 566443 – diagonal method guidelines for crop tool

	* app/tools/tools-enums.[ch]
	* app/tools/gimprectangletool.c 
(gimp_rectangle_tool_draw_guides):
	applied a slightly modified patch from Lukasz Hladowski, based 
on
	a patch from Tim Jedlicka. This adds diagonal guidelines as
	described by Edwin Westhoff to the rectangle tools.


svn path=/trunk/; revision=28156
2009-03-14 12:59:34 +00:00
Sven Neumann 1c859ce6cb Bug 574427 – Stroke path with paint tool error
2009-03-13  Sven Neumann  <sven@gimp.org>

	Bug 574427 – Stroke path with paint tool error

	* app/dialogs/stroke-dialog.c: construct the combo-box that
	selects the paint-info object with the GimpStrokeOptions as
	context. Makes the code much easier and fixes bug #574427.


svn path=/trunk/; revision=28154
2009-03-13 12:10:13 +00:00
Sven Neumann 374e379308 Bug 575006 – Add preferences for snapping
Bug 575006 – Add preferences for snapping

	* app/config/gimpdisplayconfig.[ch]
	* app/config/gimprc-blurbs.h
	* app/display/gimpdisplayshell.c: applied part of a patch from
	Akkana Peck. This adds gimprc properties for the default values
	used for snapping in new image windows. It also changes the
	default value for "Snap to Canvas Edges" to TRUE. Let's test 
this
	for a while...


svn path=/trunk/; revision=28151
2009-03-13 00:24:20 +00:00
Sven Neumann 44b368b1cd Bug 573070 – crash when working with 1x3200 pixel image
2009-03-12  Sven Neumann  <sven@gimp.org>

	Bug 573070 – crash when working with 1x3200 pixel image

	* app/display/gimpdisplayshell.c 
(gimp_display_shell_scale_changed):
	make sure that x_src_dec and y_src_dec never become zero.


svn path=/trunk/; revision=28142
2009-03-12 19:31:36 +00:00
Sven Neumann 7b5c3a8273 another tiny formatting change
svn path=/trunk/; revision=28140
2009-03-11 21:04:13 +00:00
Sven Neumann 54871b7ad0 formatting.
2009-03-11  Sven Neumann  <sven@gimp.org>

	* app/core/gimpscanconvert.c (gimp_scan_convert_render_full):
	formatting.


svn path=/trunk/; revision=28139
2009-03-11 20:56:07 +00:00
Alexia Death cdc3e5b448 enable scaling for smudge tool (gimp_smudge_motion): correct comment.
2009-03-09  Alexia Death  <alexiadeath@gmail.com>

	* app/paint/gimpsmudge.c
	(gimp_smudge_class_init): enable scaling for smudge tool
	(gimp_smudge_motion): correct comment.

svn path=/trunk/; revision=28131
2009-03-09 20:29:02 +00:00
Sven Neumann eb22d0784b corrected documentation of the position parameter.
2009-03-08  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/image.pdb (image_add_channel): corrected
	documentation of the position parameter.

	* app/pdb/image-cmds.c
	* libgimp/gimpimage_pdb.c: regenerated.


svn path=/trunk/; revision=28129
2009-03-08 11:49:01 +00:00
Sven Neumann 636757dd12 formatting.
2009-03-08  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcontainerview.c
	(gimp_container_view_item_selected): formatting.


svn path=/trunk/; revision=28126
2009-03-08 10:46:32 +00:00
Sven Neumann eebd0f90f6 disconnect from the "paint-info" combo-box before destroying the dialog.
2009-03-07  Sven Neumann  <sven@gimp.org>

	* app/dialogs/stroke-dialog.c (stroke_dialog_response): 
disconnect
	from the "paint-info" combo-box before destroying the dialog. 
The
	GimpContainerView emits "select-item" from its dispose handler.


svn path=/trunk/; revision=28125
2009-03-07 12:11:44 +00:00
Sven Neumann df8c8610a9 do not attempt to chain up in a signal callback.
2009-03-07  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcontainercombobox.c
	(gimp_container_combo_box_changed): do not attempt to chain up 
in
	a signal callback.


svn path=/trunk/; revision=28124
2009-03-07 11:31:32 +00:00
Sven Neumann 003e16dc14 formatting.
2009-03-05  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpuimanager.c: formatting.


svn path=/trunk/; revision=28113
2009-03-05 21:51:56 +00:00
Sven Neumann a196a2dbe0 app/widgets/gimpviewrendererimagefile.c
2009-03-05  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpviewrendererimagefile.c
	(gimp_view_renderer_imagefile_get_icon)
	* plug-ins/print/print.c (query): removed GTK+ version checks 
that
	have become obsolete.


svn path=/trunk/; revision=28111
2009-03-05 19:59:45 +00:00
Sven Neumann 849a18b08c Bug 574149 – Can't get name/filename of files loaded from URI
2009-03-04  Sven Neumann  <sven@gimp.org>

	Bug 574149 – Can't get name/filename of files loaded from URI

	* tools/pdbgen/pdb/image.pdb: added new procedure 
gimp-image-get-uri.

	* app/pdb/image-cmds.c
	* libgimp/gimpimage_pdb.c: regenerated.

	* plug-ins/pygimp/pygimp-image.c: wrap the new procedure into an
	Image attribute.


svn path=/trunk/; revision=28103
2009-03-04 19:35:18 +00:00
Sven Neumann f6cff4b0f8 improved docs for gimp-image-get-filename.
2009-03-04  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/image.pdb (image_get_filename): improved docs
	for gimp-image-get-filename.

	* app/pdb/image-cmds.c
	* libgimp/gimpimage_pdb.c: regenerated.


svn path=/trunk/; revision=28102
2009-03-04 18:38:14 +00:00
Sven Neumann 93524f3f8b Bug 574149 – Can't get name/filename of files loaded from URI
2009-03-04  Sven Neumann  <sven@gimp.org>

	Bug 574149 – Can't get name/filename of files loaded from URI

	* tools/pdbgen/pdb/image.pdb (image_get_name_invoker): use
	gimp_image_get_display_name().

	* app/pdb/image-cmds.c
	* libgimp/gimpimage_pdb.c: regenerated.


svn path=/trunk/; revision=28099
2009-03-04 18:24:29 +00:00
Sven Neumann 73ae572b75 Bug 520078 – Rotate brushes
2009-03-03  Sven Neumann  <sven@gimp.org>

	Bug 520078 – Rotate brushes

	* app/core/gimpbrush-transform.c: applied patch from Tal that
	improves bilinear interpolation for the brush transformations 
and
	fixes a bug in the calculation of the transformation matrix.


svn path=/trunk/; revision=28098
2009-03-03 15:00:14 +00:00
Michael Natterer b1b7f8102d app/core/gimpfilteredcontainer.[ch] app/core/gimptag.c codingstylize. Call
2009-03-03  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpfilteredcontainer.[ch]
	* app/core/gimptag.c
	* app/core/gimptagcache.[ch]: codingstylize. Call iterator GList*
	variables simply "list" just as we call integers simply "i".


svn path=/trunk/; revision=28097
2009-03-02 23:33:24 +00:00
Michael Natterer f1f3913b5e use gtk_paint_layout() instead of fiddling with a PangoRenderer manually.
2009-03-02  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimptagentry.c (gimp_tag_entry_expose): use
	gtk_paint_layout() instead of fiddling with a PangoRenderer
	manually.


svn path=/trunk/; revision=28096
2009-03-02 22:28:57 +00:00