Commit Graph

8419 Commits

Author SHA1 Message Date
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
Michael Natterer 290d9f2168 call gimp_viewable_invalidate_preview() on the layer, not on the image
2003-04-07  Michael Natterer  <mitch@gimp.org>

	* app/core/gimplayer.c (gimp_layer_apply_mask): call
	gimp_viewable_invalidate_preview() on the layer, not on the image
	(fixes bug #108960).
2003-04-07 09:27:08 +00:00
Michael Natterer 48b380a7ab get the gradient_samples here if they are NULL. Fixes crash in
2003-04-06  Michael Natterer  <mitch@gimp.org>

	* plug-ins/FractalExplorer/Dialogs.c (make_color_map): get the
	gradient_samples here if they are NULL. Fixes crash in
	noninteractive mode (patch from Raphael Quinet, bug #103470).
2003-04-06 16:06:03 +00:00
Duarte Loreto f5d567198e Updated Portuguese translation.
2003-04-06  Duarte Loreto <happyguy_pt@hotmail.com>

        * pt.po: Updated Portuguese translation.
2003-04-06 15:53:26 +00:00
Michael Natterer 9827ceac0e added gimp_list_uniquefy_name() utility function.
2003-04-06  Michael Natterer  <mitch@gimp.org>

	* app/core/gimplist.[ch]: added gimp_list_uniquefy_name() utility
	function.

	* app/core/gimpdatalist.c
	* app/core/gimpitem.c: use it here instead of duplicating almost
	the same code.

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimptemplateview.[ch]: new widget for editing the
	template list.

	* app/gui/dialogs-constructors.c: use it.

	* app/gui/Makefile.am
	* app/gui/templates-commands.[ch]
	* app/gui/templates-menu.[ch]: new files implementing the context
	menu for the template list.

	* app/gui/menus.c: register the new menu with the menu factory.

	* app/gui/file-commands.c (file_new_template_callback): uniquefy
	the new template's name.

	* app/gui/documents-commands.c: fixed typo.
2003-04-06 11:21:56 +00:00
Michael Natterer b0defba66a fixed bug spotted by Pedro Gimeno by moving the alpha calculation to the
2003-04-06  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpgradient.c (gimp_gradient_get_color_at): fixed bug
	spotted by Pedro Gimeno by moving the alpha calculation to the
	bottom so it is not affected by rgb->hsv->rgb conversions
	(bug #110053).
2003-04-06 09:07:23 +00:00
Duarte Loreto e78ce36571 Updated Portuguese translation.
2003-04-06  Duarte Loreto <happyguy_pt@hotmail.com>

        * pt.po: Updated Portuguese translation.
2003-04-06 00:08:44 +00:00
Michael Natterer e7fbd8106f reset object properties only if they are GIMP_PARAM_SERIALIZABLE.
2003-04-05  Michael Natterer  <mitch@gimp.org>

	* app/config/gimpconfig-utils.c (gimp_config_reset_properties):
	reset object properties only if they are GIMP_PARAM_SERIALIZABLE.

	* app/core/gimpcontext.[ch]: added a GimpTemplate property.

	* app/gui/dialogs-constructors.[ch]
	* app/gui/dialogs.c: added a template dialog.

	* app/gui/dialogs-menu.c
	* app/gui/image-menu.c
	* app/gui/toolbox-menu.c: and menu entries to open it.

	* app/widgets/gimpdnd.[ch]: added DND for GimpTemplates.
2003-04-05 19:56:38 +00:00
Manish Singh a1a7db7920 remove gtk-can-change-accels setting, since there is a UI for it (that
2003-04-05  Manish Singh  <yosh@gimp.org>

        * themes/Default/gtkrc: remove gtk-can-change-accels setting, since
        there is a UI for it (that overrides it)
2003-04-05 19:18:55 +00:00