Commit Graph

8153 Commits

Author SHA1 Message Date
Michael Natterer f6a95200f2 replaced the "gboolean title_dirty" in GimpDisplayShell by "guint
2003-02-25  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.[ch]: replaced the "gboolean
	title_dirty" in GimpDisplayShell by "guint title_idle_id".
	(gimp_display_shell_flush): Call gimp_display_shell_update_title()
	unconditionally. Don't call info_window_update().

	* app/display/gimpdisplayshell-handlers.c
	* app/display/gimpdisplayshell-scale.c: ditto.

	* app/display/gimpdisplayshell-title.c: update the title in an
	idle function. Call info_window_update() from the idle function.
2003-02-25 19:01:10 +00:00
Pablo Gonzalo del Campo 6a70f8820f Updated Spanish translation.
2003-02-25  Pablo Gonzalo del Campo <pablodc@bigfoot.com>

	* es.po: Updated Spanish translation.
2003-02-25 18:03:36 +00:00
Jan Morén 1b6071a22e Updated Swedish translation.
2003-02-25  Jan Morén  <jan.moren@lucs.lu.se>

        * sv.po: Updated Swedish translation.
2003-02-25 17:16:47 +00:00
Sven Neumann 890c6fdee4 app/config/gimpdisplayconfig.[ch] app/config/gimprc-blurbs.h
2003-02-25  Sven Neumann  <sven@gimp.org>

	* app/config/gimpdisplayconfig.[ch]
	* app/config/gimprc-blurbs.h
	* app/display/gimpdisplayshell.c
	* app/gui/preferences-dialog.c: applied a modified version of a
	patch from Toralf Lund <toralf@kscanners.no> that adds a new
	preferences option to choose the inital zoom ratio. Fixes bug
	#106730 and in my opinion also #103547.
2003-02-25 16:30:53 +00:00
Sven Neumann a7aae31211 replaced the GtkList with a GtkTreeView/Model, replaced all deprecated
2003-02-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/spheredesigner.c: replaced the GtkList with a
	GtkTreeView/Model, replaced all deprecated GTK+ calls.

	* plug-ins/common/uniteditor.c: cosmetics.
2003-02-25 14:48:24 +00:00
Michael Natterer 4da735e6b3 remove the insert_data from the hash table *after* calling the virtual
2003-02-25  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontainerview.c (gimp_container_view_remove):
	remove the insert_data from the hash table *after* calling the
	virtual remove_item() functions because GimpContainerTreeView's
	GtkTreeIters are freed by the hash table when removing them.
2003-02-25 03:19:55 +00:00
Sven Neumann a4f8b0caa8 app/config/gimprc-blurbs.h tried to improve the explanations of the new
2003-02-25  Sven Neumann  <sven@gimp.org>

	* app/config/gimprc-blurbs.h
	* app/gui/preferences-dialog.c: tried to improve the explanations
	of the new undo limits.
2003-02-25 02:46:44 +00:00
Sven Neumann f658f1ce22 if in free select mode set width and height in the tool options.
2003-02-25  Sven Neumann  <sven@gimp.org>

	* app/tools/gimprectselecttool.c (gimp_rect_select_tool_motion):
	if in free select mode set width and height in the tool options.

	* app/tools/gimpselectionoptions.c: relaxed the limits for the
	fixed-width and fixed-height properties.
2003-02-25 02:13:03 +00:00
Michael Natterer 2d3c02f4a5 the gtk_tree_model_get() argument list ends with -1, not NULL.
2003-02-25  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontainertreeview.c
	(gimp_container_tree_view_button_press): the gtk_tree_model_get()
	argument list ends with -1, not NULL.
2003-02-25 00:39:50 +00:00
Sven Neumann 6af1f58b96 code cosmetics.
2003-02-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/spheredesigner.c: code cosmetics.
2003-02-24 23:44:18 +00:00
Sven Neumann aa4460fbd6 prefer automake-1.7 over automake-1.6.
2003-02-24  Sven Neumann  <sven@gimp.org>

	* autogen.sh: prefer automake-1.7 over automake-1.6.

	* configure.in: removed the call to AC_PROG_RANLIB again since
	according to automake it is rendered obsolete by AC_PROG_LIBTOOL.
