Commit Graph

8427 Commits

Author SHA1 Message Date
Sven Neumann c16bc592a0 changed the "fade-length" and "gradient-length" minimum values to 0.0 for
2003-04-13  Sven Neumann  <sven@gimp.org>

	* app/paint/gimppaintoptions.c: changed the "fade-length" and
	"gradient-length" minimum values to 0.0 for compatibility with
	the PDB API.

	* app/paint/gimppaintcore.c (gimp_paint_core_get_color_from_gradient):
	check that gradient_length > 0.0 before dividing by it.

	* plug-ins/gfig/gfig.c (gfig_paint_callback): push an undo group
	around the paint operations (bug #110446).
2003-04-13 13:55:09 +00:00
Michael Natterer 1501733056 made the names editable in the tree view.
2003-04-13  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimptemplateview.c: made the names editable in the
	tree view.
2003-04-13 13:47:16 +00:00
Michael Natterer ffa291d6ce app/core/gimpcontext.c (gimp_context_deserialize_property) g_free() the
2003-04-13  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpcontext.c (gimp_context_deserialize_property)
	* app/core/gimpcontainer.c (gimp_container_deserialize): g_free()
	the string returned by gimp_scanner_parse_string(). Replace
	NULL object names by "".
2003-04-13 12:27:44 +00:00
Michael Natterer 4799083c69 g_memdup() the segments returned by gimp_image_mask_boundary(). Just
2003-04-13  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpeditselectiontool.c (init_edit_selection):
	g_memdup() the segments returned by gimp_image_mask_boundary().
	Just caching the pointers leads to bug #22375 because the image's
	mask boundary changes while we live-move stuff.

	* app/tools/gimpmovetool.c (gimp_move_tool_button_press): pause
	the selection when starting to move a guide, since we also resume
	it when we're finished.

	(both bugs tracked down by Pedro Gimeno).
2003-04-13 11:43:47 +00:00
Sven Neumann 6e5064f733 register missing icon for GIMP_STOCK_GRAVITY_WEST.
2003-04-12  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpstock.c (gimp_stock_button_pixbufs): register
	missing icon for GIMP_STOCK_GRAVITY_WEST.
2003-04-12 20:23:45 +00:00
Michael Natterer a4be816fa6 app/widgets/gimpcontainerpopup.[ch] added "preview_size" and
2003-04-12  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontainerpopup.[ch]
	* app/widgets/gimpviewablebutton.[ch]: added "preview_size" and
	"preview_border_width" parameters to the constructors and use them
	when creating the popup.

	* app/tools/gimptextoptions.c
	* app/tools/paint_options.c
	* app/widgets/gimptemplateeditor.c: changed accordingly. Create the
	icon popup without borders.
2003-04-12 20:02:16 +00:00
Michael Natterer f82440ff48 made object properties G_PARAM_READWRITE by default. Added flag
2003-04-12  Michael Natterer  <mitch@gimp.org>

	* app/config/gimpconfig-params.h: made object properties
	G_PARAM_READWRITE by default. Added flag GIMP_PARAM_AGGREGATE
	which indicates that an object property is not a reference but a
	real part of its owner.

	* app/config/gimpconfig-deserialize.c: g_object_set_property()
	object properties only if they are not GIMP_PARAM_AGGREGATE.

	* app/config/gimpconfig-utils.c (gimp_config_copy_properties,
	gimp_config_reset_properties): copy and reset GIMP_PARAM_AGGREGATE
	object properties correctly.

	* app/config/gimpconfig-serialize.c: don't call
	gimp_config_writer_open/close() for properties which are handled
	by a GimpConfigIface::serialize_property() implementation.

	* app/core/gimpcontext.c: removed exlicit G_PARAM_WRITABLE from
	object properties since that's the default now. Call
	gimp_config_writer_open/close() when serializing properties.

	* app/core/gimpviewable.c (gimp_viewable_get_property): use
	gimp_viewable_get_stock_id().
	(gimp_viewable_set_stock_id): set stock_id to NULL if the new
	stock_id is the same as viewable_class->default_stock_id.
	Added serialize_property() which skips stock_id serialization
	if it is NULL.

	* app/tools/gimptextoptions.c: made the "text" property
	GIMP_PARAM_AGGREGATE. Added gimp_text_options_set_property()
	(which does nothing).

	* app/widgets/gimptemplateeditor.[ch]: added an optional
	GimpViewableButton to change the template's icon.

	* app/gui/file-new-dialog.c: create it with the icon button so it
	gets some testing.
2003-04-12 19:06:25 +00:00
Miloslav Trmac 8bed928dee Update Czech translation 2003-04-12 16:28:32 +00:00
Dave Neary 2d5fe3bf0c Fixed a bug caused by myself previously. png saving should now work
2003-04-12  Dave Neary  <bolsh@gimp.org>

        * plug-ins/common/png.c (save_image):
        Fixed a bug caused by myself previously. png saving
        should now work reasonably correctly with alpha on indexed
        images.
2003-04-12 15:00:20 +00:00
Sven Neumann e00514993e applied a patch from Pedro Gimero that plugs a memleak in Script-Fu.
2003-04-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/siod-wrapper.c (marshall_proc_db_call):
	applied a patch from Pedro Gimero that plugs a memleak in Script-Fu.
2003-04-12 12:59:15 +00:00
Sven Neumann d95b6181da removed plug-ins/gap/sel-to-anim-img.scm.
2003-04-12  Sven Neumann  <sven@gimp.org>

	* POTFILES.in: removed plug-ins/gap/sel-to-anim-img.scm.

	* de.po: updated.
2003-04-12 12:50:13 +00:00
updated ja.po. T.Aihana 386aed1acf 2003-04-12 updated ja.po. T.Aihana <aihana@gnome.gr.jp> 2003-04-12 07:07:29 +00:00
Sven Neumann 5aae2c2306 fixed fnord that caused the dialog to sometimes show a ratio of 0:0.
2003-04-11  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_scale_dialog): fixed fnord that caused the
	dialog to sometimes show a ratio of 0:0.
