Commit Graph

8303 Commits

Author SHA1 Message Date
Michael Natterer f13f80f04a added "position" and "push_undo" parameters to gimp_image_add_[vh]guide().
2003-03-28  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage-guides.[ch]: added "position" and "push_undo"
	parameters to gimp_image_add_[vh]guide(). Start with a refcount
	of 1, not 0 (EEK). Added gimp_image_guide_[un]ref(). Added
	"position" parameter to gimp_image_add_guide(). Added new
	function gimp_image_move_guide(). All functions push guide
	undos correctly and call gimp_image_update_guide() so this
	doesn't need to be done by callers.

	* app/core/gimpimage-crop.c
	* app/core/gimpimage-duplicate.c
	* app/core/gimpimage-resize.c
	* app/core/gimpimage-undo-push.c
	* app/core/gimpimage.c
	* app/tools/gimpmeasuretool.c
	* app/xcf/xcf-load.c
	* tools/pdbgen/pdb/guides.pdb: greatly simplyfied all places which
	modify guides: don't fiddle with undo and guide properties
	manually but simply use the API provided.

	* app/tools/gimpmovetool.[ch]: ditto. Changed everything to
	create/move the guide on button_release, not button_press. Enable
	canceling the operation by clicking button3 before releasing
	button1. Keep the guide drawn at its old position until the move
	is finished (fixes bug #75349 and bug #109267).

	* app/pdb/guides_cmds.c: regenerated.
2003-03-28 13:52:01 +00:00
Pablo Gonzalo del Campo 392bbd695c Updated Spanish translation.
2003-03-28  Pablo Gonzalo del Campo <pablodc@bigfoot.com>

        * es.po: Updated Spanish translation.
2003-03-28 13:33:43 +00:00
Michael Natterer fec6f5b32b call gimp_imagefile_update() on success. Ensures that the previews are
2003-03-28  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimagefile.c (gimp_imagefile_save_thumbnail):
	call gimp_imagefile_update() on success. Ensures that the
	previews are updated whenever we write the thumbnail.
2003-03-28 11:27:56 +00:00
Michael Natterer 0d548e0769 oops... 2003-03-28 11:21:40 +00:00
Michael Natterer c3519365f5 allow keyboard activation.
2003-03-28  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcellrenderertoggle.c
	(gimp_cell_renderer_toggle_activate) *
	app/widgets/gimpcellrendererviewable.c
	(gimp_cell_renderer_viewable_activate): allow keyboard activation.

	* app/widgets/gimpcellrendererviewable.c
	(gimp_cell_renderer_viewable_render): fixed the if() which resets
	the renderer's border color to black. Fixes layer borders to be
	always correct now.
2003-03-28 11:20:24 +00:00
Sven Neumann bc9ef72c45 check for event != NULL to avoid crashing when the cell is activated using
2003-03-28  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcellrenderertoggle.c
	(gimp_cell_renderer_toggle_activate): check for event != NULL to
	avoid crashing when the cell is activated using the keyboard.
2003-03-28 08:21:47 +00:00
Sven Neumann 4e3b31e989 respect the antialias parameter.
2003-03-28  Sven Neumann  <sven@gimp.org>

	* app/text/gimptext-compat.c: respect the antialias parameter.

	* app/text/gimptext.[ch]
	* app/text/gimptextlayout.c: added autohint property that allows
	to force the use of the Freetype auto-hinter.

	* app/tools/gimptextoptions.c: added check buttons for autohint
	and antialias. You need to patch PangoFT2 if you want to the
	antialias setting to have any effect (see #109370).
2003-03-28 01:35:01 +00:00
Jakub Steiner 1741894e73 minor shape fix 2003-03-27 19:31:06 +00:00
Jakub Steiner 08df8af8ad lighten up a bit
2003-03-27  Jakub Steiner <jimmac@ximian.com>

* data/images/gimp_splash.png: lighten up a bit
2003-03-27 19:26:05 +00:00
Jakub Steiner b8aaa6f33f lighten up a bit
2003-03-27  Jakub Steiner <jimmac@ximian.com>

* data/images/gimp_splash.png: lighten up a bit
2003-03-27 19:18:36 +00:00
Sven Neumann 10faf8d577 added hinting and antialias properties.
2003-03-27  Sven Neumann  <sven@gimp.org>

	* app/text/gimptext.[ch]: added hinting and antialias properties.

	* app/text/gimptextlayout.c: rewrote some parts using the
	PangoFontMap API. Respect hinting and antialias properties.
	(PangoFT2 does not allow to switch antialias off, so that has no
	effect yet.)

	* app/tools/gimptextoptions.c: added a check button that controls
	hinting.
2003-03-27 17:24:53 +00:00
Sven Neumann dafddf1639 require PangoFT2 >= 1.2.0.
2003-03-27  Sven Neumann  <sven@gimp.org>

	* configure.in: require PangoFT2 >= 1.2.0.

	* app/text/gimpfontlist.c: use the PangoFontMap API to list
	available fonts.
2003-03-27 15:52:25 +00:00
Jan Morén 4ee52d1d70 Updated Swedish translation.
2003-03-27  Jan Morén  <jan.moren@lucs.lu.se>

        * sv.po: Updated Swedish translation.
2003-03-27 14:27:41 +00:00
Michael Natterer 4305341d49 app/gui/channels-commands.c app/gui/file-new-dialog.c
2003-03-27  Michael Natterer  <mitch@gimp.org>

	* app/gui/channels-commands.c
	* app/gui/file-new-dialog.c
	* app/gui/layers-commands.c
	* app/gui/vectors-commands.c: use layer, channel, ... icons for
	the new layer, channel, ... dialogs.
2003-03-27 14:25:18 +00:00
Sven Neumann bed3c858da added new function gimp_list_sort().
2003-03-27  Sven Neumann  <sven@gimp.org>

	* app/core/gimplist.[ch]: added new function gimp_list_sort().

	* app/text/gimpfontlist.c (gimp_font_list_restore): sort the list
	after all fonts have been added instead of keeping the list in
	order while inserting
2003-03-27 14:11:05 +00:00
Sven Neumann ad6a8983c7 libgimpwidgets/libgimpwidgets-sections.txt new icons and lots of new sizes
2003-03-27  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/libgimpwidgets-sections.txt
	* libgimpwidgets/tmpl/gimpstock.sgml: new icons and lots of new
	sizes for existing icons.
2003-03-27 13:25:57 +00:00
Michael Natterer 71b7b39dfd Someone produces icons faster than I can commit...
2003-03-27  Michael Natterer  <mitch@gimp.org>

	Someone produces icons faster than I can commit...

	* themes/Default/images/stock-channel-alpha-16.png
	* themes/Default/images/stock-channel-alpha-24.png: updated.

	* themes/Default/images/stock-channel-alpha-32.png
	* themes/Default/images/stock-channel-alpha-48.png: new.

	* themes/Default/images/Makefile.am
	* libgimpwidgets/gimpstock.[ch]: added them to the stock system.

	* app/widgets/gimpcontainerpopup.c: use the new "view as list" and
	"view as grid" icons.
2003-03-27 13:04:49 +00:00
Sven Neumann 579bcb3411 POTFILES.in updated.
2003-03-27  Sven Neumann  <sven@gimp.org>

	* POTFILES.in
	* de.po: updated.
2003-03-27 12:58:49 +00:00
Sven Neumann 85af9bad0a app/core/core-enums.[ch] fixed typos spotted by Janne (bug #109322).
2003-03-27  Sven Neumann  <sven@gimp.org>

	* app/core/core-enums.[ch]
	* app/core/gimpimage.c: fixed typos spotted by Janne (bug #109322).

2003-03-27  Sven Neumann  <sven@gimp.org>

	* POTFILES.in
	* de.po: updated.
2003-03-27 12:58:10 +00:00
Michael Natterer e2bdd74617 More great icons from Jimmac:
2003-03-27  Michael Natterer  <mitch@gimp.org>

	More great icons from Jimmac:

	* themes/Default/images/stock-channel-16.png
	* themes/Default/images/stock-channel-24.png
	* themes/Default/images/stock-channel-blue-16.png
	* themes/Default/images/stock-channel-blue-24.png
	* themes/Default/images/stock-channel-gray-16.png
	* themes/Default/images/stock-channel-gray-24.png
	* themes/Default/images/stock-channel-green-16.png
	* themes/Default/images/stock-channel-green-24.png
	* themes/Default/images/stock-channel-red-16.png
	* themes/Default/images/stock-channel-red-24.png: updated.

	* themes/Default/images/stock-channel-32.png
	* themes/Default/images/stock-channel-48.png
	* themes/Default/images/stock-channel-blue-32.png
	* themes/Default/images/stock-channel-blue-48.png
	* themes/Default/images/stock-channel-gray-32.png
	* themes/Default/images/stock-channel-gray-48.png
	* themes/Default/images/stock-channel-green-32.png
	* themes/Default/images/stock-channel-green-48.png
	* themes/Default/images/stock-channel-red-32.png
	* themes/Default/images/stock-channel-red-48.png
	* themes/Default/images/stock-grid-16.png
	* themes/Default/images/stock-image-32.png
	* themes/Default/images/stock-image-48.png
	* themes/Default/images/stock-layer-32.png
	* themes/Default/images/stock-layer-48.png
	* themes/Default/images/stock-list-16.png
	* themes/Default/images/stock-text-layer-16.png
	* themes/Default/images/stock-text-layer-24.png
	* themes/Default/images/stock-text-layer-32.png
	* themes/Default/images/stock-text-layer-48.png: new ones.

	* themes/Default/images/Makefile.am
	* libgimpwidgets/gimpstock.[ch]: added them to the stock system.

	* app/text/gimptextlayer.c: use GIMP_STOCK_TEXT_LAYER.
2003-03-27 12:29:54 +00:00
Sven Neumann ce80c4c0b8 added a new marshaller.
2003-03-27  Sven Neumann  <sven@gimp.org>

	* app/core/gimpmarshal.list: added a new marshaller.

	* app/widgets/gimpcontainergridview.[ch]: added a "move_cursor"
	signal and added keybindings for PageUp/PageDown and Home/End.
2003-03-27 12:06:55 +00:00
Michael Natterer 21def17709 allow object properties to be set again if they are G_PARAM_WRITABLE.
2003-03-27  Michael Natterer  <mitch@gimp.org>

	* app/config/gimpconfig-deserialize.c
	(gimp_config_deserialize_property): allow object properties to be
	set again if they are G_PARAM_WRITABLE. Fixes active brush,
	pattern etc. deserialization.
2003-03-27 11:36:01 +00:00
Jan Morén 86f8c5fccf Updated Swedish translation.
2003-03-27  Jan Morén  <jan.moren@lucs.lu.se>

        * sv.po: Updated Swedish translation.
2003-03-27 11:16:25 +00:00
Christian Rose 3a31da971b Added "yi" to ALL_LINGUAS again. Po files for libgimp, plug-ins, and
2003-03-27  Christian Rose  <menthos@menthos.com>

	* configure.in: Added "yi" to ALL_LINGUAS again. Po files for
	libgimp, plug-ins, and script-fu have now been provided.
	* po-libgimp/yi.po, po-plug-ins/yi.po, po-script-fu/yi.po:
	Added Yiddish translations by
	Raphael Finkel <raphael@cs.uky.edu>.
2003-03-27 10:34:35 +00:00
Sven Neumann 2bdccbfd52 enlarged it a little.
2003-03-27  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimptexteditor.c: enlarged it a little.
2003-03-27 00:12:15 +00:00
Michael Natterer d105530836 new small tool icons from Jimmac.
2003-03-26  Michael Natterer  <mitch@gimp.org>

	* themes/Default/images/tools/stock-tool-*-16.png: new small tool
	icons from Jimmac.

	* themes/Default/images/Makefile.am
	* libgimpwidgets/gimpstock.c: added them to the stock system.
2003-03-26 22:26:07 +00:00
Sven Neumann 8f4c74e62a added an upper limit for the popup size to avoid a crash when
2003-03-26  Sven Neumann  <sven@gimp.org>

	* app/text/gimpfont.c (gimp_font_get_popup_size): added an upper
	limit for the popup size to avoid a crash when GIMP_PREVIEW_MAX_SIZE
	is exceeded.
2003-03-26 22:17:37 +00:00
Sven Neumann a64d64ee88 removed "yi" until po files were added to po-libgimp, po-plug-ins and
2003-03-26  Sven Neumann  <sven@gimp.org>

	* configure.in (ALL_LINGUAS): removed "yi" until po files were
	added to po-libgimp, po-plug-ins and po-script-fu.
2003-03-26 21:38:07 +00:00
Christian Rose da8e06a84d Added "yi" to ALL_LINGUAS. Added Yiddish translation by Raphael Finkel
2003-03-26  Christian Rose  <menthos@menthos.com>

	* configure.in: Added "yi" to ALL_LINGUAS.
	* po/yi.po: Added Yiddish translation by
	Raphael Finkel <raphael@cs.uky.edu>.
2003-03-26 19:04:55 +00:00
Manish Singh 93d0409ed5 fixed status return to succeed sometimes. Honor max_p in non-interactive
2003-03-26  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/max_rgb.c: fixed status return to succeed sometimes.
        Honor max_p in non-interactive mode too.
2003-03-26 17:53:12 +00:00
Michael Natterer bda4188ab1 added gimp_container_view_construct(). The new function calls
2003-03-26  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontainerview.[ch]: added
	gimp_container_view_construct(). The new function calls
	gimp_container_view_set_preview_size() instead of simply assigning
	view->preview_size (Fixes wrongly-sized toggle cells spotted by
	Jimmac).

	* app/widgets/gimpcontainereditor.c
	* app/widgets/gimpcontainergridview.c
	* app/widgets/gimpcontainertreeview.c
	* app/widgets/gimpitemtreeview.c: call when creating a view.

	* app/widgets/gimpchanneltreeview.c: check view->component_editor
	for being non-NULL before accessing it.
2003-03-26 17:49:42 +00:00
Sven Neumann ba8060a839 include X11/Xmu/WinUtil.h after including the GTK+/GDK headers.
2003-03-26  Sven Neumann  <sven@gimp.org>

        * tools/gimp-remote.c: include X11/Xmu/WinUtil.h after including
        the GTK+/GDK headers.
2003-03-26 15:38:36 +00:00
Sven Neumann 1eb9cc26f8 implemented GtkWidget::focus. Makes grid views keyboard-navigatable and
2003-03-26  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcontainergridview.c: implemented GtkWidget::focus.
	Makes grid views keyboard-navigatable and fixes bug #95120.
2003-03-26 15:28:17 +00:00
Michael Natterer af37e71b80 added the scrolled_win to the GimpContainerView struct. Create it in
2003-03-26  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontainerview.[ch]: added the scrolled_win
	to the GimpContainerView struct. Create it in init().
	Added gimp_container_view_set_size_request() which adds the
	scrolled_window's scrollbar and frames sizes correctly.

	* app/widgets/gimpcontainergridview.[ch]
	* app/widgets/gimpcontainertreeview.[ch]: removed scrolled windows
	here and use the one from the parent_instance. Use the new utility
	function.

	* app/widgets/gimpcontainertreeview.c: enable searching in the
	name column. Grab the focus in button_press.

	* app/widgets/gimpcontainerpopup.[ch]: added a button_box containing
	zoom in/out, view as list/grid and a button to show the permanently
	open dialog. Added more parameters to gimp_container_popup_new().

	* app/tools/gimpblendoptions.c
	* app/tools/gimpbucketfilloptions.c
	* app/tools/gimptextoptions.c
	* app/tools/paint_options.c: changed accordingly.
2003-03-26 14:56:10 +00:00
Sven Neumann 1e92b66b5b freeze object notifications around reset() and deserialize() 2003-03-26 13:39:00 +00:00
Sven Neumann 05e390692b reset the tool-options before loading the user settings. Don't warn if
2003-03-26  Sven Neumann  <sven@gimp.org>

	* app/gui/tool-options-dialog.c (tool_options_dialog_restore_callback):
	reset the tool-options before loading the user settings. Don't warn if
	loading fails.
2003-03-26 13:24:40 +00:00
Sven Neumann 42a215195d fixed braino that caused the wrong family to be selected.
2003-03-26  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpfontselection-dialog.c
	(gimp_font_selection_dialog_set_font_desc): fixed braino that
	caused the wrong family to be selected.
2003-03-26 11:58:09 +00:00
Sven Neumann 0ca5b099e5 connect the preview on the context's font object with the font property of
2003-03-26  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptextoptions.c: connect the preview on the
	context's font object with the font property of the text object
	associated to the text tool options.
2003-03-26 01:30:05 +00:00
Michael Natterer 7c64198ede added GimpFont DND.
2003-03-26  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdnd.[ch]: added GimpFont DND.
2003-03-26 01:27:23 +00:00
Sven Neumann ac014ecf5a fixed the dialog layout I broke 2003-03-26 00:53:25 +00:00
Michael Natterer f8823f37a5 app/gui/image-menu.c removed cut'n'paste-duplicated accelerators from the
2003-03-26  Michael Natterer  <mitch@gimp.org>

	* app/gui/image-menu.c
	* app/gui/toolbox-menu.c: removed cut'n'paste-duplicated
	accelerators from the new font selection menu entries.
2003-03-26 00:43:30 +00:00
Sven Neumann 10c1e4a7d2 added a gimp_prop_preview on the font property. Doesn't do anything yet
2003-03-26  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptextoptions.c (gimp_text_options_gui): added a
	gimp_prop_preview on the font property. Doesn't do anything yet
	but has a nice popup...
2003-03-26 00:41:26 +00:00
Michael Natterer 75eb793b99 a nicer popup preview featuring five dozen liquor jugs.
2003-03-26  Michael Natterer  <mitch@gimp.org>

	* app/text/gimpfont.c: a nicer popup preview featuring five
	dozen liquor jugs.
2003-03-26 00:30:10 +00:00
Sven Neumann dec7cae03e implemented gimp_font_list_restore().
2003-03-26  Sven Neumann  <sven@gimp.org>

	* app/text/gimpfontlist.c: implemented gimp_font_list_restore().
2003-03-25 23:41:01 +00:00
Sven Neumann 6763591e98 first draft of gimp_font_list_restore().
2003-03-26  Sven Neumann  <sven@gimp.org>

	* app/text/gimpfontlist.c: first draft of gimp_font_list_restore().
2003-03-25 23:24:30 +00:00
Sven Neumann 537e8606c3 sort of works now.
2003-03-26  Sven Neumann  <sven@gimp.org>

	* app/text/gimpfont.c (gimp_font_get_new_preview): sort of works now.
2003-03-25 23:10:50 +00:00
Michael Natterer c2a22d5d52 added gimp_font_list_restore() which loads the fonts (not yet).
2003-03-25  Michael Natterer  <mitch@gimp.org>

	* app/text/gimpfontlist.[ch]: added gimp_font_list_restore()
	which loads the fonts (not yet).

	* app/core/gimp.c: call it.

	* app/gui/dialogs-constructors.[ch]
	* app/gui/dialogs-menu.c
	* app/gui/dialogs.c
	* app/gui/image-menu.c
	* app/gui/toolbox-menu.c: added font list and grid views.

	* app/gui/menus.c: cosmetic.
2003-03-25 22:53:10 +00:00
Sven Neumann b4dc1579e9 made the PangoContext an object property of GimpFont.
2003-03-25  Sven Neumann  <sven@gimp.org>

	* app/text/gimpfont.c: made the PangoContext an object property of
	GimpFont.
2003-03-25 22:48:59 +00:00
Sven Neumann fab72973a2 require gtk+ >= 2.2.
2003-03-25  Sven Neumann  <sven@gimp.org>

	* gimpui-1.3.pc.in: require gtk+ >= 2.2.

	* app/text/gimpfont.[ch]: implemented basic preview functionality.

	* app/text/gimptextlayout.c: changed a comment.
2003-03-25 22:13:10 +00:00
Michael Natterer 47419bbcec added "gchar *default_font". and its blurb.
2003-03-25  Michael Natterer  <mitch@gimp.org>

	* app/config/gimpcoreconfig.[ch]: added "gchar *default_font".
	* app/config/gimprc-blurbs.h: and its blurb.

	* app/core/gimp.[ch]: keep a GimpFontList around.

	* app/core/gimpcontext.[ch]: added a GimpFont and all needed
	fonctions to let it work like brush, pattern etc.

	* app/core/gimpdatalist.c: cosmetic.
2003-03-25 22:06:03 +00:00