2003-02-24 22:49:45 +00:00
Yuri Syrota 69671295e8 Updated Ukrainian translation 2003-02-24 20:31:58 +00:00
Michael Natterer 0806aad654 added "GDestroyNotify insert_data_free" to the GimpContainerViewClass
2003-02-24  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontainerview.[ch]: added "GDestroyNotify
	insert_data_free" to the GimpContainerViewClass struct. Pass it as
	"value_destroy_func" to g_hash_table_new_full().

	* app/widgets/gimpcontainertreeview.[ch]: set g_free() as
	insert_data_free, so we don't leak the GtkTreeIters used as
	insert_data. Added DND stuff (you can drag any item without
	selecting it using mouse button 2). Cleanup.

	* app/widgets/gimpcontainereditor.c: cosmetic.
2003-02-24 20:31:14 +00:00
Sven Neumann aff8306309 app/text/gimptext.[ch] added a language property to GimpText which
2003-02-24  Sven Neumann  <sven@gimp.org>

	* app/text/gimptext.[ch]
	* app/text/gimptextlayout.c: added a language property to GimpText
	which defaults to the language derived from the users locale. Set
	the language on the PangoContext.
2003-02-24 18:54:24 +00:00
Pablo Gonzalo del Campo f12dd3f1a6 Updated Spanish translation.
2003-02-24  Pablo Gonzalo del Campo <pablodc@bigfoot.com>

	* es.po: Updated Spanish translation.
2003-02-24 18:36:02 +00:00
Sven Neumann eb437b38d1 added parentheses to please the compiler and to make the code more
2003-02-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/mblur.c: added parentheses to please the
	compiler and to make the code more legible.
2003-02-24 13:31:15 +00:00
Michael Natterer 034d9d3e49 fixed strstr() call so we can switch back from tree views again.
2003-02-24  Michael Natterer  <mitch@gimp.org>

	* app/gui/dialogs-commands.c (dialogs_toggle_view_cmd_callback):
	fixed strstr() call so we can switch back from tree views again.
2003-02-24 12:40:55 +00:00
Michael Natterer 0bd9abbf23 removed gimp_displays_invalidate() again.
2003-02-24  Michael Natterer  <mitch@convergence.de>

	* app/display/gimpdisplay-foreach.[ch]: removed
	gimp_displays_invalidate() again.

	* app/display/gimpdisplayshell-render.c: don't call it.

	* app/display/gimpdisplayshell-handlers.c
	(gimp_display_shell_check_notify_handler): put the call to
	gimp_display_shell_expose_full() back I "optimized" away a few
	days ago.
2003-02-24 12:30:33 +00:00
Evandro Fernandes Giovanini 9f3aa7adf9 Updated Brazilian Portuguese translation from Alexandre Folle de Menezes
2003-02-24  Evandro Fernandes Giovanini <evandrofg@ig.com.br>

        * pt_BR.po: Updated Brazilian Portuguese translation from
        Alexandre Folle de Menezes <afmenez@terra.com.br>.
2003-02-24 11:37:07 +00:00
Sven Neumann a5cafbd29a fixed issues with preview drawing caused by my latest change 2003-02-24 09:41:32 +00:00
Sven Neumann 28b316ec03 some code cleanup, fixed preview drawing, use GimpColorButtons and stock
2003-02-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/spheredesigner.c: some code cleanup, fixed
	preview drawing, use GimpColorButtons and stock icons.
2003-02-23 23:10:36 +00:00
Sven Neumann 51463faa3b updated NEWS 2003-02-23 16:38:31 +00:00
Sven Neumann 7f5054b12f Makefile.am removed this file.
2003-02-23  Sven Neumann  <sven@gimp.org>

	* Makefile.am
	* README.perl: removed this file.

	* INSTALL
	* README
	* README.i18n
	* gimp.spec.in: removed traces of gimp-perl and added some
	pointers to the new CVS module.
