1. 13 Jan, 2005 1 commit
    • Michael Natterer's avatar
      Allow to easily open brushes and patterns as images. Fixes bug #163059. · 0f4e2168
      Michael Natterer authored
      2005-01-13  Michael Natterer  <mitch@gimp.org>
      
      	Allow to easily open brushes and patterns as images.
      	Fixes bug #163059.
      
      	* app/actions/brushes-actions.c
      	* app/actions/patterns-actions.c: added "brushes-open-as-image"
      	and "patterns-open-as-image" actions.
      
      	* app/actions/data-commands.[ch]: added
      	data_open_as_image_cmd_callback() which tries to load
      	data->filename as image.
      
      	* app/widgets/gimphelp-ids.h: added help IDs for the new actions.
      
      	* app/widgets/gimpdatafactoryview.c: added buttons.
      
      	* menus/brushes-menu.xml
      	* menus/patterns-menu.xml: added them to the menus.
      0f4e2168
  2. 03 Jan, 2005 1 commit
    • Michael Natterer's avatar
      Implemented "Snap to Canvas Edges" (fixes bug #152971) and "Snap to Active · 150bea1e
      Michael Natterer authored
      2005-01-03  Michael Natterer  <mitch@gimp.org>
      
      	Implemented "Snap to Canvas Edges" (fixes bug #152971) and
      	"Snap to Active Path" (half way done):
      
      	* app/core/gimpimage-snap.[ch]: added boolean snap_to_canvas and
      	snap_to_vectors parameters (snap_to_vectors works fine when
      	snapping to a point, but is unimplemented for snapping to a
      	rectangle).
      
      	* app/display/gimpdisplayshell.[ch] (struct GimpDisplayShell):
      	added snap_to_canvas and snap_to_vectors booleans.
      
      	* app/display/gimpdisplayshell-appearance.[ch]: added API to
      	get/set them.
      
      	* app/actions/view-actions.c
      	* app/actions/view-commands.[ch]
      	* app/widgets/gimphelp-ids.h: added actions, callbacks and help IDs.
      
      	* menus/image-menu.xml.in: added them to Image->View.
      150bea1e
  3. 12 Dec, 2004 1 commit
    • Michael Natterer's avatar
      added new function copy_region_nocow() as a workaround for the fact that · 53c3ff18
      Michael Natterer authored
      2004-12-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint-funcs/paint-funcs.[ch]: added new function
      	copy_region_nocow() as a workaround for the fact that sharing
      	tiles with the projection is heavily broken.
      
      	* app/base/tile-manager.c (tile_invalidate): added a warning when
      	entering the code path that breaks badly.
      
      	* app/core/gimp-edit.[ch]: added gimp_edit_copy_visible(), using
      	the non-COW copying function above.
      
      	* app/widgets/gimphelp-ids.h: added GIMP_HELP_COPY_VISIBLE.
      
      	* app/actions/edit-actions.c
      	* app/actions/edit-commands.[ch]: added action & callback for
      	"edit-copy-visible".
      
      	* menus/image-menu.xml.in: added "edit-copy-visible" to the image
      	menu.
      
      	* tools/pdbgen/pdb/edit.pdb: added gimp_edit_copy_visible()
      	PDB wrapper.
      
      	* app/pdb/edit_cmds.c
      	* app/pdb/internal_procs.c
      	* libgimp/gimpedit_pdb.[ch]: regenerated.
      
      	* plug-ins/script-fu/scripts/copy-visible.scm: removed all code
      	and made it a backward compat wrapper around gimp-edit-copy-visible.
      	Fixes bug #138662.
      53c3ff18
  4. 24 Nov, 2004 1 commit
    • Michael Natterer's avatar
      guarded the whole header with GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION · 6d63d500
      Michael Natterer authored
      2004-11-24  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpwidgets/gimpcontroller.[ch]: guarded the whole header
      	with GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION because it's no
      	fixed API yet. Added a "state" property bacause "name" was abused
      	as the controller's state. Added "help_domain" to the controller
      	class.
      
      	* libgimpwidgets/gimpwidgets.h: don't include gimpcontroller.h
      
      	* modules/controller_linux_input.c
      	* modules/controller_midi.c: set the "name" property to the name
      	retrieved from the device, or to a default string if no name is
      	available. Store the status in the "state" property. Added and
      	changed some strings, but it's better to have the controller
      	strings untranslated than to have no tooltips at all or misleading
      	labels.
      
      	* app/widgets/gimpcontrollerkeyboard.c
      	* app/widgets/gimpcontrollerwheel.c: set default strings for both.
      
      	* app/widgets/gimpcontrollereditor.c: added a GUI for the "state"
      	property.
      
      	* app/widgets/gimpcontrollerkeyboard.h
      	* app/widgets/gimpcontrollerwheel.h
      	* app/widgets/gimpcontrollerinfo.c
      	* app/widgets/gimpcontrollers.c: #define
      	GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION (just as in all files
      	above).
      
      	* app/widgets/gimphelp-ids.h: added the IDs of all controller
      	modules and also of all other modules. The defines are not
      	actually used, but this file is the canonical place to collect all
      	the core's help IDs.
      6d63d500
  5. 13 Nov, 2004 1 commit
    • Sven Neumann's avatar
      app/dialogs/Makefile.am new files for the Print Size dialog that is still · 9ac6ecef
      Sven Neumann authored
      2004-11-13  Sven Neumann  <sven@gimp.org>
      
      	* app/dialogs/Makefile.am
      	* app/dialogs/print-size-dialog.[ch]: new files for the Print Size
      	dialog that is still missing. Still work in progress...
      
      	* app/actions/image-actions.c
      	* app/actions/image-commands.[ch]
      	* app/widgets/gimphelp-ids.h
      	* menus/image-menu.xml.in: integrate the new dialog.
      9ac6ecef
  6. 29 Oct, 2004 1 commit
  7. 04 Oct, 2004 1 commit
    • Sven Neumann's avatar
      app/config/gimpguiconfig.[ch] added gimprc option "show-help-button". · 62b5c77c
      Sven Neumann authored
      2004-10-04  Sven Neumann  <sven@gimp.org>
      
              * app/config/gimpguiconfig.[ch]
              * app/config/gimprc-blurbs.h: added gimprc option "show-help-button".
      
              * app/dialogs/preferences-dialog.c: added a GUI for it.
      
              * app/dialogs/file-save-dialog.c
              * app/dialogs/image-new-dialog.c
              * app/dialogs/quit-dialog.c
              * app/display/gimpdisplayshell-close.c
              * app/widgets/gimphelp-ids.h: don't set help-ids on confirmation
              dialogs.
      
              * libgimpbase/gimpprotocol.[ch]
              * libgimp/gimp.[ch]: added boolean "show_help_button" to the
              config message.
      
              * app/plug-in/plug-in-run.c: pass the new preference to the plug-in.
      
              * libgimpwidgets/gimpdialog.[ch]: added new function that allows to
              set whether new dialogs should get a help button added.
      
              * app/gui/gui.c
              * libgimp/gimpui.c: call gimp_dialogs_show_help_button() according
              to the gimprc settings.
      62b5c77c
  8. 21 Sep, 2004 1 commit
    • Michael Natterer's avatar
      For the sake of completeness, added a GUI for the hidden "Open as Layer" · 37912655
      Michael Natterer authored
      2004-09-21  Michael Natterer  <mitch@gimp.org>
      
      	For the sake of completeness, added a GUI for the hidden
      	"Open as Layer" feature:
      
      	* app/actions/file-actions.c
      	* app/actions/file-commands.[ch]: added "file-open-as-layer"
      	action and callback. Abuse the "gimage" field of GimpFileDialog to
      	indicate layer opening (it's otherwise unused for file-open).
      
      	* app/dialogs/file-open-dialog.c: if dialog->gimage is non-NULL,
      	open the selected files as layers for that image.
      
      	* app/widgets/gimphelp-ids.h: added GIMP_HELP_FILE_OPEN_AS_LAYER.
      
      	* menus/image-menu.xml.in: added it to the menu.
      37912655
  9. 15 Sep, 2004 1 commit
    • Michael Natterer's avatar
      added help IDs for the drawable- and vectors-visible and -liked actions as · 186b5908
      Michael Natterer authored
      2004-09-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimphelp-ids.h: added help IDs for the drawable- and
      	vectors-visible and -liked actions as well as for the layer mask
      	property action.
      
      	* app/actions/drawable-actions.c
      	* app/actions/vectors-actions.c: use them.
      
      	* app/actions/layers-actions.c
      	* app/actions/layers-commands.[ch]: ditto. Use
      	GIMP_STOCK_TRANSPARENCY for all layer opacity actions. Replaced
      	"paint_mode" by "mode" in all action and function/variable names
      	because this is the layer mode, not a paint mode.
      
      	* app/actions/channels-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/vectors-commands.c: set the "activates-default"
      	property on the name entry in all "New Foo" and "Edit Foo
      	Attributes" dialogs except in the "New Layer" dialog.
      	Addresses bug #148026.
      
      	* menus/image-menu.xml.in: added a (commented out) layer
      	properties menu containing all the new actions.
      186b5908
  10. 04 Sep, 2004 1 commit
    • Simon Budig's avatar
      Implement function to resize the image to contain all layers completely. · fe7eb34e
      Simon Budig authored
      2004-09-05  Simon Budig  <simon@gimp.org>
      
      	* app/core/gimpimage-resize.[ch]: Implement function to resize
      	the image to contain all layers completely. Untabified.
      
      	* app/actions/image-actions.c
      	* app/actions/image-commands.[ch]
      	* app/widgets/gimphelp-ids.h
      	* menus/image-menu.xml.in: Make it available in the GUI.
      
      	* tools/pdbgen/pdb/image.pdb: Make it available in the PDB.
      
      	* app/pdb/image_cmds.c
      	* app/pdb/internal_procs.c
      	* libgimp/gimpimage_pdb.[ch]: regenerated.
      fe7eb34e
  11. 28 Aug, 2004 1 commit
  12. 18 Aug, 2004 1 commit
    • Sven Neumann's avatar
      define GIMP_HELP_DOCK_SEPARATOR. · 2d5ee448
      Sven Neumann authored
      2004-08-18  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimphelp-ids.h: define GIMP_HELP_DOCK_SEPARATOR.
      
      	* app/widgets/gimpdock.c
      	* app/widgets/gimpdockable.c: help-ids are never used directly,
      	use the defines from app/widgets/gimphelp-ids.h instead.
      2d5ee448
  13. 27 Jul, 2004 1 commit
  14. 26 Jul, 2004 1 commit
    • Michael Natterer's avatar
      new function which clears the whole list of data set by plug-ins. · a2b85a62
      Michael Natterer authored
      2004-07-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/procedural_db.[ch] (procedural_db_free_data): new
      	function which clears the whole list of data set by plug-ins.
      
      	(procedural_db_free): use it.
      
      	* app/actions/plug-in-actions.c
      	* app/actions/plug-in-commands.[ch]: added action, callback and
      	confirmation dialog for "Reset all filters to default values".
      	Somehow addresses bug #81015.
      
      	* app/widgets/gimphelp-ids.h: added a help ID for the new action.
      
      	* menus/image-menu.xml.in: added it to the "Filters" submenu.
      a2b85a62
  15. 17 Jul, 2004 2 commits
    • Michael Natterer's avatar
      added the removed help IDs back. · 09c6ee73
      Michael Natterer authored
      2004-07-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimphelp-ids.h: added the removed help IDs back.
      
      	* app/widgets/gimpfileprocview.[ch]: cache all file_procs' help
      	IDs and added gimp_file_proc_view_get_help_id() which returns the
      	selected item's help ID.
      
      	* app/widgets/gimpfiledialog.c: added a custom help func which
      	shows the help for the selected file_proc if the proc_view has the
      	focus.
      09c6ee73
    • Sven Neumann's avatar
      use GIMP_STOCK_WEB for "file-open-location". · d95059db
      Sven Neumann authored
      2004-07-17  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/file-actions.c (file_actions): use GIMP_STOCK_WEB
      	for "file-open-location".
      
      	* app/widgets/gimpfiledialog.c: create the scrolled window with
      	shadow_type GTK_SHADOW_IN.
      
      	* app/widgets/gimpfileprocview.c (gimp_file_proc_view_new): skip
      	procedures that register a prefix (the URL loader).
      
      	* app/widgets/gimphelp-ids.h: removed help IDs that used to be
      	used from the file-open and file-save menus.
      
      	* plug-ins/common/xwd.c (query): "X window dump" seems to be more
      	appropriate than "X window image".
      d95059db
  16. 22 Jun, 2004 1 commit
    • Michael Natterer's avatar
      app/actions/view-actions.c added actions & callbacks to configure the · 9fe8e849
      Michael Natterer authored
      2004-06-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/view-actions.c
      	* app/actions/view-commands.[ch]: added actions & callbacks to
      	configure the canvas padding color.
      
      	* app/widgets/gimphelp-ids.h
      	* menus/image-menu.xml.in: added the actions' help IDs and menu entries.
      
      	* app/display/display-enums.h: added /*< skip >*/'ed enum value
      	GIMP_CANVAS_PADDING_MODE_RESET.
      
      	* app/display/gimpdisplayshell-appearance.c
      	* app/display/gimpdisplayshell-callbacks.[ch]
      	* app/display/gimpdisplayshell-handlers.c
      	* app/display/gimpdisplayshell.[ch]: removed the canvas padding
      	button and its popup menu (fixes bug #142996). Instead, added a
      	toggle button which allows to zoom the image when the window is
      	resized (as known from sodipodi, except it doesn't work as nice
      	yet :-) improvements to the algorithm are welcome).
      	Cleaned up the GimpDisplayShell struct a bit and renamed some
      	of its members.
      
      	* libgimpwidgets/gimpstock.[ch]
      	* themes/Default/images/Makefile.am
      	* themes/Default/images/stock-zoom-follow-window-12.png: added new
      	icon for the new display toggle button.
      9fe8e849
  17. 20 Jun, 2004 1 commit
    • Philip Lafleur's avatar
      Changed "Zoom to Fit Window" command to "Fit Image in Window" and added · c7364a64
      Philip Lafleur authored
      2004-06-20  Philip Lafleur  <plafleur@cvs.gnome.org>
      
      	* app/display/gimpdisplayshell-scale.[ch]:
      	* app/display/gimpnavigationview.[ch]:
      	* app/actions/view-actions.c:
      	* app/actions/view-commands.[ch]:
      	* app/widgets/gimphelp-ids.h:
      	* menus/image-menu.xml.in: Changed "Zoom to Fit Window" command
      	to "Fit Image in Window" and added another command, "Fit Image
      	to Window", that zooms according to the opposite dimension. Fixes
      	bug #144597.
      c7364a64
  18. 17 Jun, 2004 1 commit
    • Michael Natterer's avatar
      removed "enabled" property. Removed GIMP_CONTROLLER_PARAM_RERIALIZE from · 5f4eabdb
      Michael Natterer authored
      2004-06-17  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpwidgets/gimpcontroller.[ch]: removed "enabled"
      	property. Removed GIMP_CONTROLLER_PARAM_RERIALIZE from the "name"
      	property because it's the hardware-determined name of this
      	controller instance.
      
      	* app/widgets/gimpcontrollerwheel.c
      	* modules/controller_linux_input.c: set the name.
      
      	* libgimpwidgets/gimpwidgets.h: #include gimpcontroller.h.
      
      	* app/widgets/gimpcontrollerinfo.[ch]: added "enabled" here
      	instead.  Don't dispatch events if the controller is
      	disabled. Made everything work (not crash) with info->mapping
      	being NULL.
      
      	* etc/controllerrc: updated again with the changed format.
      
      	* app/widgets/gimpcontrollers.[ch]: added
      	gimp_controllers_get_list() which returns the container of
      	controllers.
      
      	* app/widgets/gimphelp-ids.h
      	* app/gui/preferences-dialog.c: added controller configuration
      	(can't change anything yet, just view the current settings).
      	Resurrected the "Input Devices" page and removed the "Session"
      	page by moving its widgets to other pages. Pack the various
      	"Save now"/"Clear now" buttons vertically, not horizontally.
      	Fixes bug #139069.
      
      	* themes/Default/images/preferences/Makefile.am
      	* themes/Default/images/preferences/controllers.png
      	* themes/Default/images/preferences/theme.png: new icons for new
      	prefs pages. Someone needs to make them nice...
      5f4eabdb
  19. 09 Jun, 2004 1 commit
    • Sven Neumann's avatar
      added an API to expand/collapse the "Advanced Options" frame. · 38b78ce9
      Sven Neumann authored
      2004-06-10  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimptemplateeditor.[ch]: added an API to
      	expand/collapse the "Advanced Options" frame.
      
      	* app/gui/preferences-dialog.c
      	* app/widgets/gimphelp-ids.h: applied a patch done by William
      	Skaggs that cleans up and reorganizes the Preferences dialog
      	(bug #144060).
      38b78ce9
  20. 31 May, 2004 2 commits
    • Michael Natterer's avatar
      app/widgets/Makefile.am new toolbox area which shows the active image. · dbc49d9a
      Michael Natterer authored
      2004-05-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimptoolbox-image-area.[ch]: new toolbox area which
      	shows the active image.
      
      	* app/config/gimpguiconfig.[ch]
      	* app/config/gimprc-blurbs.h: added config options to control the
      	visibility of the toolbox' color, indicator and image areas.
      
      	* app/widgets/gimptoolbox.[ch]: added the image area and honor the
      	new config options. Put the various areas into their own wrap box.
      
      	* app/widgets/gimptoolbox-dnd.c: changed accordingly.
      
      	* app/widgets/gimphelp-ids.h: added a help ID for the image area.
      
      	* app/widgets/gimptoolbox-indicator-area.c: made the previews
      	a bit larger, cleanup.
      
      	* app/gui/preferences-dialog.c: added a "Toolbox" page as GUI for
      	the new config options.
      
      	* themes/Default/images/preferences/Makefile.am
      	* themes/Default/images/preferences/toolbox.png: a (wrong) icon
      	for the "Toolbox" prefs page. Needs to be replaced.
      dbc49d9a
    • Sven Neumann's avatar
      app/Makefile.am app/actions/file-actions.c app/actions/file-commands.[ch] · a03ad36c
      Sven Neumann authored
      2004-05-31  Sven Neumann  <sven@gimp.org>
      
      	* app/Makefile.am
      	* app/actions/file-actions.c
      	* app/actions/file-commands.[ch]
      	* app/gui/Makefile.am
      	* app/gui/file-open-location-dialog.[ch]
      	* app/widgets/gimphelp-ids.h
      	* menus/image-menu.xml.in
      	* menus/toolbox-menu.xml.in: added a rudimentary "Open Location"
      	dialog.
      a03ad36c
  21. 04 May, 2004 1 commit
    • Michael Natterer's avatar
      emit the "undo-freeze" and "undo-thaw" signals only on the first freeze · a3059675
      Michael Natterer authored
      2004-05-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage.c (gimp_image_undo_freeze,thaw): emit the
      	"undo-freeze" and "undo-thaw" signals only on the first freeze and
      	last thaw, not on any of them.
      
      	* app/widgets/gimphelp-ids.h: added GIMP_HELP_EDIT_UNDO_CLEAR.
      
      	* app/widgets/gimpundoeditor.[ch]: added a "Clear Undo History"
      	button. Fixes bug #136300.
      
      	Also don't attach to the image's undo stack if the image's undo is
      	disabled and set the buttons' sensitivity accordingly. Should fix
      	all kinds of unpredictable undo history brokenness.
      a3059675
  22. 28 Jan, 2004 1 commit
  23. 20 Jan, 2004 1 commit
    • Michael Natterer's avatar
      added help IDs for the libgimp export and unit dialogs. · 04187503
      Michael Natterer authored
      2004-01-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimphelp-ids.h: added help IDs for the libgimp
      	export and unit dialogs.
      
      	* libgimp/gimpexport.c
      	* libgimpwidgets/gimpunitmenu.c: replaced html links by the new
      	help IDs.
      
      	* plug-ins/*/*.c: replaced all html help links by help IDs. A
      	plug-in's help ID is its procedure name with '_' relaced by '-'.
      
      	(e.g. file_tiff_save's help ID is file-tiff-save)
      
      	Did some random indentation and whitespace cleanup.
      04187503
  24. 05 Jan, 2004 1 commit
    • Sven Neumann's avatar
      added GIMP_UNDO_TEXT_LAYER to GimpUndoType enum. · 3451c82f
      Sven Neumann authored
      2004-01-05  Sven Neumann  <sven@gimp.org>
      
      	* app/core/core-enums.[ch]: added GIMP_UNDO_TEXT_LAYER to
      	GimpUndoType enum.
      
      	* app/core/gimpimage-undo-push.[ch]: added new undo function
      	gimp_image_undo_push_text_layer().
      
      	* app/text/gimptextlayer.[ch]: renamed gimp_text_layer_render() to
      	gimp_layer_text_layer_flush().
      	Added new function gimp_text_layer_discard().
      
      	* app/text/gimptextlayer-transform.c: changed accordingly.
      
      	* app/gui/image-menu.c
      	* app/gui/layers-commands.[ch]
      	* app/gui/layers-menu.c: added menu entries that allow to discard
      	the text information of a text layer (bug #118547).
      
      	* app/widgets/gimppreviewrendererlayer.c
      	(gimp_preview_renderer_layer_render): treat text layers without a
      	text object like ordinary layers.
      
      	* app/widgets/gimppreviewrenderer-utils.c: include gimplayer.h
      	instead of gimptextlayer.h.
      3451c82f
  25. 21 Nov, 2003 1 commit
    • Henrik Brix Andersen's avatar
      app/widgets/gimphelp-ids.h changed "Window Manager" to "Window Management" · 2df60dac
      Henrik Brix Andersen authored
      2003-11-21 Henrik Brix Andersen <brix@gimp.org>
      
      * app/widgets/gimphelp-ids.h
      * app/gui/preferences-dialog.c: changed "Window Manager" to
      "Window Management" and "Decorations" to "Window Type Hints"
      
      * themes/Default/images/preferences/window-manager.png: removed...
      
      * themes/Default/images/preferences/Makefile.am
      * themes/Default/images/preferences/window-management.png: ... and
      added under a new name.
      2df60dac
  26. 20 Nov, 2003 1 commit
    • Henrik Brix Andersen's avatar
      app/gui/preferences-dialog.c Added Window Manager tab exposing the window · 229d1212
      Henrik Brix Andersen authored
      2003-11-20 Henrik Brix Andersen <brix@gimp.org>
      
      * app/gui/preferences-dialog.c
      * app/widgets/gimphelp-ids.h: Added Window Manager tab exposing
      the window manager hint settings to the user, moved the
      activate-on-focus setting to this tab as well.
      
      * themes/Default/images/preferences/window-manager.png
      * themes/Default/images/preferences/Makefile.am: added empty
      placeholder for Window Manager preferences icon.
      229d1212
  27. 12 Nov, 2003 1 commit
  28. 10 Nov, 2003 1 commit
    • Michael Natterer's avatar
      removed the "Move to Screen" hack. · 729ff4fa
      Michael Natterer authored
      2003-11-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell-callbacks.c: removed the
      	"Move to Screen" hack.
      
      	* app/gui/dialogs-commands.[ch]
      	* app/gui/view-commands.[ch]
      	* app/gui/dialogs-menu.c
      	* app/gui/image-menu.c: added proper menu items to the
      	<Image>/View and the <Dialogs> menus so all image windows and
      	docks can be sent to other screens. Hide the menu items when
      	there is just one screen.
      
      	* app/widgets/gimphelp-ids.h: new help IDd for the new menu items.
      729ff4fa
  29. 07 Nov, 2003 1 commit
    • Simon Budig's avatar
      New function that appends a duplicate of the source vectors strokes to the · 31f7e362
      Simon Budig authored
      2003-11-07 Simon Budig  <simon@gimp.org>
      
      	* app/vectors/gimpvectors.[ch]: New function that appends a
      	duplicate of the source vectors strokes to the list of strokes
      	of a target vectors object.
      
      	* app/core/gimpimage-merge.[ch]
      	* app/core/core-enums.h: Use this new function to merge
      	the visible vectors in an Image. New Undo type for vectors merging.
      
      	* app/core/core-enums.c: regenerated.
      
      	* app/gui/vectors-menu.c
      	* app/gui/vectors-commands.[ch]
      	* app/widgets/gimphelp-ids.h: New Menu entry + callback to invoke
      	the merge functionality. New Help ID for the menu entry.
      31f7e362
  30. 01 Nov, 2003 1 commit
    • Sven Neumann's avatar
      Replaced the histogram tool by a histogram dialog: · dcf50dc2
      Sven Neumann authored
      2003-11-01  Sven Neumann  <sven@gimp.org>
      
      	Replaced the histogram tool by a histogram dialog:
      
      	* themes/Default/images/Makefile.am
      	* themes/Default/images/tools/stock-tool-histogram-[16|22].png:
      	removed here ...
      
      	* themes/Default/images/stock-histogram-[16|22].png: ,,, and added
      	under these new names.
      
      	* libgimpwidgets/gimpstock.[ch]: register the icons as
      	GIMP_STOCK_HISTOGRAM and removed the histogram tool stock icons.
      
      	* app/base/gimphistogram.c: don't crash when uncalculated values
      	are requested from a GimpHistogram. Allow to reset the histogram
      	by calling gimp_histogram_calculate() with a NULL region.
      
      	* app/widgets/gimphistogrambox.[ch]: renamed the GimpHistogramView
      	struct member to "view".
      
      	* app/tools/gimpthresholdtool.c: changed accordingly.
      
      	* app/widgets/gimphistogramview.[ch] (gimp_histogram_view_events):
      	return TRUE when events were handled.
      
      	* app/tools/Makefile.am
      	* app/tools/gimp-tools.c
      	* app/tools/gimphistogramtool.[ch]: removed the histogram tool.
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimphelp-ids.h
      	* app/widgets/widgets-types.h
      	* app/widgets/gimphistogrameditor.[ch]: added GimpHistogramEditor.
      	Has some rough edges still...
      
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs.c
      	* app/gui/image-menu.c: register the new dialog instead of the
      	histogram tool.
      dcf50dc2
  31. 26 Oct, 2003 1 commit
    • Henrik Brix Andersen's avatar
      gimp/app/widgets/gimphelp-ids.h · e047cd8b
      Henrik Brix Andersen authored
      2003-10-26 Henrik Brix Andersen <brix@gimp.org>
      
      * gimp/app/widgets/gimphelp-ids.h
      * gimp/app/gui/preferences-dialog.c:
      - moved all session related settings to a new Session Management page
      - moved Web Browser setting to Help System page
      - changed Configure Input Devices to Configure Extended Input Devices
      
      * gimp/themes/Default/images/preferences/Makefile.am
      * gimp/themes/Default/images/preferences/session.png: re-added
      session.png
      
      * gimp/app/widgets/gimpdevices.h
      * gimp/app/widgets/gimpdevices.c (gimp_devices_clear): function
      added to be consistent with the rest of the session management
      routines. This function needs to be filled in.
      
      * gimp/app/widgets/gimptemplateeditor.c
      * gimp/app/widgets/gimpgrideditor.c: fixed spacing between widgets
      e047cd8b
  32. 23 Oct, 2003 1 commit
    • Sven Neumann's avatar
      themes/Default/images/Makefile.am · 03b90ade
      Sven Neumann authored
      2003-10-23  Sven Neumann  <sven@gimp.org>
      
      	* themes/Default/images/Makefile.am
      	* themes/Default/images/stock-tools-[16|24].png
      	* themes/Default/images/stock-device-status-24.png
      	* themes/Default/images/stock-tool-options-24.png: new icons drawn
      	by Jimmac.
      
      	* libgimpwidgets/gimpstock.[ch]: register the new icons.
      
      	* app/gui/dialogs-constructors.c
      	* app/gui/dialogs-menu.c: use the new GIMP_STOCK_TOOLS icon.
      
      	* app/gui/image-menu.c
      	* app/gui/toolbox-menu.c: add the Tools dialog entry here as well.
      
      	* app/widgets/gimphelp-ids: s/TOOL_DIALOG/TOOLS_DIALOG/.
      03b90ade
  33. 18 Oct, 2003 1 commit
    • Michael Natterer's avatar
      added gimp_container_freeze() / _thaw() around font list reloading. · 78b61533
      Michael Natterer authored
      2003-10-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/text/gimp-fonts.c (gimp_fonts_load): added
      	gimp_container_freeze() / _thaw() around font list reloading.
      
      	* app/tools/gimp-tools.c (gimp_tools_init): added missing
      	gimp_container_freeze().
      
      	* app/widgets/gimpcontainerview.c: connect to the container's
      	"freeze" and "thaw" signals and empty / refill the view
      	accordingly. Ignore "add", "remove" and "reorder" signals while
      	the container is frozen. Fixes font list sorting after refresh and
      	speeds up refreshing of fonts, brushes, patterns etc.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpfontview.[ch]: new widget for the font list/grid.
      
      	* app/widgets/gimphelp-ids.h: added GIMP_HELP_FONT_REFRESH.
      
      	* app/gui/dialogs-constructors.c: changed accordingly.
      
      	* app/gui/Makefile.am
      	* app/gui/fonts-commands.[ch]
      	* app/gui/fonts-menu.[ch]: new files: a menu for the font view.
      
      	* app/gui/menus.c (menus_init): register the new <Fonts> menu.
      
      	* app/gui/preferences-dialog.c (prefs_dialog_new): removed the
      	fonts refreshing hack from the "Environment" page.
      78b61533
  34. 10 Oct, 2003 1 commit
    • Henrik Brix Andersen's avatar
      removed the grid parasite related functions from here ... · 4ac8c825
      Henrik Brix Andersen authored
      2003-10-10 Henrik Brix Andersen <brix@gimp.org>
      
      * app/core/gimpimage-grid.[ch]: removed the grid parasite related
      functions from here ...
      
      * app/core/gimpgrid.[ch]: ... and added them here. While I was at
      it I also changed PROP_TYPE to PROP_STYLE and added blurbs to the
      properties
      
      * app/xcf/xcf-load.c
      * app/display/gimpdisplayshell.c: changed accordingly
      
      * app/widgets/Makefile.am
      * po/POTFILES.in
      * app/widgets/widgets-types.h
      * app/widgets/gimpgrideditor.[ch]: added a new GimpGridEditor
      widget - with a work-around for the fact that
      gimp_prop_coordinated_new() doesn't accept boundaries
      
      * app/gui/grid-dialog.h
      * app/gui/grid-dialog.c (grid_dialog_new): use the new
      GimpGridEditor widget, take a GimpImage as function parameter,
      assume GimpImages always have a GimpGrid. This simplifies the grid
      dialog.
      
      * app/gui/image-commands.c
      (image_configure_grid_cmd_callback): changed accordingly
      
      * app/core/core-types.h: moved typedef GimpGrid from here ...
      
      * app/config/config-types.h: ... to here to be able to use it in
      GimpCoreConfig
      
      * app/config/gimprc-blurbs.h
      * app/config/gimpcoreconfig.[ch]: added default_grid member
      
      * app/widgets/gimphelp-ids.h
      * themes/Default/images/preferences/Makefile.am
      * themes/Default/images/default-grid.png
      * app/gui/preferences-dialog.c: added UI for specifying default
      image grid
      
      * app/core/gimpimage.c (gimp_image_new): create a GimpGrid from
      core_config->default_grid
      
      * app/gui/image-menu.c (image_menu_update): the grid/guide entries
      in <Image>/View/ should always be sensitive ...
      
      * app/display/gimpdisplayshell.c (gimp_display_shell_init):
      ... but the grid entries should be disabled by default
      4ac8c825
  35. 30 Sep, 2003 1 commit
    • Michael Natterer's avatar
      added a "Rename Saved Options" submenu and factored on-the-fly submenu · 36c83350
      Michael Natterer authored
      2003-09-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/tool-options-menu.c: added a "Rename Saved Options"
      	submenu and factored on-the-fly submenu creation out to a utility
      	function.
      
      	* app/gui/tool-options-commands.[ch]: added rename callback.
      
      	* app/widgets/gimphelp-ids.h: added GIMP_HELP_TOOL_OPTIONS_RENAME.
      
      	* app/widgets/gimptooloptionseditor.c
      	(gimp_tool_options_editor_menu_popup): pass "button = 0" to
      	gtk_menu_popup() because we show the menu on button_release, not
      	on button_press.
      36c83350
  36. 29 Sep, 2003 2 commits
    • Michael Natterer's avatar
      new function for stuff which needs to be done once, not on every · dedbe33b
      Michael Natterer authored
      2003-09-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/tool-options-menu.[ch] (tool_options_menu_setup): new
      	function for stuff which needs to be done once, not on every
      	tool_options_menu_update(). Cleanup.
      
      	* app/gui/menus.c: register it as setup_func of <ToolOptions>.
      
      	* app/gui/tool-options-commands.c: removed the "Reset"
      	implementations and activate GimpToolOptionsEditor's buttons
      	accordingly.
      
      	* app/widgets/gimphelp-ids.h: added GIMP_HELP_TOOL_OPTIONS_DELETE.
      
      	* app/widgets/gimptooloptionseditor.[ch]: moved "Reset"
      	implementations to this file. Added "Delete" button. Pop up the
      	"Save", "Restore" and "Delete" submenus of the <ToolOptions>
      	item_factory when the resp. buttons are clicked.
      dedbe33b
    • Michael Natterer's avatar
      added a GimpContainer of tool options presets. · d1ba8704
      Michael Natterer authored
      2003-09-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimptoolinfo.[ch]: added a GimpContainer of tool
      	options presets.
      
      	* app/core/gimptooloptions.[ch] (gimp_tool_options_set_property):
      	silently accept setting the *same* tool_info again.
      
      	(gimp_tool_options_build_filename): is public now.
      
      	* app/tools/gimp-tools.c (gimp_tools_restore,save): load and save
      	the presets container.
      
      	* app/gui/tool-options-dialog.[ch]: removed.
      
      	* app/gui/tool-options-commands.[ch]
      	* app/gui/tool-options-menu.[ch]: new files implementing a menu
      	for the new GimpToolOptionsEditor widget. Has submenus for saving,
      	loading, and deleting tool options to/from the
      	tool_info->options_presets container.
      
      	* app/gui/Makefile.am
      	* app/gui/dialogs-constructors.c
      	* app/gui/menus.c: changed accordingly.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimptooloptionseditor.[ch]: the tool options dialog
      	as proper widget. The "Load" and "Save" buttons still do the same
      	stuff as before. Will make them use the new presets since making
      	them do something useful was the reason for this whole change.
      
      	* app/widgets/gimphelp-ids.h: added missing help IDs for the tool
      	options dialog.
      d1ba8704
  37. 23 Sep, 2003 1 commit
    • Michael Natterer's avatar
      added a "menu_title" which is registered with each menu. · c5fd48f2
      Michael Natterer authored
      2003-09-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpmenufactory.[ch]: added a "menu_title" which is
      	registered with each menu.
      
      	* app/widgets/gimpitemfactory.[ch]: added the title to the
      	constructor and to the GimpItemFactory struct.
      
      	* app/gui/menus.c: register titles with all menus.
      
      	* app/widgets/gimpdockable.[ch]: show the tab menu, not the
      	contained dialog's menu when clicking on the menu button.
      	Embed the dialog's menu as submenu. Use the item_factory's
      	title and the dockable's stock_id for the submenu entry.
      
      	* app/widgets/gimpeditor.c: removed GtkWidget:popup_menu()
      	implementation since that's done by GimpDockable now.
      
      	* app/widgets/gimpdockbook.c: set the new menu item invisible
      	when showing the menu as tab menu.
      
      	* app/widgets/gimphelp-ids.h: added GIMP_HELP_DOCK_TAB_DETACH
      	and renamed _TAB_REMOVE to _TAB_CLOSE.
      
      	* app/gui/dialogs-menu.c: added the new menu entry for showing the
      	dialog's sub-menu. Added a "Detach" menu item, renamed "Remove" to
      	"Close". Accept both a GimpDockbook and a GimpDockable pointer as
      	"data" in dialogs_menu_update().
      
      	* app/gui/dialogs-commands.[ch]: changed accordingly. Never use
      	gtk_item_factory_popup_data_from_widget() but always the "data"
      	passed to the callbacks. Take care to not set the already active
      	preview_size, tab_style and list/grid type in the resp. callbacks
      	to avoid being called from dialogs_menu_update().
      
      	* app/gui/dialogs-constructors.c: removed separate
      	set_context_funcs and get_menu_funcs for GimpContainerView and
      	GimpContainerEditor widgets and simply use
      	gimp_container_view_get_by_dockable() to find the right widget.
      c5fd48f2