2003-04-11 22:00:09 +00:00
Sven Neumann a24b7de0c4 return GTK_ICON_SIZE_INVALID for non-existant icons.
2003-04-11  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpwidgets-utils.c (gimp_get_icon_size): return
	GTK_ICON_SIZE_INVALID for non-existant icons.

	* app/widgets/gimppreviewrenderer.c: handle GTK_ICON_SIZE_INVALID.
2003-04-11 21:23:34 +00:00
Michael Natterer 3343455c13 s/NewImageInfo/FileNewDialog/g, cleanup.
2003-04-11  Michael Natterer  <mitch@gimp.org>

	* app/gui/file-new-dialog.c: s/NewImageInfo/FileNewDialog/g,
	cleanup.
2003-04-11 17:42:59 +00:00
Michael Natterer fde9575781 derive it from GtkBin, not from GtkVBox. Removed "content_spacing" style
2003-04-11  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdockable.[ch]: derive it from GtkBin, not from
	GtkVBox. Removed "content_spacing" style property.

	* app/widgets/gimpcontainerview-utils.c
	* etc/gtkrc_user
	* themes/Default/gtkrc: changed accordingly.
2003-04-11 16:51:49 +00:00
Sven Neumann 5f26afe77d needful things 2003-04-11 16:46:43 +00:00
Raphael Quinet 179d6c61e2 restore the original input range from 1 to 4 for the Spatial Oversample
2003-04-11  Raphael Quinet  <quinet@gamers.org>

	* plug-ins/flame/flame.c (dialog): restore the original input
	range from 1 to 4 for the Spatial Oversample parameter, and reset
	the number of decimals to 0.  Fixes bug #110443.