2003-02-23 16:29:30 +00:00
Sven Neumann 4b42b55bf4 set the correct default value for the palette type menu (fixes bug
2003-02-23  Sven Neumann  <sven@gimp.org>

	* app/gui/convert-dialog.c (convert_to_indexed): set the correct
	default value for the palette type menu (fixes bug #106798).
2003-02-23 16:06:21 +00:00
Sven Neumann c908afe63a documented gimp_rc_save().
2003-02-22  Sven Neumann  <sven@gimp.org>

	* app/config/gimprc.c: documented gimp_rc_save().

2003-02-22  Sven Neumann  <sven@gimp.org>

	* libgimp/libgimp-docs.sgml: added some introductory words.
2003-02-22 21:29:12 +00:00
Dave Neary eef63583f7 Fixed bug #105360. Previously, alpha was taking up an index entry even if
2003-02-22  Dave Neary  <bolsh@gimp.org>

        * plug-ins/common/png.c: Fixed bug #105360. Previously,
        alpha was taking up an index entry even if there were
        no transparent entries. Sorry about that :)
2003-02-22 14:20:53 +00:00
Yuri Syrota d9c37118d8 Updated Ukrainian translation 2003-02-22 14:19:33 +00:00
Evandro Fernandes Giovanini 91d9ceaa5c Updated Brazilian Portuguese translation from Alexandre Folle de Menezes
2003-02-22  Evandro Fernandes Giovanini <evandrofg@ig.com.br>

        * pt_BR.po: Updated Brazilian Portuguese translation from
        Alexandre Folle de Menezes <afmenez@terra.com.br>.
2003-02-22 10:56:00 +00:00
Manish Singh 2881ffa760 oops, put back in perl binary location stuff for pdbgen.
2003-02-21  Manish Singh  <yosh@gimp.org>

        * configure.in: oops, put back in perl binary location stuff for
        pdbgen.
2003-02-22 02:07:53 +00:00
Manish Singh 6eb06718f6 Makefile.am perl remnants here too
2003-02-21  Manish Singh  <yosh@gimp.org>

        * Makefile.am
        * plug-ins/Makefile.am: perl remnants here too
2003-02-22 02:00:27 +00:00
Manish Singh 165ca7bd5c remove perl stuff
2003-02-21  Manish Singh  <yosh@gimp.org>

        * configure.in: remove perl stuff

        The actual code has been removed from CVS as well, and moved to the
        gimp-perl module.
2003-02-22 01:55:34 +00:00
Manish Singh 393fe155b9 app/gui/about-dialog.c app/widgets/gimpimagefilepreview.c use
2003-02-21  Manish Singh  <yosh@gimp.org>

        * app/gui/about-dialog.c
        * app/widgets/gimpimagefilepreview.c
        * app/widgets/gimptoolbox-color-area.c: use gdk_draw_pixbuf with
        GTK+ 2.2 or higher instead of gdk_pixbuf_render_to_drawable.
        That function will be deprecated in GTK+ 2.4. We should remove the
        fallback at some point when we start depending on GTK+ 2.2 for other
        stuff.
2003-02-22 01:33:42 +00:00
Chyla Zbigniew 38e53219d7 Updated Polish translation by GNOME PL Team <translators@gnome.pl> 2003-02-21 22:25:02 +00:00
Sven Neumann 9c957fa1d5 added new function gimp_displays_invalidate() which queues a redraw on all
2003-02-21  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplay-foreach.[ch]: added new function
	gimp_displays_invalidate() which queues a redraw on all displays
	by calling gimp_display_shell_expose_full().

	* app/display/gimpdisplayshell-render.c (render_setup_notify):
	invalidate all displays when the transparency type or size changes.

	* app/tools/gimptexttool.c (text_tool_button_press): readded some
	code I accidentally removed in my last commit.

	* app/text/gimptextlayout.c (gimp_text_layout_new): always set the
	font size but make sure it is at least 1.
2003-02-21 21:39:42 +00:00
Sven Neumann bee928ebce added missing cast.
2003-02-21  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpviewabledialog.c: added missing cast.

	* app/widgets/gimpcontainertreeview.c: do not include a non-existant
	header file.
2003-02-21 20:19:19 +00:00
Michael Natterer 9ee632a656 Started migration from GtkList to GtkTreeView:
2003-02-21  Michael Natterer  <mitch@gimp.org>

	Started migration from GtkList to GtkTreeView:

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimpcontainertreeview.[ch]; new GimpContainerView
	subclass using GtkListStore/GtkTreeView.

	* app/widgets/widgets-enums.h: added GIMP_VIEW_TYPE_TREE to
	thje GimpViewType enum.

	* app/widgets/gimpcontainereditor.c: added GimpContainerTreeView
	to the switch() which selects the view type.

	* app/gui/dialogs-commands.c
	* app/gui/dialogs-constructors.[ch]
	* app/gui/dialogs-menu.c
	* app/gui/dialogs.c: added tree view versions of many dialogs.

	* app/widgets/gimppreview.[ch]: removed the get_size() virtual
	function and gimp_preview_calc_size().

	* app/core/gimpviewable.[ch]: added virtual function
	get_preview_size() and gimp_viewable_calc_preview_size().

	* app/core/gimpbuffer.c
	* app/core/gimpdrawable-preview.[ch]
	* app/core/gimpdrawable.c
	* app/core/gimpgradient.c
	* app/core/gimpimage.c
	* app/core/gimppalette.c: added get_preview_size() implementations.

	* app/widgets/gimpbufferpreview.c
	* app/widgets/gimpdrawablepreview.c
	* app/widgets/gimpgradientpreview.c
	* app/widgets/gimpimagepreview.c
	* app/widgets/gimppalettepreview.c
	* app/widgets/gimpselectioneditor.c
	* app/widgets/gimpundopreview.c
	* app/display/gimpnavigationview.c: changed accordingly, removed
	get_size() implementations.

	* app/widgets/widgets-types.h: changed the first param of
	GimpItemGetNameFunc from GtkWidget to GObject.

	* app/widgets/gimpcontainerview-utils.c: accept a GimpViewable as
	object in the built-in get_name funcs.

	* app/widgets/gimpcomponentlistitem.c
	* app/widgets/gimpcontainergridview.c
	* app/widgets/gimplistitem.c
	* app/widgets/gimpmenuitem.c: changed accordingly.
2003-02-21 19:03:19 +00:00
Pablo Gonzalo del Campo 758635d7a4 Updated Spanish translation.
2003-02-21  Pablo Gonzalo del Campo  <pablodc@bigfoot.com>

	* es.po: Updated Spanish translation.
2003-02-21 16:08:05 +00:00
Pablo Gonzalo del Campo 38889d753f Updated Spanish translation.
2003-02-21  Pablo Gonzalo del Campo <pablodc@bigfoot.com>

	* es.po: Updated Spanish translation.
2003-02-21 16:07:50 +00:00
Sven Neumann 3d91e359b1 don't wait for graphics expose events. Commented out the call to
2003-02-21  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-scroll.c (gimp_display_shell_scroll):
	don't wait for graphics expose events. Commented out the call to
	gimp_display_shell_scale_setup() since it should not be needed.
2003-02-21 13:07:15 +00:00
Sven Neumann 1b0339ad34 replaced a for-loop with a call to memcpy().
2003-02-21  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-render.c (render_image_rgb):
	replaced a for-loop with a call to memcpy().

	* app/display/gimpdisplay.c: use g_memdup() instead of g_new()
	followed by memcpy().
2003-02-21 12:48:13 +00:00
Michael Natterer 361c288c93 the default value of "clip" is FALSE, not TRUE. Fixes bug #106644.
2003-02-21  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimptransformoptions.c
	(gimp_transform_options_class_init): the default value of "clip"
	is FALSE, not TRUE. Fixes bug #106644.
2003-02-21 12:24:34 +00:00
Michael Natterer 5f5e0bf5d6 Refactored the GimpDisplayShell update/draw code:
2003-02-21  Michael Natterer  <mitch@gimp.org>

	Refactored the GimpDisplayShell update/draw code:

	* app/display/gimpdisplayshell.[ch]: removed the display_areas
	list which used to hold the GimpAreas to update. Instead, simply
	queue draws using gtk_widget_queue_draw[_area]() in
	gimp_display_shell_expose_area(), _expose_full() and
	_expose_guide(). Made all _draw() functions public because they
	are now called from the "expose_event" handler.  Removed rendering
	from gimp_display_shell_flush() because stuff is now flushed
	automatically by the gtk idle renderer.

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_expose): draw everything here (the code
	removed from gimp_display_shell_flush() without the GimpArea list).
	(gimp_display_shell_canvas_tool_events): return "return_val", not
	TRUE if gimp->busy is TRUE. Fixes unupdated (windowk bg color)
	display areas. Fixes bug #106595.

	* app/display/gimpdisplay.c
	* app/display/gimpdisplayshell-cursor.c
	* app/display/gimpdisplayshell-filter-dialog.c
	* app/display/gimpdisplayshell-handlers.c
	* app/display/gimpdisplayshell-selection.c
	* app/gui/view-commands.c: changed accordingly. Removed calls to
	gimp_display_shell_flush() all over the place.

	* app/display/gimpdisplayshell-scroll.c: replaced lots of code by
	a single call to gdk_window_scroll().
