1. 11 Mar, 2003 5 commits
    • Michael Natterer's avatar
      app/display/Makefile.am new files implementing canvas padding, fullscreen · b36590e6
      Michael Natterer authored
      2003-03-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/Makefile.am
      	* app/display/gimpdisplayshell-appearance.[ch]: new files
      	implementing canvas padding, fullscreen toggling and utility
      	functions to show/hide GimpDisplayShell components (menubar,
      	statusbar, ...) Added the possibility to show/hide the scrollbars.
      
      	* app/display/gimpdisplayshell.[ch]: added struct
      	GimpDisplayShellVisibility which stores the GUI components'
      	visibility. Added two such structs to the GimpDisplayShell struct:
      	one for normal mode and one for fullscreen mode. Default to
      	"everything invisible" for fullscreen.  Fixes bug #74383.
      
      	* app/display/gimpdisplayshell-callbacks.c: fiddle with the
      	two visibility structs when toggling fullscreen.
      
      	* app/display/gimpdisplayshell-handlers.c: #include
      	"gimpdisplayshell-appearance.h"
      
      	* app/gui/image-menu.c
      	* app/gui/view-commands.[ch]: added a "Show Scrollbars" menu entry,
      	use the new widget show/hide utility functions.
      b36590e6
    • Sven Neumann's avatar
      made gimp_image_get_active_components() a static function and changed its · c65a2dd1
      Sven Neumann authored
      2003-03-11  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimage.[ch]: made gimp_image_get_active_components()
      	a static function and changed its behaviour so that the image's
      	active components are only used for layers, not for channels.
      	Fixes bug #108083.
      c65a2dd1
    • Sven Neumann's avatar
      improved error handling. · a87da0ea
      Sven Neumann authored
      2003-03-11  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/session.c (session_info_deserialize): improved error
      	handling.
      a87da0ea
    • Sven Neumann's avatar
      app/display/gimpdisplayshell-callbacks.c app/display/gimpdisplayshell.[ch] · 2553b3ca
      Sven Neumann authored
      2003-03-11  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell.[ch]
      	* app/gui/image-menu.c
      	* app/gui/view-commands.c: rewrote the fullscreen mode
      	implementation so that it doesn't loop infinitely.
      2553b3ca
    • Sven Neumann's avatar
      app/display/gimpdisplayshell-callbacks.c app/display/gimpdisplayshell.[ch] · 632b7f8a
      Sven Neumann authored
      2003-03-11  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell.[ch]
      	* app/gui/image-menu.c
      	* app/gui/view-commands.[ch]: added a fullscreen mode for the
      	image display by means of gtk_window_fullscreen/unfullscreen.
      	Depends on the window manager implementing _NET_WM_STATE_FULLSCREEN.
      
      	* app/tools/gimpcroptool.c: made gimp_crop_tool_draw() static.
      
      	* app/tools/gimptexttool.[ch]: derive from GimpDrawTool, no real
      	changes yet.
      632b7f8a
  2. 10 Mar, 2003 5 commits
    • Sven Neumann's avatar
      removed gimp_scanner_parse_string_list() since the format it read wasn't · 3ab2e648
      Sven Neumann authored
      2003-03-10  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpscanner.[ch]: removed gimp_scanner_parse_string_list()
      	since the format it read wasn't proper s-expressions syntax.
      
      	* app/config/gimpconfigwriter.c: a couple of minor cleanups.
      
      	* app/gui/color-history.[ch]
      	* app/gui/session.c
      	* app/widgets/gimpdialogfactory.[ch]: use GimpConfigWriter to
      	write the sessionrc. Had to do some minor changes to the file
      	format.
      3ab2e648
    • Michael Natterer's avatar
      added GimpData::duplicate() implementation so read-only palettes can be · a00a565c
      Michael Natterer authored
      2003-03-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimppalette.[ch]: added GimpData::duplicate()
      	implementation so read-only palettes can be edited again by
      	duplicating them first.
      
      	* app/gui/dialogs-constructors.c: pass the <Palettes>, not the
      	<Gradients> menu identifier to the palette grid and tree view
      	constructors (spotted by Tigert).
      a00a565c
    • Sven Neumann's avatar
      fixed creation of config file, added new function · 6f3f9556
      Sven Neumann authored
      2003-03-10  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfigwriter.[ch]: fixed creation of config file,
      	added new function gimp_config_writer_string() and improved
      	gimp_config_writer_linefeed().
      
      	* app/config/gimpconfig-serialize.c
      	* app/core/gimpcontext.c
      	* app/core/gimpdocumentlist.c: use gimp_config_writer_string()
      	instead of escaping the string manually.
      
      	* app/core/gimpunits.c (gimp_unitrc_save): use a GimpConfigWriter.
      
      	* app/plug-in/plug-in-rc.[ch] (plug_in_rc_write)
      	* app/plug-in/plug-ins.c: use a GimpConfigWriter.
      6f3f9556
    • Michael Natterer's avatar
      added "gboolean data_editable" which gets set in · 1522b841
      Michael Natterer authored
      2003-03-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdataeditor.[ch]: added "gboolean data_editable"
      	which gets set in gimp_data_editor_real_set_data(). Set the name
      	entry insensitive if the data is not editable.
      
      	* app/widgets/gimpbrusheditor.c
      	* app/widgets/gimppaletteeditor.c
      	* app/widgets/gimpgradienteditor.c: look at editor->data_editable
      	instead of duplicating the logic in all subclasses.
      
      	* app/widgets/gimppreview.[ch]: added "gboolean expand" and
      	gimp_preview_set_expand() like in GtkPreview bacause smooth auto
      	resizing can only be done by the widget itself, not via external
      	callbacks.
      
      	* app/display/gimpnavigationview.c
      	* app/widgets/gimpbrusheditor.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimpselectioneditor.c: set expand == TRUE. Removed
      	"size_allocate" callbacks. They resize *much* smoother now.
      	Various cleanups.
      
      	* app/widgets/gimpnavigationpreview.c: recalculate the preview
      	coordinates when the size changes.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimppreviewrenderer-utils.c
      	* app/widgets/gimppreviewrenderergradient.[ch]: new renderer which
      	is much faster because it projects the gradient without creating
      	intermediate buffers. Rendering can be restricted to an interval
      	from [left...right].
      
      	* app/widgets/gimpgradienteditor.[ch]: undeprecated by using
      	GimpPreview instead of GtkPreview. Cleanup.
      
      	* app/gui/gradient-editor-commands.c: changed accordingly.
      1522b841
    • Sven Neumann's avatar
      app/tools/gimpbycolorselecttool.c app/tools/gimpcolorpickertool.c resolved · 3f588521
      Sven Neumann authored
      2003-03-10  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpconvolvetool.c: resolved conflicts in tool
      	keybindings (bug #107975).
      3f588521
  3. 09 Mar, 2003 1 commit
  4. 07 Mar, 2003 4 commits
    • Sven Neumann's avatar
      changed the hue_saturation() function as suggested by Martin Weber in bug · 65ee44c6
      Sven Neumann authored
      2003-03-07  Sven Neumann  <sven@gimp.org>
      
      	* app/base/hue-saturation.[ch]: changed the hue_saturation()
      	function as suggested by Martin Weber in bug #94067.  Changed the
      	function signature to use a typed instead of a void pointer.
      
      	* app/tools/gimphuesaturationtool.c (gimp_hue_saturation_tool_map):
      	cast the hue_saturation() function pointer to a GimpImageMapApplyFunc
      	here.
      65ee44c6
    • Sven Neumann's avatar
      allow to add guides with an offset of 0 (spotted by Paul Doidge, bug · 4f76aed6
      Sven Neumann authored
      2003-03-07  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/pdb/guides.pdb: allow to add guides with an offset
      	of 0 (spotted by Paul Doidge, bug #90629).
      
      	* app/pdb/guides_cmds.c: regenerated.
      4f76aed6
    • Michael Natterer's avatar
      need to update the scrollbars now that the call to · 35aa291d
      Michael Natterer authored
      2003-03-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell-scroll.c: need to update the
      	scrollbars now that the call to gimp_display_shell_scale_setup()
      	was commented out.  Removed the commented stuff and don't #include
      	"gimpdisplayshell-scale.h".  Resume the active tool *after*
      	calling gdk_window_process_updates() to skip more useless drawing
      	operations.
      35aa291d
    • Manish Sing's avatar
      fix find_next_guide to return 0 on the last guide as documented, instead · 5edae3e6
      Manish Sing authored
      2003-03-06  Manish Sing  <yosh@gimp.org>
      
              * tools/pdbgen/pdb/guides.pdb: fix find_next_guide to return 0 on
              the last guide as documented, instead of failing.
      
              * app/pdb/guides_cmds.c: regenerated
      5edae3e6
  5. 06 Mar, 2003 2 commits
    • Michael Natterer's avatar
      themes/Default/images/stock-delete-16.png · 3c33140f
      Michael Natterer authored
      2003-03-06  Michael Natterer  <mitch@gimp.org>
      
      	* themes/Default/images/stock-delete-16.png
      	* themes/Default/images/stock-lower-16.png
      	* themes/Default/images/stock-new-16.png
      	* themes/Default/images/stock-paste-16.png
      	* themes/Default/images/stock-raise-16.png
      	* themes/Default/images/stock-refresh-16.png: removed these files
      	since we use the icons provided by GTK+ now.
      
      	* themes/Default/gtkrc
      	* themes/Default/images/Makefile.am: removed them here hoo.
      
      	* libgimpwidgets/gimpstock.[ch]: reordered stuff to be consistent
      	in the header and the .c file. Added GIMP_STOCK_ERROR and
      	GIMP_STOCK_QUESTION which are available in all sizes (unlike
      	GTK_STOCK_DIALOG_ERROR and GTK_STOCK_DIALOG_QUESTION).
      
      	* app/core/gimpviewable.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/widgets/gimpwidgets-utils.c
      	* app/widgets/gimpdatafactoryview.c: use the new stock IDs.
      
      	* app/config/gimpcoreconfig.[ch]: renamed "preview_size" to
      	"layer_preview_size" and added "gboolean layer_previews" which
      	switches layer previews on/off independent of their size.
      
      	* app/config/gimprc-blurbs.h: added/changed their blurbs.
      
      	* app/core/core-enums.[ch]: removed GIMP_PREVIEW_SIZE_NONE.
      
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpimage.c: return NULL previews if
      	core_config->layer_previews is FALSE. Invalidate all layer/channel
      	previews whenever "layer_previews" changes.
      
      	* app/widgets/gimppreviewrendererdrawable.c
      	* app/widgets/gimppreviewrendererimage.c: render the stock_id
      	if the drawable/image returns a NULL preview. Fixes bug #107242.
      
      	* app/display/gimpdisplayshell-handlers.c: don't set the
      	sensitivity of the navigation button because it can no longer be
      	disabled.
      
      	* app/display/gimpdisplayshell-layer-select.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/dialogs.c
      	* app/gui/paths-dialog.c: changed accordingly.
      
      	* app/gui/preferences-dialog.c: added a toggle button for the new
      	"layer_previews" boolean.
      
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainerlistview.c: chain up unconditionally
      	in GimpContainerView::clear_items().
      
      	* app/widgets/gimpcontainertreeview.c: ditto. Made the reorder()
      	implementation lengthy and eeky (but working) again... Stop signal
      	emission on double clicks so GtkTreeView doesn't re-select the
      	item we are about change.
      
      	* app/widgets/gimpcontainerview.c
      	(gimp_container_view_real_clear_items): need to use
      	g_hash_table_new_full() here too or everything will b0rk.
      
      	* app/widgets/gimppreviewrenderer.c
      	(gimp_preview_renderer_default_render_stock): use
      	gtk_widget_render_icon() instead of gtk_icon_set_render_icon().
      
      	* tools/pdbgen/enums.pl: this file wanted to be regenerated...
      3c33140f
    • Sven Neumann's avatar
      fixed parasite serialization that I broke yesterday. · 5e11bae6
      Sven Neumann authored
      2003-03-06  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpparasitelist.c: fixed parasite serialization that
      	I broke yesterday.
      
      	* app/widgets/gimpenummenu.c: added support for mnemonics.
      
      	* app/core/core-enums.h: removed the inverted variants from the
      	GimpAddMaskType enum. Registered the enum with the type system.
      
      	* app/core/gimplayer.c: changed accordingly.
      
      	* app/gui/layers-commands.c (layers_add_mask_query): use an enum
      	frame and added a check button that allows to invert the inital
      	layer mask.
      
      	* tools/pdbgen/pdb/layer.pdb: updated documentation for the
      	gimp-layer-create-mask PDB function.
      
      	* plug-ins/script-fu/siod-wrapper.c: removed new enum values from
      	the compatibility defines.
      
      	* app/core/core-enums.c
      	* app/pdb/layer_cmds.c
      	* libgimp/gimpenums.h
      	* libgimp/gimplayer_pdb.c
      	* plug-ins/pygimp/gimpenums.py
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      5e11bae6
  6. 05 Mar, 2003 5 commits
    • Manish Singh's avatar
      require GTK+ 2.2. The 2.0.x series is no longer maintained, and there are · d395daa7
      Manish Singh authored
      2003-03-05  Manish Singh  <yosh@gimp.org>
      
              * configure.in: require GTK+ 2.2. The 2.0.x series is no longer
              maintained, and there are some very real bugs that won't go away.
      
              * app/gui/about-dialog.c
              * app/widgets/gimppreviewrenderer.c
              * app/widgets/gimptoolbox-color-area.c
              * plug-ins/common/uniteditor.c: remove special casing for GTK+ 2.0
              vs. 2.2
      
              * app/widgets/gtkwrapbox.[ch]
              * app/widgets/gtkhwrapbox.[ch]
              * app/widgets/gtkvwrapbox.[ch]: remove deprecated functions
      
              * app/gui/gui.c: free return value of gdk_get_display ()
      
              * app/widgets/gimpcontainertreeview.c: use gtk_list_store_move_before ()        for reordering.
      d395daa7
    • Sven Neumann's avatar
      app/config/Makefile.am new files featuring a simple config file writer. · d457b9eb
      Sven Neumann authored
      2003-03-05  Sven Neumann  <sven@gimp.org>
      
      	* app/config/Makefile.am
      	* app/config/gimpconfigwriter.[ch]: new files featuring a simple
      	config file writer.
      
      	* app/config/gimpconfig-serialize.[ch]
      	* app/config/gimpconfig.[ch]: changed the serialize routines to
      	use a GimpConfigWriter instead of passing around a file descriptor
      	and the indentation level.
      
      	* app/config/config-types.h
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-dump.c
      	* app/config/gimpconfig-utils.c
      	* app/config/gimprc.c
      	* app/config/gimpscanner.c
      	* app/config/test-config.c
      	* app/core/gimp-documents.c
      	* app/core/gimp-parasites.c
      	* app/core/gimpcontainer.c
      	* app/core/gimpcontext.c
      	* app/core/gimpdocumentlist.c
      	* app/core/gimpparasitelist.c
      	* app/gui/test-commands.c
      	* app/tools/tool_options.c
      	* app/widgets/gimpdevices.c: changed accordingly.
      
      	* libgimpwidgets/gimpwidgets.c: documentation updates.
      
      	* app/core/gimpitem.c: removed a redundant type-check.
      d457b9eb
    • Michael Natterer's avatar
      themes/Default/images/stock-channels-16.png · 614ff006
      Michael Natterer authored
      2003-03-05  Michael Natterer  <mitch@gimp.org>
      
      	* themes/Default/images/stock-channels-16.png
      	* themes/Default/images/stock-device-status-16.png
      	* themes/Default/images/stock-images-16.png
      	* themes/Default/images/stock-layers-16.png
      	* themes/Default/images/stock-paths-16.png: new icons from Jimmac.
      
      	* themes/Default/imagerc
      	* themes/Default/images/Makefile.am
      	* libgimpwidgets/gimpstock.[ch]: add them to the stock system.
      
      	* app/gui/dialogs-menu.c
      	* app/gui/image-menu.c
      	* app/gui/toolbox-menu.c: use them.
      614ff006
    • Michael Natterer's avatar
      undeprecated and simplified a lot by using GimpPreview instead of handmade · c5603d81
      Michael Natterer authored
      2003-03-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpbrusheditor.[ch]: undeprecated and simplified a
      	lot by using GimpPreview instead of handmade preview stuff.
      c5603d81
    • Michael Natterer's avatar
      added GError reporting, removed g_message() stuff. · d404068c
      Michael Natterer authored
      2003-03-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/file/file-save.[ch]: added GError reporting, removed
      	g_message() stuff.
      
      	* app/gui/file-commands.c
      	* app/gui/file-save-dialog.c: g_message() here if file_save_*()
      	returns an error.
      
      	* app/file/file-open.c: use the G_FILE_ERROR quark and the
      	GFileError enum for reporting errors. Removed g_message() if the
      	passed in GError** pointer is NULL (passing NULL as error return
      	location should never mean "show the error message yourself").
      
      	* app/app_procs.c
      	* app/gui/file-commands.c
      	* app/gui/file-open-dialog.c
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimpdocumentview.c: g_message() here if file_open_*()
      	returns an error.
      d404068c
  7. 04 Mar, 2003 4 commits
    • Sven Neumann's avatar
      plug-ins/common/compose.c plug-ins/common/decompose.c plug-ins/fp/fp.c · 2935a320
      Sven Neumann authored
      2003-03-05  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/common/compose.c
      	* plug-ins/common/decompose.c
      	* plug-ins/fp/fp.c
      	* plug-ins/rcm/rcm.c: moved these plug-ins to the Filters menu
      	(fixes bug #107587).
      
      	* app/gui/image-menu.c (image_menu_entries): removed a menu
      	separator which is not needed any longer.
      2935a320
    • Sven Neumann's avatar
      Based on suggestions by Michael J. Hammel <mjhammel@graphics-muse.org>: · a7dabdf0
      Sven Neumann authored
      2003-03-04  Sven Neumann  <sven@gimp.org>
      
              Based on suggestions by Michael J. Hammel <mjhammel@graphics-muse.org>:
      
      	* app/gui/preferences-dialog.c: use US english spelling, fixed a
      	typo.
      
      	* app/config/gimprc-blurbs.h: rephrased some blurbs so they fit
      	better as tooltips.
      a7dabdf0
    • Sven Neumann's avatar
      set the active color from GimpColormapEditor::selected so you can pick · 02427845
      Sven Neumann authored
      2003-03-04  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpcolormapeditor.[ch]: set the active color from
      	GimpColormapEditor::selected so you can pick colors from an
      	indexed palette again.
      02427845
    • Michael Natterer's avatar
      added new function file_save_as() which always uses the uri and file_proc · a53f1ba4
      Michael Natterer authored
      2003-03-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/file/file-save.[ch]: added new function file_save_as() which
      	always uses the uri and file_proc parameters passed and never
      	looks at the image's uri and file_proc. Renamed "gboolean set_uri"
      	to "set_uri_and_proc" and always set them both if the save
      	succeeded.  Fixes bug #97835.  Removed most parameters from
      	file_save() and made it a small wrapper around file_save_as().
      
      	* app/gui/file-commands.c (file_save_cmd_callback): changed
      	accordingly.
      
      	* app/gui/file-save-dialog.c: call file_save_as(), renamed
      	"set_uri" variables to "set_uri_and_proc".
      a53f1ba4
  8. 03 Mar, 2003 5 commits
    • Michael Natterer's avatar
      app/paint/gimppaintcore-stroke.c s/paint_options != · c860d805
      Michael Natterer authored
      2003-03-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintcore-stroke.c
      	* app/paint/gimppaintcore.c:
      	s/paint_options != NULL/GIMP_IS_PAINT_OPTIONS (paint_options)/g
      c860d805
    • Hans Breuer's avatar
      app/text/makefile.msc (new file) */makefile.msc */*/makefile.msc : updated · 594bccd5
      Hans Breuer authored
      2003-03-03  Hans Breuer  <hans@breuer.org>
      
      	* app/text/makefile.msc (new file)
      	  */makefile.msc */*/makefile.msc : updated
      
      	* app/core/gimpdata.c : define access() constants
      	for G_OS_WIN32 case
      
      	* app/text/gimptext.c : <stdlib.h> for getenv()
      
      	* libgimp/gimp.def libgimp/gimpui.def : updated externals
      
      	* libgimpwidgets/libgimp-glue.c : make dynamic_resolve
      	actually work again for 'my' DLL naming convention
      
      	* plug-ins/gap/gap_pdb_calls.c : reflect renaming
      	of GIMP_VERTICAL to GIMP_ORIENTATION_VERTICAL
      594bccd5
    • Michael Natterer's avatar
      made the default buffer and stock rendering functions public so derived · 6bfa4f54
      Michael Natterer authored
      2003-03-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimppreviewrenderer.[ch]: made the default buffer
      	and stock rendering functions public so derived renderers
      	can use them. Renamed gimp_preview_renderer_render_preview()
      	to gimp_preview_renderer_render_buffer().
      
      	* app/widgets/gimppreviewrendererbrush.c
      	* app/widgets/gimppreviewrendererdrawable.c
      	* app/widgets/gimppreviewrendererimage.c: changed accordingly.
      
      	* app/widgets/gimppreviewrenderertextlayer.[ch]: new renderer
      	for text layers which always renders the stock icon.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimppreviewrenderer-utils.c: changed accordingly.
      6bfa4f54
    • Michael Natterer's avatar
      removed the constructors with a GimpViewable parameter and always create · b31fd4b9
      Michael Natterer authored
      2003-03-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimppreviewrenderer.[ch]: removed the constructors
      	with a GimpViewable parameter and always create renderers from
      	viewable types only. Made gimp_preview_renderer_update() emit only
      	the "update" signal and added the new function
      	gimp_preview_renderer_invalidate() which does what the old
      	_update() did (invalidating and adding an idle function which
      	emits "update"). Added gimp_preview_renderer_remove_idle() so
      	renderer updating can be fully controlled using public functions.
      
      	* app/widgets/gimppreviewrendererbrush.[ch]: no need to remember
      	the widget for the brushpipe animation, simply call
      	gimp_preview_renderer_update() in the animation timeout.
      
      	* app/widgets/gimppreview.[ch]
      	* app/widgets/gimpcontainertreeview.c: changed accordingly. Call
      	gimp_preview_renderer_remove_idle() after setting the initial
      	viewable because we will be updated anyway by the first expose.
      
      	* app/widgets/gimppreview.[ch]: Added a size_request()
      	implementation. Removed gimp_preview_update(). Added new
      	constructor gimp_preview_new_full_by_types() to make the
      	constructor API symmetric. Removed code duplication by calling the
      	_by_types() constructors from the ones taking GimpViewable
      	parameters.
      
      	* app/gui/palette-import-dialog.c
      	* app/widgets/gimppropwidgets.c
      	* app/widgets/gimpselectioneditor.c: changed accordingly.
      b31fd4b9
    • Michael Natterer's avatar
      don't try to convert a grayscale layer to grayscale. Fixes bug #107422. · 5b656067
      Michael Natterer authored
      2003-03-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimplayer.c (gimp_layer_create_mask): don't try to
      	convert a grayscale layer to grayscale. Fixes bug #107422.
      5b656067
  9. 02 Mar, 2003 1 commit
  10. 01 Mar, 2003 3 commits
    • Michael Natterer's avatar
      added "gint bytes" to the GimpPreviewRenderer struct and pass it to · 251f6b04
      Michael Natterer authored
      2003-03-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimppreviewrenderer.[ch]: added "gint bytes" to the
      	GimpPreviewRenderer struct and pass it to
      	gimp_preview_render_to_buffer().
      
      	* app/widgets/gimppreviewrendererbrush.[ch]: render the indicators
      	to the renderer's buffer, not to the TempBuf so they always appear
      	in the corner again.
      
      	Misc cleanups:
      
      	* app/core/gimpbuffer.c (gimp_buffer_get_new_preview)
      	* app/core/gimppattern.c (gimp_pattern_get_new_preview): no need
      	to center the TempBuf if smaller than requested because
      	GimpPreviewRenderer::render()'s default implementation adjusts the
      	offsets itself.
      
      	* app/widgets/gimppreview.c (gimp_preview_set_viewable): no need
      	to update ourselves after we changed the renderer because the
      	renderer's signal will update us.
      
      	* app/widgets/gimppreviewrenderer.c (gimp_preview_renderer_draw):
      	replaced my stupid buf_rect calculation overkill by something
      	simple that does the same.
      251f6b04
    • Michael Natterer's avatar
      don't scale the preview up if the buffer is too small. · 48bf4fb7
      Michael Natterer authored
      2003-03-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpbuffer.c: don't scale the preview up if the
      	buffer is too small.
      
      	* app/core/gimppattern.c: don't add a white border around the
      	preview if the pattern is too small.
      
      	* app/widgets/gimppreviewrenderer.[ch]: new object. A buffer
      	that updates itself on GimpViewable changes and can render
      	itself to any widget. Basically GimpPreview reduced to the
      	render and draw code.
      
      	* app/widgets/gimppreview.[ch]: removed all rendering and drawing
      	code and keep a GimpPreviewRenderer instance. Connect to its
      	"update" signal for queuing draws on the preview.
      
      	* app/widgets/gimpcellrendererviewable.[ch]
      	* app/widgets/gimpcontainertreeview.c: same here: removed
      	rendering and drawing code and keep GimpPreviewRenderers in the
      	list store.  Delays preview creation for GtkTreeViews until the
      	buffer is really needed for drawing and adds idle preview updating
      	on viewable changes.
      
      	* app/widgets/gimppreview-utils.[ch]
      	* app/widgets/gimpbrushpreview.[ch]
      	* app/widgets/gimpbufferpreview.[ch]
      	* app/widgets/gimpdrawablepreview.[ch]
      	* app/widgets/gimpimagepreview.[ch]: removed...
      
      	* app/widgets/gimppreviewrenderer-utils.[ch]
      	* app/widgets/gimppreviewrendererbrush.[ch]
      	* app/widgets/gimppreviewrendererdrawable.[ch]
      	* app/widgets/gimppreviewrendererimage.[ch]: ...and converted to
      	GimpPreviewRenderer subclasses.
      
      	* app/display/gimpnavigationview.c
      	* app/gui/palette-import-dialog.c
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-enums.h
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpcomponentlistitem.c
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainermenuimpl.c
      	* app/widgets/gimplayerlistitem.c
      	* app/widgets/gimplistitem.c
      	* app/widgets/gimpnavigationpreview.[ch]
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimpvectorslistview.c: changed accordingly.
      48bf4fb7
    • Michael Natterer's avatar
      removed useless includes. · 9525f64c
      Michael Natterer authored
      2003-03-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpblendtool.c: removed useless includes.
      9525f64c
  11. 28 Feb, 2003 5 commits
    • Sven Neumann's avatar
      oops. · d1c1a597
      Sven Neumann authored
      2003-02-28  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpcontext.c (gimp_context_class_init): oops.
      d1c1a597
    • Sven Neumann's avatar
      app/config/gimpconfig-deserialize.c transparently serialize and · f0509872
      Sven Neumann authored
      2003-02-28  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-serialize.[ch]: transparently serialize
      	and deserialize object properties that implement the
      	GimpConfigInterface.
      
      	* app/config/gimpconfig-utils.c (gimp_config_reset_properties):
      	call reset recursively if properties are itself objects that
      	implement the GimpConfigInterface.
      
      	* app/config/gimpconfig-dump.c: adapt to API changes.
      
      	* app/config/gimpconfig-params.h: made object properties installed
      	using GIMP_CONFIG_INSTALL_PROP_OBJECT() be not writable by default.
      
      	* app/core/gimpcontext.c (gimp_context_class_init): made objects
      	properties explicitely writeable.
      
      	* app/tools/gimptextoptions.c: made the GimpText object a property
      	of GimpTextOptions and removed lots of special handling which is
      	now transparently done by GimpConfigInterface.
      f0509872
    • Sven Neumann's avatar
      renamed gimp_config_serialize_changed_properties() to · 25c715c1
      Sven Neumann authored
      2003-02-28  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig-serialize.[ch]: renamed
      	gimp_config_serialize_changed_properties() to
      	gimp_config_serialize_properties_diff() and added a new function
      	gimp_config_serialize_changed_properties() that saves only
      	properties that have been changed from their default values.
      
      	* app/config/gimprc.c: follow the function name change.
      
      	* app/core/gimpcontext.c: override GimpConfigInterface::serialize
      	with gimp_config_serialize_changed_properties() so we store only
      	tool_options that have been changed from their default values.
      25c715c1
    • Sven Neumann's avatar
      simplified by using gimp_config_serialize_property() instead of doing it · 9519de07
      Sven Neumann authored
      2003-02-28  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig-serialize.c
      	(gimp_config_serialize_changed_properties): simplified by using
      	gimp_config_serialize_property() instead of doing it all by hand.
      9519de07
    • Manish Singh's avatar
      app/tools/gimpbucketfilltool.c app/tools/gimpconvolvetool.c · 5bc3a7a3
      Manish Singh authored
      2003-02-27  Manish Singh  <yosh@gimp.org>
      
              * app/tools/gimpbucketfilltool.c
              * app/tools/gimpconvolvetool.c
              * app/tools/gimpcroptool.c
              * app/tools/gimpdodgeburntool.c
              * app/tools/gimperasertool.c
              * app/tools/gimpfliptool.c
              * app/tools/gimpfuzzyselecttool.c
              * app/tools/gimpinkoptions.c
              * app/tools/gimpmagnifytool.c
              * app/tools/gimpmovetool.c
              * app/tools/gimprectselecttool.c
              * app/tools/gimpselectiontool.c
              * app/tools/gimptexttool.c
              * app/tools/gimptransformtool.c
              * app/widgets/gimpcellrendererviewable.c
              * app/widgets/gimpcontainertreeview.c: remove unecessary G_OBJECT()
              from g_object_set calls.
      
              * plug-ins/common/bumpmap.c: use g_signal_handlers_(un)block_by_func
              instead of gtk_signal_handler_(un)block_by_data.
      5bc3a7a3