2003-04-11 16:23:56 +00:00
Sven Neumann 09e676944c themes/Default/images/Makefile.am
2003-04-11  Sven Neumann  <sven@gimp.org>

	* themes/Default/images/Makefile.am
	* themes/Default/images/stock-template-24.png
	* themes/Default/images/stock-video-[16|24].png
	* themes/Default/images/stock-web-[16|24].png: new icons by Jimmac.

	* libgimpwidgets/gimpstock.[ch]: register the new icons.

	* etc/templaterc: use Web icons for the web banner templates.
2003-04-11 15:38:04 +00:00
Sven Neumann 1b7237c32b POTFILES.in updated.
2003-04-11  Sven Neumann  <sven@gimp.org>

	* POTFILES.in
	* de.po: updated.
2003-04-11 14:11:25 +00:00
Michael Natterer d47eedc279 app/widgets/Makefile.am app/widgets/widgets-types.h new widget chopped out
2003-04-11  Michael Natterer  <mitch@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimptemplateeditor.[ch]: new widget chopped out
	of file-new-dialog.c

	* app/gui/file-new-dialog.c: use it.
2003-04-11 13:17:23 +00:00
Sven Neumann 5408dfc8ad lookup the border color in the window's colormap.
2003-04-11  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimppreviewrenderer.c (gimp_preview_renderer_create_gc):
	lookup the border color in the window's colormap.
2003-04-11 12:48:54 +00:00
Sven Neumann a8697d3e02 app/widgets/gimppreview.[ch] moved background functionality into the
2003-04-11  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimppreview.[ch]
	* app/widgets/gimppreviewrenderer.[ch]: moved background
	functionality into the renderer. Removed some GimpPreview
	functions that used to wrap GimpPreviewRenderer functionality.

	* app/display/gimpdisplayshell-layer-select.c
	* app/display/gimpnavigationview.c
	* app/gui/dialogs-constructors.c
	* app/widgets/gimpcontainergridview.c
	* app/widgets/gimpcontainermenuimpl.c
	* app/widgets/gimppreview-popup.c
	* app/widgets/gimpselectioneditor.[ch]: changed accordingly.
2003-04-11 11:18:12 +00:00
Michael Natterer 141fc6c54e set the cursor on preview->event_window, not widget->window. Use
2003-04-11  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpnavigationpreview.c: set the cursor on
	preview->event_window, not widget->window. Use
	preview->renderer->viewable, not preview->viewable.
2003-04-11 10:58:28 +00:00
Sven Neumann 6d8249bd86 made GimpPreview a NO_WINDOW widget that draws on the parent window. Added
2003-04-11  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimppreview.[ch]: made GimpPreview a NO_WINDOW
	widget that draws on the parent window. Added an INPUT_ONLY window
	for events.

	* app/widgets/gimpnavigationpreview.c: take the widget's
	allocation into account when rendering the marker and grab the
	mouse on the preview's event_window.

	* app/widgets/gimppreviewrenderer.[ch]: pass GdkRectangles as const.
2003-04-11 08:37:26 +00:00
Michael Natterer df228e7814 added Portrait/Landscape radio buttons which follow the state of the
2003-04-10  Michael Natterer  <mitch@gimp.org>

	* app/gui/file-new-dialog.c: added Portrait/Landscape radio
	buttons which follow the state of the width/height entered and can
	be used to swap them.
2003-04-10 20:08:56 +00:00
Sven Neumann 19ab634bf0 added more standard paper sizes.
2003-04-10  Sven Neumann  <sven@gimp.org>

	* etc/templaterc: added more standard paper sizes.
2003-04-10 19:39:06 +00:00
Pablo Gonzalo del Campo dcefb7d4e1 Updated Spanish translation.
2003-04-10  Pablo Gonzalo del Campo <pablodc@bigfoot.com>

	* es.po: Updated Spanish translation.