2003-02-21 12:16:43 +00:00
Sven Neumann 99d52e7684 fixed URL of libart package, spotted by Michael J. Hammel.
2003-02-21  Sven Neumann  <sven@gimp.org>

	* INSTALL: fixed URL of libart package, spotted by Michael J. Hammel.
2003-02-21 11:43:33 +00:00
Sven Neumann a18fee2912 added a colspan parameter and fixed packing of the stock icon.
2003-02-21  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpwidgets-utils.[ch] (gimp_table_attach_stock):
	added a colspan parameter and fixed packing of the stock icon.

	* app/tools/gimpselectionoptions.c
	* app/tools/gimptextoptions.c: improved dialog layout.
2003-02-21 00:42:53 +00:00
Pablo Gonzalo del Campo 496aeb6d9d Fixed a couple of strings in Spanish translation.
2003-02-20  Pablo Gonzalo del Campo  <pablodc@bigfoot.com>

    * es.po: Fixed a couple of strings in Spanish translation.
2003-02-20 21:04:19 +00:00
Pablo Gonzalo del Campo 3d80b2cf24 Updated Spanish translation.
2003-02-20  Pablo Gonzalo del Campo  <pablodc@bigfoot.com>

	* es.po: Updated Spanish translation.
2003-02-20 21:03:56 +00:00
Sven Neumann 0f59cb4040 app/widgets/gimpfontselection-dialog.c connect the dialog to the font
2003-02-20  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpfontselection-dialog.c
	* app/widgets/gimpfontselection.c: connect the dialog to the font
	selection widget and block the signal handler when the font is
	changed from the dialog. Fixes weird behaviour noted by Jimmac.
