1. 04 Apr, 2003 1 commit
    • Sven Neumann's avatar
      extended range of possible zoom ratios like in the other scaling routines. · 70094157
      Sven Neumann authored
      2003-04-04  Sven Neumann  <sven@gimp.org>
      	* app/display/gimpdisplayshell-scale.c
      	(gimp_display_shell_scale_fit): extended range of possible zoom
      	ratios like in the other scaling routines.
      	* app/display/gimpdisplayshell-scale.[ch]
      	* app/display/gimpdisplayshell.[ch]
      	* app/gui/image-menu.c
      	* app/gui/view-commands.[ch]: added a dialog to menually enter the
      	zoom ratio. Fixes bug #65057.
  2. 03 Apr, 2003 1 commit
    • Michael Natterer's avatar
      Added preliminary support for image templates. Not finished yet. Addresses · a018b06a
      Michael Natterer authored
      2003-04-03  Michael Natterer  <mitch@gimp.org>
      	Added preliminary support for image templates. Not finished
      	yet. Addresses bug #96059. Now we need a volunteer to create
      	a nice collection of default templates...
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimptemplate.[ch]
      	* app/core/gimp-templates.[ch]: new files implementing the new
      	GimpTemplate object and the list of available image templates.
      	* app/core/gimp.[ch]: keep a container of templates around.
      	* app/core/gimpimage-new.[ch]: ported to use GimpTemplate. Removed
      	struct GimpImageNewValues.
      	* app/widgets/gimpcontainermenuimpl.c: changed to show the
      	"(none)" item for a NULL selection also, not only for an empty
      	* app/widgets/gimppropwidgets.[ch]: added
      	gimp_prop_size_entry_connect() which connects an externally
      	created GimpSizeEntry to object properties. Fixed the size entry
      	code to actually work.
      	* app/gui/image-menu.c
      	* app/gui/file-commands.[ch]: added "Save as Template" which
      	creates a new template from any image's properties.
      	* app/gui/file-new-dialog.c: use prop_widgets and GimpTemplate.
      	Offer the available templates in a menu at the top of the dialog.
  3. 27 Mar, 2003 1 commit
    • Michael Natterer's avatar
      app/gui/channels-commands.c app/gui/file-new-dialog.c · 4305341d
      Michael Natterer authored
      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.
  4. 25 Mar, 2003 1 commit
    • Sven Neumann's avatar
      Makefile.am removed this header file. · 28fddfd5
      Sven Neumann authored
      2003-03-25  Sven Neumann  <sven@gimp.org>
      	* Makefile.am
      	* gimpintl.h: removed this header file.
      	* gimpmiscui.c: include libgimp-intl.h.
      	* gimp.c (gimp_main): call setlocale() and bind to the libgimp
      	textdomain so that plug-ins don't need to do that explicitely.
      	* libgimp/stdplugins-intl.h: added the functionality that used to
      	live in gimpintl.h and removed the libgimp related stuff. Got rid
      	of the INIT_I18N_UI() macro.
      	* plug-ins/*/*.c: removed all occurances of INIT_I18N_UI().
      	Plug-ins simply call INIT_I18N() once in their run() function.
      	* plug-ins/script-fu/script-fu-intl.h: added the functionality
      	that used to live in gimpintl.h and removed the libgimp related
      	* app/Makefile.am
      	* app/gimp-intl.h: new file that defines the gettext macros for
      	the GIMP core.
      	* app/*/*.c: include gimp-intl.h instead of libgimp/gimpintl.h.
      	* plug-ins/script-fu/scripts/test-sphere.scm: fixed typos.
  5. 22 Mar, 2003 1 commit
    • Sven Neumann's avatar
      always flush the image when applying or discarding a layer mask. The · b455d0c8
      Sven Neumann authored
      2003-03-22  Sven Neumann  <sven@gimp.org>
      	* app/gui/layers-commands.c: always flush the image when applying
      	or discarding a layer mask. The active drawable may change and
      	make a menu update necessary (fixes bug #108958).
      	* app/widgets/gimplayertreeview.c: call gimp_image_flush() when
      	switching between layer and mask editing so the menus get updated.
  6. 20 Mar, 2003 3 commits
    • Sven Neumann's avatar
      default the fill_type to GIMP_BACKGROUND_FILL (as in gimp_initialize()). · af066154
      Sven Neumann authored
      2003-03-20  Sven Neumann  <sven@gimp.org>
      	* app/core/gimpimage-new.c (gimp_image_new_values_new): default
      	the fill_type to GIMP_BACKGROUND_FILL (as in gimp_initialize()).
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c: made more dialogs transient for their
      	parent window.
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimpimageeditor.c
      	* app/widgets/gimpundoeditor.c: simplified a little bit.
    • Michael Natterer's avatar
      Removed deprecated and broken list views based on GtkList[Item] (fixes bug · c1dffc05
      Michael Natterer authored
      2003-03-20  Michael Natterer  <mitch@gimp.org>
      	Removed deprecated and broken list views
      	based on GtkList[Item] (fixes bug #90965):
      	* app/widgets/gimpchannellistitem.[ch]
      	* app/widgets/gimpchannellistview.[ch]
      	* app/widgets/gimpcontainerlistview.[ch]
      	* app/widgets/gimpdrawablelistitem.[ch]
      	* app/widgets/gimpdrawablelistview.[ch]
      	* app/widgets/gimpitemlistitem.[ch]
      	* app/widgets/gimpitemlistview.[ch]
      	* app/widgets/gimplayerlistitem.[ch]
      	* app/widgets/gimplayerlistview.[ch]
      	* app/widgets/gimplistitem.[ch]
      	* app/widgets/gimpvectorslistview.[ch]: removed.
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/widgets-enums.h
      	* app/widgets/gimpcontainereditor.c
      	* app/widgets/gimpcontainerview-utils.c
      	* app/widgets/gimpdatafactoryview.c
      	* app/gui/channels-commands.c
      	* app/gui/channels-menu.c
      	* app/gui/drawable-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/layers-menu.c
      	* app/gui/palettes-commands.c
      	* app/gui/test-commands.c
      	* app/gui/vectors-commands.c
      	* app/gui/vectors-menu.c: changed accordingly.
      	* app/gui/dialogs-commands.c
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs-menu.c
      	* app/gui/dialogs.c: removed the term "tree" from all user visible
      	places and create tree views when lists are requested.
      2003-03-20  Michael Natterer  <mitch@gimp.org>
      	* POTFILES.in: app/widgets/*list* -> *tree*
    • Michael Natterer's avatar
      removed gdisp->draw_guides and gdisp->snap_to_guides. · 906c5a9f
      Michael Natterer authored
      2003-03-20  Michael Natterer  <mitch@gimp.org>
      	* app/display/gimpdisplay.[ch]: removed gdisp->draw_guides
      	and gdisp->snap_to_guides.
      	* app/display/gimpdisplayshell.[ch]: added shell->snap_to_guides.
      	Added the state of guide, selection and active_layer visibility to
      	the GimpDisplayShellVisibility struct so they can be configured
      	separately for fullscreen mode. Update the popup_factory in
      	gimp_display_shell_real_scaled() only if this is the active
      	* app/display/gimpdisplayshell-appearance.[ch]: added accessors
      	for selection, active_layer and guide visibility.
      	* app/display/gimpdisplayshell-selection.[ch]: changed
      	accordingly.  Changed the selection and active_layer toggle
      	functions to *_set_hidden().
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/gui/image-menu.c
      	* app/gui/view-commands.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpmovetool.c: changed accordingly.
      	* app/gui/gui.c (gui_display_new): update the menubar_factory
      	*after* making the new display the active one.
  7. 18 Mar, 2003 2 commits
    • Michael Natterer's avatar
      app/core/gimpimage-mask.[ch] (gimp_image_mask_translate) added "gboolean · 1329e016
      Michael Natterer authored
      2003-03-18  Michael Natterer  <mitch@gimp.org>
      	* app/core/gimpimage-mask.[ch] (gimp_image_mask_translate)
      	* app/core/gimplayer.[ch] (gimp_layer_translate): added
      	"gboolean push_undo" parameters.
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-resize.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/layers-commands.c
      	* app/widgets/gimptoolbox.c
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      	* app/pdb/layer_cmds.c
      	* app/pdb/selection_cmds.c: regenerated.
      	* app/core/gimpimage-undo-push.c (undo_pop_layer_displace): call
      	gimp_layer_translate() with "push_undo == FALSE" instead of
      	duplicating gimp_layer_translate()'s code. Use GimpItemUndo for
      	* app/tools/gimpeditselectiontool.c
      	(gimp_edit_selection_tool_cursor_key): check if the top undo on
      	the stack is of exactly the same type as the undo we would push
      	and just don't push it then (compresses layer translate undos and
      	fixes bug #86362). Changed stuff work with CAPS_LOCK or other
      	modifiers pressed.
    • Michael Natterer's avatar
      Added an API for image colormap manupulation and made colormap changes · 94590602
      Michael Natterer authored
      2003-03-18  Michael Natterer  <mitch@gimp.org>
      	Added an API for image colormap manupulation and made colormap
      	changes undoable (fixes bug #25963).
      	* app/core/Makefile.am
      	* app/core/gimpimage-colormap.[ch]: new files implementing
      	colormap getters/setters. The setters push undos using the
      	new function below.
      	* app/core/core-enums.[ch]: added GIMP_UNDO_IMAGE_COLORMAP.
      	* app/core/gimpimage-undo-push.[ch]: added
      	gimp_image_undo_push_image_colormap(). Use GimpItemUndo even more
      	often. Cleanup.
      	* app/core/gimpimage.[ch]: removed gimp_image_get_colormap() here.
      	* app/core/gimpimage-convert.c
      	* app/gui/colormap-editor-commands.c
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimptoolbox.c
      	* tools/pdbgen/pdb/image.pdb: use the new API.
      	* app/pdb/image_cmds.c: regenerated.
      	* plug-ins/common/vinvert.c: removed the comment about the bug,
      	cosmetic cleanup.
      	* app/gui/splash.c: added a frame around the splas...
  8. 17 Mar, 2003 1 commit
    • Michael Natterer's avatar
      added GIMP_UNDO_CHANNEL_COLOR. · b417203a
      Michael Natterer authored
      2003-03-17  Michael Natterer  <mitch@gimp.org>
      	* app/core/core-enums.[ch]: added GIMP_UNDO_CHANNEL_COLOR.
      	* app/core/gimpchannel.[ch]: added "gboolean push_undo" to
      	* app/core/gimpimage-undo-push.[ch]: added
      	* app/core/gimpimage-qmask.c
      	* app/gui/qmask-commands.c
      	* app/widgets/gimpchannellistitem.c
      	* tools/pdbgen/pdb/channel.pdb: changed accordingly.
      	* app/gui/channels-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/vectors-commands.c: ditto. Use gimp_item_rename().
      	* app/pdb/channel_cmds.c: regenerated.
  9. 16 Mar, 2003 1 commit
    • Michael Natterer's avatar
      Added GtkTreeView versions of layers/channels/vectors: · 205cdf13
      Michael Natterer authored
      2003-03-16  Michael Natterer  <mitch@gimp.org>
      	Added GtkTreeView versions of layers/channels/vectors:
      	* app/core/core-enums.[ch]: renamed GIMP_UNDO_GROUP_LAYER_PROPERTIES
      	* app/core/gimpcontainer.c (gimp_container_reorder): don't try
      	to reorder containers with num_children == 1.
      	* app/core/gimpmarshal.list: added VOID: STRING, UINT marshaller.
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpchanneltreeview.[ch]
      	* app/widgets/gimpdrawabletreeview.[ch]
      	* app/widgets/gimpitemtreeview.[ch]
      	* app/widgets/gimplayertreeview.[ch]
      	* app/widgets/gimpvectorstreeview.[ch]: new widgets.
      	* app/widgets/gimpcellrenderertoggle.c: draw the frame only if the
      	cell is prelit.
      	* app/widgets/gimpcellrendererviewable.[ch]: added "clicked"
      	signal, unref the renderer in finalize(). Set the renderer's
      	border color to black if the cell is not selected (a hack that
      	saves tons of code in GimpLayerTreeView).
      	* app/widgets/gimpcomponenteditor.c: no need to gtk_list_store_set()
      	stuff we just got from the store.
      	* app/widgets/gimpcontainertreeview.[ch]: added lots of state used
      	by the new subclasses to the GimpContainerTreeView struct.  Create
      	the GtkListStore/GtkTreeView in GObject::constructor() and only
      	collect parameters in init() so subclasses can modify store/view
      	creation. Do most of the button_press_event stuff manually and
      	return TRUE from the handler.
      	* app/widgets/gimpcontainerview.c: cleanup.
      	* app/widgets/gimpitemlistview.h
      	* app/widgets/gimpvectorslistview.h: temp hacks before they die.
      	* app/widgets/gimppreviewrenderer.[ch]: added
      	gimp_preview_renderer_update_idle() which idle-emits "update"
      	without invalidating.
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs.c: added constructors for the new dialogs.
      	* app/gui/channels-commands.c
      	* app/gui/channels-menu.c
      	* app/gui/layers-commands.c
      	* app/gui/layers-menu.c
      	* app/gui/vectors-commands.c
      	* app/gui/vectors-menu.c: accept tree views as callback data.
  10. 13 Mar, 2003 1 commit
  11. 12 Mar, 2003 2 commits
    • Sven Neumann's avatar
      reordered the View menu, moved all Zoom-related entries into a submenu. · c3a4ddc6
      Sven Neumann authored
      2003-03-12  Sven Neumann  <sven@gimp.org>
      	* app/gui/image-menu.c: reordered the View menu, moved all
      	Zoom-related entries into a submenu. Use radio items for the zoom
      	ratio as suggested in bug #74385.
      	* app/gui/view-commands.c (view_zoom_cmd_callback): only call
      	gimp_display_shell_scale() if the item is active and the current
      	scale is different from the requested one.
      	* app/display/gimpdisplayshell.c (gimp_display_shell_real_scaled):
      	update the image menu so that the zoom ratio is displayed correctly.
      	* app/display/gimpdisplayshell-callbacks.c
      	(gimp_display_shell_canvas_realize): don't call
      	gimp_display_shell_scale_setup(), since it is done in the configure
      	event handler already.
    • Michael Natterer's avatar
      added descriptions to the GimpChannelType enum. · f2ca2574
      Michael Natterer authored
      2003-03-12  Michael Natterer  <mitch@gimp.org>
      	* app/core/core-enums.[ch]: added descriptions to the
      	GimpChannelType enum.
      	* app/core/gimpimage.[ch]: added gimp_image_get_component_index()
      	utility function which does the GIMP_RED_CHANNEL -> RED_PIX etc.
      	mapping. Use it in all component getters/setters.
      	* app/widgets/gimpcomponenteditor.[ch]: new widget implementing
      	the component list using GtkListStore/GtkTreeView. Still a bit
      	ugly because it uses the standard check instead of the eye icon.
      	* app/widgets/gimpcomponentlistitem.[ch]: removed.
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpvectorslistview.c: changed accordingly.
      	* app/widgets/gimpchannellistview.[ch]: create a GimpComponentEditor
      	and removed the old GtkList based stuff.
      	* app/widgets/gimpitemlistview.[ch]: keep around a pointer to the
      	GimpMenuFactory passed to the constructor.
      	* app/gui/channels-menu.c (channels_menu_update): do the right
      	thing if "data" is a GimpComponentEditor.
      	* app/gui/channels-commands.[ch]: ditto. Implemented duplicating
      	of components and component to selection (bug #61018).
  12. 11 Mar, 2003 4 commits
    • Sven Neumann's avatar
      added gimp_channel_new_from_component() which creates a new GimpChannel · 3c30a90b
      Sven Neumann authored
      2003-03-12  Sven Neumann  <sven@gimp.org>
      	* app/core/gimpchannel.[ch]: added gimp_channel_new_from_component()
      	which creates a new GimpChannel from an image's color component.
      	* app/gui/channels-commands.[ch]: added
      	* app/paint-funcs/paint-funcs-generic.h
      	* app/paint-funcs/paint-funcs.[ch]: added code to extract a color
      	component from a PixelRegion (untested!).
      	* plug-ins/common/checkerboard.c: cosmetics.
    • 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
      	* app/gui/image-menu.c
      	* app/gui/view-commands.[ch]: added a "Show Scrollbars" menu entry,
      	use the new widget show/hide utility functions.
    • 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.
    • 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.
  13. 10 Mar, 2003 1 commit
    • 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
      	* 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.
  14. 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
      	* 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
      	* 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...
    • 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.
  15. 05 Mar, 2003 1 commit
    • 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.
  16. 04 Mar, 2003 1 commit
    • 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
      	* app/gui/file-save-dialog.c: call file_save_as(), renamed
      	"set_uri" variables to "set_uri_and_proc".
  17. 25 Feb, 2003 1 commit
    • Sven Neumann's avatar
      app/display/gimpdisplayshell-callbacks.[ch] override · 3d526e74
      Sven Neumann authored
      2003-02-25  Sven Neumann  <sven@gimp.org>
      	* app/display/gimpdisplayshell-callbacks.[ch]
      	* app/display/gimpdisplayshell.c: override GtkWidget::popup_menu()
      	so we popup the Image menu on the default shortcut (Shift F10).
      	* app/gui/image-menu.c (image_menu_entries): removed or replaced
      	shortcuts that use the Alt key. Added access keys to all toplevel
      	entries of the Image menu (see bug #106991).
      	* app/gui/tools-commands.[ch]: removed "Swap Contexts" functionality.
      	* app/widgets/gimpselectioneditor.[ch]: moved "Invert" button.
  18. 24 Feb, 2003 1 commit
  19. 21 Feb, 2003 2 commits
    • Michael Natterer's avatar
      Started migration from GtkList to GtkTreeView: · 9ee632a6
      Michael Natterer authored
      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.
    • Michael Natterer's avatar
      Refactored the GimpDisplayShell update/draw code: · 5f5e0bf5
      Michael Natterer authored
      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().
  20. 20 Feb, 2003 1 commit
    • Michael Natterer's avatar
      app/widgets/Makefile.am app/widgets/widgets-types.h new GimpEditor · 94bdcbcc
      Michael Natterer authored
      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.
  21. 17 Feb, 2003 1 commit
    • Michael Natterer's avatar
      added "undo_desc" parameters. · fefaa309
      Michael Natterer authored
      2003-02-17  Michael Natterer  <mitch@gimp.org>
      	* app/core/gimpimage.[ch] (gimp_image_position_*): added
      	"undo_desc" parameters.
      	* app/core/gimpimage-undo-push.c: changed accordingly.
      	* app/widgets/gimpitemlistview.[ch]: moved the item stack
      	manipulation function pointers from the instance to the class
      	struct. Added lots of descriptive strings to be used by tooltips
      	and undo steps.
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpitemlistitem.c
      	* app/widgets/gimplayerlistview.[ch]
      	* app/widgets/gimpvectorslistview.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/layers-commands.[ch]
      	* app/gui/vectors-commands.c: changed accordingly. Cleanup.
  22. 14 Feb, 2003 1 commit
    • Michael Natterer's avatar
      Moved the undo step implementations to the core and pass around lots of · 7a6a8d9d
      Michael Natterer authored
      2003-02-14  Michael Natterer  <mitch@gimp.org>
      	Moved the undo step implementations to the core and pass around
      	lots of "const gchar *undo_desc". Fixes bug #104367.
      	* app/Makefile.am
      	* app/undo.[ch]: removed...
      	* app/core/Makefile.am
      	* app/core/gimpimage-undo-push.[ch]: ...and added here.
      	* app/paint/Makefile.am
      	* app/tools/Makefile.am
      	* app/paint/gimppaintcore-undo.[ch]
      	* app/tools/gimptransformtool-undo.[ch]: new files for the
      	paint and transform undos.
      	* app/core/gimppaintinfo.[ch]: added a blurb.
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c
      	* app/paint/paint-types.h
      	* app/paint/paint.c: pass the blurb when registering the core.
      	* app/core/gimpdrawable.[ch]
      	* app/core/gimpimage.[ch]
      	* app/core/gimpimage-mask-select.[ch]
      	* app/core/gimpimage-mask.[ch]
      	* app/core/gimpimagemap.[ch]
      	* app/core/gimplayer-floating-sel.[ch]: added "undo_desc" parameters
      	to all undo pushing helper functions.
      	* app/undo_history.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-desaturate.c
      	* app/core/gimpdrawable-equalize.c
      	* app/core/gimpdrawable-invert.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-guides.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-undo.c
      	* app/core/gimpitem.c
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/gui/channels-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-open-dialog.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/paths-dialog.c
      	* app/gui/select-commands.c
      	* app/gui/vectors-commands.c
      	* app/text/gimptext-compat.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpdrawablelistview.c
      	* app/widgets/gimpselectioneditor.c
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/guides.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb: changed accordingly: pass
      	"undo_desc" strings, changed includes or simply removed inclusion
      	of "undo.h". Some random cleanups.
      	* tools/pdbgen/pdb/guides.pdb: cleaned up a lot. Fixed
      	gimp_image_find_next_guide() to not return guides with
      	position < 0 (and made it shorter and readable).
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/guides_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/selection_tools_cmds.c: regenerated.
  23. 13 Feb, 2003 1 commit
    • Michael Natterer's avatar
      changed FOO_UNDO enum values to GIMP_UNDO_FOO. · b600fd86
      Michael Natterer authored
      2003-02-13  Michael Natterer  <mitch@gimp.org>
      	* app/core/core-enums.[ch]: changed FOO_UNDO enum values to
      	* app/undo.[ch]: removed the undo group wrappers.
      	* app/undo_history.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-undo.c
      	* app/core/gimpimage.c
      	* app/core/gimpitem.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/channels-commands.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/paint/gimppaintcore.c
      	* app/text/gimptext-compat.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/undo.pdb: changed accordingly. Pass meaningful
      	undo names to gimp_image_undo_group_start().
      	* app/pdb/layer_cmds.c
      	* app/pdb/undo_cmds.c: regenerated.
  24. 12 Feb, 2003 1 commit
    • Michael Natterer's avatar
      Moved the undo system to the core: Keep GimpUndoStack objects as undo and · be70105d
      Michael Natterer authored
      2003-02-12  Michael Natterer  <mitch@gimp.org>
      	Moved the undo system to the core: Keep GimpUndoStack objects as
      	undo and redo stack. Use GimpUndo objects as members of the
      	stacks. GimpUndoStack is derived from GimpUndo and keeps undo
      	groups, so undo group handling is much simpler than before
      	(the whole group is just a single GimpUndo object on the
      	stack and not everything between group boundary markers).
      	* app/Makefile.am
      	* app/undo_types.h: removed.
      	* app/config/gimpcoreconfig.[ch]: added "gulong undo_size".
      	* app/config/gimprc-blurbs.h: and its blurb.
      	* app/core/core-enums.[ch]: added GimpUndoMode and GimpUndoType.
      	* app/core/core-types.h: removed UndoType, added GimpUndoAccumulator,
      	GimpUndoPopFunc and GimpUndoFreeFunc.
      	* app/core/gimpundo.[ch]: do everything the old "Undo" struct did.
      	Removed the virtual push() function and added free().
      	* app/core/gimpundostack.[ch]: keeps the new undo/redo stacks
      	and also acts as undo group.
      	* app/core/gimpimage-undo.[ch]: moved the undo apparatus here.
      	* app/core/gimpimage.[ch]: removed the old stuff.
      	* app/core/gimpmarshal.list: added marshaller needed for GimpUndo.
      	* app/undo.[ch]: removed the whole undo mechanism. Only the
      	actual undo pushing functions are left.
      	* app/undo_history.c
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/image-menu.c
      	* app/gui/preferences-dialog.c
      	* app/tools/gimpeditselectiontool.c: changed accordingly.
  25. 11 Feb, 2003 2 commits
    • Michael Natterer's avatar
      added new virtual function duplicate() as replacement for all · 436ed648
      Michael Natterer authored
      2003-02-11  Michael Natterer  <mitch@gimp.org>
      	* app/core/gimpitem.[ch]: added new virtual function duplicate()
      	as replacement for all gimp_*_copy() functions.
      	* app/core/gimpchannel.[ch]
      	* app/core/gimpdrawable.[ch]
      	* app/core/gimplayer.[ch]
      	* app/core/gimplayermask.[ch]
      	* app/vectors/gimpvectors.[ch]: replaced public copy() functions
      	by duplicate() implementations.
      	* app/text/gimptextlayer.c: added a duplicate() implementation.
      	* app/widgets/gimpitemlistview.[ch]: removed the "copy_item_func"
      	and simply call gimp_item_duplicate().
      	* app/undo.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-qmask.c
      	* app/gui/channels-commands.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/layers-commands.c
      	* app/gui/vectors-commands.c
      	* app/widgets/gimptoolbox.c
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      	* app/pdb/channel_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/selection_cmds.c: regenerated.
    • Michael Natterer's avatar
      added lots of members for the complete state of the plug-ins. · af330e96
      Michael Natterer authored
      2003-02-11  Michael Natterer  <mitch@gimp.org>
      	* app/core/gimp.h: added lots of members for the complete
      	state of the plug-ins.
      	* app/plug-in/plug-in-types.h: added PlugInShm typedef.
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-rc.[ch]
      	* app/plug-in/plug-in-run.[ch]
      	* app/plug-in/plug-in-shm.c
      	* app/plug-in/plug-in.[ch]
      	* app/plug-in/plug-ins.[ch]: removed all global & static variables
      	and pass around more "Gimp" pointers.
      	* app/plug-in/plug-in-debug.c: use G_N_ELEMENTS().
      	* app/gui/image-menu.c
      	* app/gui/plug-in-commands.c
      	* app/gui/plug-in-menus.c
      	* app/gui/toolbox-menu.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/plug_in.pdb: changed accordingly.
      	* app/pdb/fileops_cmds.c
      	* app/pdb/plug_in_cmds.c: regenerated.
  26. 31 Jan, 2003 1 commit
    • Michael Natterer's avatar
      added gimp_item_configure() and gimp_item_copy(). · 794885e2
      Michael Natterer authored
      2003-01-31  Michael Natterer  <mitch@gimp.org>
      	* app/core/gimpitem.[ch]: added gimp_item_configure() and
      	* app/core/gimpdrawable.c (gimp_drawable_configure,copy): use them.
      	* app/vectors/gimpvectors.[ch]: added gimp_vectors_new(),
      	gimp_vectors_copy() and gimp_vectors_copy_points(). Use the new
      	GimpItem functions just as GimpDrawable does. Added a
      	get_memsize() implementation.
      	* app/vectors/gimpstroke.[ch]: made it a GimpObject and added
      	a get_memsize() implementation.
      	* app/undo.c: implemented vectors undo as if the new GimpVectors
      	functions above worked.
      	* app/gui/dialogs-constructors.c
      	* app/gui/vectors-commands.c
      	* app/tools/gimpvectortool.c: use gimp_vectors_new,copy().
  27. 30 Jan, 2003 1 commit
    • Michael Natterer's avatar
      renamed plug_in->busy to plug_in->in_temp_proc. Added a stack of · a3c38814
      Michael Natterer authored
      2003-01-30  Michael Natterer  <mitch@gimp.org>
      	* app/plug-in/plug-in.[ch]: renamed plug_in->busy to
      	plug_in->in_temp_proc. Added a stack of GMainLoops to each
      	plug-in. Added the "current_return_vals" to the PlugIn
      	struct. Renamed plug_in_kill() to plug_in_exit(). Removed
      	the stuff added below. Cleanup.
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-message.[ch]
      	* app/plug-in/plug-in-run.[ch]
      	* app/plug-in/plug-in-shm.[ch]: new files taking out functionality
      	from the overloaded plug-in.c. Added the code back in that implements
      	temp proc return messages (inside an #ifdef) because i don't
      	really get why it was removed on Sep 19 1998.
      	* app/plug-in/plug-ins.c: changed accordingly.
      	* app/plug-in/plug-in-def.c
      	* app/plug-in/plug-in-params.c: removed inclusion of <gtk/gtk.h>.
      	* app/gui/file-save-dialog.c
      	* app/gui/paths-dialog.c
      	* app/gui/plug-in-commands.c
      	* app/gui/plug-in-menus.c
      	* app/pdb/procedural_db.c
      	* app/widgets/gimphelp.c: changed plug-in includes accordingly.
      	* app/gui/plug-in-commands.c: don't use "the_gimp" from
      	"app_procs.h" but get it from the GimpItemFactory that invoked the
      	plug-in callback.
  28. 13 Jan, 2003 1 commit
    • Michael Natterer's avatar
      app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] · 6f29b766
      Michael Natterer authored
      2003-01-13  Michael Natterer  <mitch@gimp.org>
      	* app/gui/brushes-menu.[ch]
      	* app/gui/buffers-menu.[ch]
      	* app/gui/channels-menu.[ch]
      	* app/gui/colormap-editor-menu.[ch]
      	* app/gui/dialogs-menu.[ch]
      	* app/gui/documents-menu.[ch]
      	* app/gui/file-open-menu.[ch]
      	* app/gui/file-save-menu.[ch]
      	* app/gui/gradient-editor-menu.[ch]
      	* app/gui/gradients-menu.[ch]
      	* app/gui/image-menu.[ch]
      	* app/gui/images-menu.[ch]
      	* app/gui/layers-menu.[ch]
      	* app/gui/palette-editor-menu.[ch]
      	* app/gui/palettes-menu.[ch]
      	* app/gui/patterns-menu.[ch]
      	* app/gui/qmask-menu.[ch]
      	* app/gui/toolbox-menu.[ch]
      	* app/gui/vectors-menu.[ch]: new files, one per GimpItemFactory,
      	containing the menu entries and their setup and update funcs.
      	* app/gui/brushes-commands.[ch]
      	* app/gui/patterns-commands.[ch]: removed because they contained
      	only update funcs.
      	* app/gui/Makefile.am: changed accordingly. Split the huge
      	SOURCES list in smaller ones for menus and dialogs.
      	* app/gui/menus.[ch]: removed the menu entries and setup funcs.
      	Added MENU_SEPARATOR() and MENU_BRANCH() macros to the header.
      	Made some utility functions public.
      	* app/display/gimpdisplayshell.[ch]
      	* app/gui/buffers-commands.[ch]
      	* app/gui/channels-commands.[ch]
      	* app/gui/colormap-editor-commands.[ch]
      	* app/gui/dialogs-commands.[ch]
      	* app/gui/documents-commands.[ch]
      	* app/gui/gradient-editor-commands.[ch]
      	* app/gui/gradients-commands.[ch]
      	* app/gui/images-commands.[ch]
      	* app/gui/layers-commands.[ch]
      	* app/gui/palette-editor-commands.[ch]
      	* app/gui/palettes-commands.[ch]
      	* app/gui/qmask-commands.[ch]
      	* app/gui/vectors-commands.[ch]: removed the update funcs.
      	* app/gui/plug-in-menus.[ch]: renamed plug_in_set_menu_sensitivity()
      	to plug_in_menus_update(). Cleanup.
      	* app/gui/paths-dialog.[ch]: added the <Paths> entries here
      	so they will go away together with these files.
      	* app/gui/dialogs-constructors.c
      	* app/gui/drawable-commands.c: removed useless #includes.
  29. 12 Jan, 2003 1 commit
    • Michael Natterer's avatar
      pass the GimpItemListView as "data" to the item_factory callbacks, not · f44500aa
      Michael Natterer authored
      2003-01-12  Michael Natterer  <mitch@gimp.org>
      	* app/widgets/gimpitemlistview.c: pass the GimpItemListView as
      	"data" to the item_factory callbacks, not just a "Gimp" pointer.
      	* app/display/gimpdisplayshell.c: use
      	gtk_window_add_accel_group(), not gimp_window_add_accel_group()
      	because we now attach the menubar's accel group, which has the
      	GimpDisplay as callback data.
      	* app/display/gimpdisplayshell-callbacks.c: pass the GimpDisplay
      	as "popup_data" to *_item_factory_popup_with_data().
      	* app/gui/channels-commands.c
      	* app/gui/drawable-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/vectors-commands.c: changed accordingly.
      	* app/widgets/gimpwidgets-utils.[ch]: removed
      	gimp_window_[add|remove]_accel_group() and
      	gimp_widget_get_callback_context() because they were evil hacks
      	which are no longer needed now that all item_factories have proper
      	callback data (no just Gimp pointers).
  30. 10 Jan, 2003 1 commit
    • Michael Natterer's avatar
      app/widgets/gimpcolormapeditor.c app/widgets/gimpcontainereditor.[ch] pass · dd27eb1e
      Michael Natterer authored
      2003-01-10  Michael Natterer  <mitch@gimp.org>
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpcontainereditor.[ch]
      	* app/widgets/gimpdataeditor.c: pass the editor widget as
      	callback_data to GtkItemFactory callbacks, not a "Gimp" pointer.
      	* app/gui/buffers-commands.c
      	* app/gui/colormap-editor-commands.c
      	* app/gui/data-commands.c
      	* app/gui/documents-commands.c
      	* app/gui/gradient-editor-commands.c
      	* app/gui/gradients-commands.c
      	* app/gui/images-commands.c
      	* app/gui/palette-editor-commands.c
      	* app/gui/palettes-commands.c
      	* app/gui/patterns-commands.c: simply cast the passed "data"
      	pointer instead of calling gimp_widget_get_callback_context().
      	Don't #include "widgets/gimpwidgets-utils.h".