2003-04-10 18:39:05 +00:00
Sven Neumann a9fe64217a more code cosmetics 2003-04-10 14:37:06 +00:00
Sven Neumann 311dbe9ad7 app/xcf/xcf-load.c some cosmetic changes before I do any real ones.
2003-04-10  Sven Neumann  <sven@gimp.org>

	* app/xcf/xcf-load.c
	* app/xcf/xcf-save.c: some cosmetic changes before I do any real ones.
2003-04-10 14:15:24 +00:00
Sven Neumann 7cd5ffd756 plug-ins/script-fu/interp_sliba.c applied a patch from Pedro Gimeno that
2003-04-10  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/interp_sliba.c
	* plug-ins/script-fu/scripts/selection-round.scm: applied a patch
	from Pedro Gimeno that adds the trunc() function to our scheme
	interpreter and fixes bug #109475 the right way.
2003-04-10 13:44:37 +00:00
Sven Neumann 2db8367c7d themes/Default/images/Makefile.am
2003-04-10  Sven Neumann  <sven@gimp.org>

	* themes/Default/images/Makefile.am
	* themes/Default/images/stock-portrait-16.png
	* themes/Default/images/stock-landscape-16.png: new icons by Jimmac.

	* libgimpwidgets/gimpstock.[ch]: register the new icons.

	* app/widgets/widgets-enums.[ch]: added new enum GimpAspectType.
2003-04-10 11:05:17 +00:00
Michael Natterer 2598142564 added gimp_context_type_to_prop_name().
2003-04-10  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpcontext.[ch]: added gimp_context_type_to_prop_name().

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimpviewablebutton.[ch]: new widget implementing
	the wheel-scrollable preview button.

	* app/tools/gimptextoptions.c
	* app/tools/paint_options.[ch]: removed the code implementing the
	same and use GimpViewableButton.

	* app/tools/tool_manager.c: added the font to the context
	properties which are remembered per tool. Added an evil hack
	using g_object_set_data() to pass the global_dock_factory to
	tool option GUI constructors.
2003-04-10 10:34:56 +00:00
Sven Neumann 6b581cc500 app/text/text-enums.[ch] app/text/gimptext.[ch] added some more text
2003-04-09  Sven Neumann  <sven@gimp.org>

	* app/text/text-enums.[ch]
	* app/text/gimptext.[ch]
	* app/text/gimptextlayout.c: added some more text properties that
	can't be accessed from the GUI yet.
2003-04-09 21:19:12 +00:00
Michael Natterer 30b303edb8 fixed boolean logic bug introduced by the fix for bug #110173. Spotted by
2003-04-09  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpeditselectiontool.c
	(gimp_edit_selection_tool_button_release): fixed boolean logic bug
	introduced by the fix for bug #110173. Spotted by Pedro Gimeno.
2003-04-09 16:29:58 +00:00
Sven Neumann fb23d14946 fixed algorithm that calculates the brush size, some code cleanup.
2003-04-09  Sven Neumann  <sven@gimp.org>

	* app/core/gimpbrushgenerated.c: fixed algorithm that calculates
	the brush size, some code cleanup.
2003-04-09 15:31:45 +00:00
Sven Neumann d64317a0cc don't try to hide the tearoff menu item if tearoff menus are disabled in
2003-04-09  Sven Neumann  <sven@gimp.org>

	* app/gui/image-menu.c (image_menu_setup): don't try to hide the
	tearoff menu item if tearoff menus are disabled in the prefs.