2003-02-20 17:56:18 +00:00
Sven Neumann e105077033 always start with an empty text.
2003-02-20  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptexttool.c: always start with an empty text.
2003-02-20 17:05:10 +00:00
Sven Neumann df09eb68d3 trim the string only if necessary.
2003-02-20  Sven Neumann  <sven@gimp.org>

	* libgimpbase/gimputils.c (gimp_utf8_strtrim): trim the string
	only if necessary.

	* app/text/gimptext.c: changed the default text to NULL.

	* app/widgets/gimptexteditor.[ch]: replaced Cancel and OK buttons
	with a single Close button and removed the callback.

	* app/widgets/gimppropwidgets.c: gtk_text_buffer_set_text()
	doesn't like NULL pointers, pass it an empty string instead.

	* app/tools/gimptexttool.c: create a new text layer as soon as the
	user starts editing.
2003-02-20 16:11:23 +00:00
Michael Natterer 94bdcbcc01 app/widgets/Makefile.am app/widgets/widgets-types.h new GimpEditor
2003-02-20  Michael Natterer  <mitch@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimpimageeditor.[ch]: new GimpEditor subclass adding
	a GimpImage pointer and a virtual set_image() function.

	* app/widgets/gimpcolormapeditor.[ch]
	* app/widgets/gimpselectioneditor.[ch]
	* app/widgets/gimpundoeditor.[ch]: derive them from GimpImageEditor.
	Removed the public set_image() functions.

	* app/gui/colormap-editor-commands.c
	* app/gui/colormap-editor-menu.c: changed accordingly.

	* app/gui/dialogs-constructors.c: removed lots of code duplication
	and use the uniform GimpImageEditor API. Misc cleanups.
2003-02-20 15:40:15 +00:00