2003-04-09 11:13:00 +00:00
Michael Natterer 43c341c055 added "gboolean set_image_clean" and call gimp_image_clean_all() only if
2003-04-09  Michael Natterer  <mitch@gimp.org>

	* app/file/file-save.[ch] (file_save_as): added "gboolean
	set_image_clean" and call gimp_image_clean_all() only if it
	was passed as TRUE.
	(file_save): pass TRUE.

	* app/gui/file-save-dialog.c: pass TRUE from the "Save as" and
	FALSE from the "Save a Copy" dialog (bug #109464).
2003-04-09 09:52:01 +00:00
Michael Natterer 13a9252950 say "Remove Channel" when pushing the undo, not "Remove Layer".
2003-04-09  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage.c (gimp_image_remove_channel): say
	"Remove Channel" when pushing the undo, not "Remove Layer".
2003-04-09 09:11:25 +00:00
Michael Natterer d2fbc95c43 added paint_options_container_scrolled() utility function which
2003-04-09  Michael Natterer  <mitch@gimp.org>

	* app/tools/paint_options.[ch]: added
	paint_options_container_scrolled() utility function which
	wheel-scrolls a container. Use it for the brush and pattern
	previews. Added a gradient preview.

	* app/tools/gimpblendoptions.c: removed the gradient preview here.

	* app/tools/gimptextoptions.c: use the new function to scroll
	the font list.
2003-04-08 22:43:20 +00:00
Michael Natterer bfe98456e4 removed the pattern preview...
2003-04-08  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpbucketfilloptions.c: removed the pattern preview...

	* app/tools/paint_options.c: ...and added it here so all paint
	tools can use it if needed. Added a pattern preview to the clone
	tool options.
2003-04-08 20:08:37 +00:00
Michael Natterer e9d617b5f2 Added "gpointer get_tab_data" to GimpDockableGetTabFunc and to
2003-04-08  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdockable.[ch]: Added "gpointer get_tab_data" to
	GimpDockableGetTabFunc and to gimp_dockable_new().

	* app/gui/dialogs-constructors.c: changed accordingly. Replaced
	dialogs_[brush,pattern,gradient,palette,font]_tab_func() by
	dialogs_viewable_tab_func() which gets passed the GType as
	get_tab_data.
2003-04-08 19:54:22 +00:00
Michael Natterer 99d93b9255 added vitrual function GimpViewable::get_description() which returns the
2003-04-08  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpviewable.[ch]: added vitrual function
	GimpViewable::get_description() which returns the string that
	should be presented to the user plus an optional tooltip with more
	information. The default implementation just returns the object's
	name and no tooltip.

	* app/core/gimpbrush.c
	* app/core/gimpbuffer.c
	* app/core/gimpimage.c
	* app/core/gimppalette.c
	* app/core/gimppattern.c
	* app/core/gimptoolinfo.c: implement get_description().

	* app/core/gimpimagefile.[ch]: ditto. Renamed
	gimp_imagefile_get_description() to
	gimp_imagefile_get_desc_string(). Well, um, gimme a better name...

	* app/gui/file-open-dialog.c: changed accordingly.

	* app/file/file-utils.[ch]: renamed readXVThumb() to
	file_utils_readXVThumb().

	* tools/pdbgen/pdb/fileops.pdb: changed accordingly.

	* app/widgets/widgets-types.h: removed GimpItemGetNameFunc typedef.

	* app/widgets/gimpcontainerview-utils.[ch]: removed the the actual
	get_name_funcs. They now live in the core as
	GimpViewable::get_description() implementations.

	* app/widgets/gimpcontainermenu.[ch]
	* app/widgets/gimpcontainergridview.c
	* app/widgets/gimpcontainermenuimpl.c
	* app/widgets/gimpcontainertreeview.c
	* app/widgets/gimpcontainerview.[ch]
	* app/widgets/gimpmenuitem.[ch]
	* app/widgets/gimpviewabledialog.c: removed get_name_func stuff
	and use gimp_viewable_get_description().

	* app/widgets/gimpcontainermenu.[ch]: added "preview_border_width"
	to gimp_container_menu_set_preview_size().

	* app/widgets/gimpimagedock.c: changed accordingly.

	* app/pdb/fileops_cmds.c: regenerated.
2003-04-08 16:01:01 +00:00
Michael Natterer f20e559bbf app/widgets/gimpbrushfactoryview.[ch] app/widgets/gimpbufferview.[ch]
2003-04-08  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpbrushfactoryview.[ch]
	* app/widgets/gimpbufferview.[ch]
	* app/widgets/gimpcontainereditor.[ch]
	* app/widgets/gimpcontainergridview.[ch]
	* app/widgets/gimpcontainertreeview.[ch]
	* app/widgets/gimpcontainerview.[ch]
	* app/widgets/gimpdatafactoryview.[ch]
	* app/widgets/gimpdocumentview.[ch]
	* app/widgets/gimpimageview.[ch]
	* app/widgets/gimpitemtreeview.[ch]
	* app/widgets/gimptemplateview.[ch]: removed "min_item_x" and
	"min_item_y" parameters all over the place. Added
	"preview_border_width" instead.

	* app/widgets/gimpmenuitem.c: ensure that all menu items have the
	same height.

	* app/widgets/gimpcontainerpopup.c
	* app/widgets/gimplayertreeview.c
	* app/widgets/gimpundoeditor.c
	* app/gui/brush-select.c
	* app/gui/dialogs-commands.c
	* app/gui/dialogs-constructors.c
	* app/gui/font-select.c
	* app/gui/gradient-select.c
	* app/gui/palette-select.c
	* app/gui/pattern-select.c: changed accordingly.

	* app/gui/dialogs-constructors.c: removed the borders from the tool
	and template lists.
2003-04-08 12:39:02 +00:00
Michael Natterer 5797c03295 app/config/gimpguiconfig.[ch] added "gboolean save_accels" and "gboolean
2003-04-08  Michael Natterer  <mitch@gimp.org>

	* app/config/gimpguiconfig.[ch]
	* app/config/gimprc-blurbs.h: added "gboolean save_accels" and
	"gboolean restore_accels".

	* app/gui/menus.[ch]: added menus_restore(), menus_save() and
	menus_clear().

	* app/gui/session.[ch]: added session_clear().

	* app/gui/gui.c: call menus_restore() and menus_save().

	* app/gui/preferences-dialog.c: brought the full core config
	options overkill to the GUI. Needs to be simplified. Cleaned
	up the "Interface" page a bit.
2003-04-08 10:02:42 +00:00
Sven Neumann 0dd49fd559 another patch from Pedro Gimeno that addresses problems displaying the
2003-04-07  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpeditselectiontool.c (selection_transform_segs):
	another patch from Pedro Gimeno that addresses problems displaying
	the selection border (bug #110014).
2003-04-07 16:30:38 +00:00
Sven Neumann 02fec0809b applied a patch from Pedro Gimeno that removes the confusing misfeature of
2003-04-07  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpeditselectiontool.c
	(gimp_edit_selection_tool_button_release): applied a patch from
	Pedro Gimeno that removes the confusing misfeature of anchoring
	the floating selection if it wasn't moved (bug #110173).
2003-04-07 13:22:50 +00:00
Sven Neumann 869b75dd42 plug-ins/sgi/sgi.h applied a patch from marek@aki.cz that adds support for
2003-04-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/sgi/sgi.h
	* plug-ins/sgi/sgilib.c: applied a patch from marek@aki.cz that
	adds support for reading SGI files in little-endian format. Fixes
	bug #106610.
2003-04-07 11:59:33 +00:00
Sven Neumann 45174a176d POTFILES.in updated.
2003-04-07  Sven Neumann  <sven@gimp.org>

	* POTFILES.in
	* de.po: updated.
2003-04-07 11:02:30 +00:00
Michael Natterer 43356fa076 applied a (modified) patch from Pedro Gimeno that fixes bug #110115.
2003-04-07  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpeditselectiontool.c: applied a (modified) patch
	from Pedro Gimeno that fixes bug #110115.
2003-04-07 09:31:28 +00:00