1. 11 May, 2005 1 commit
    • Michael Natterer's avatar
      Some dock refactoring which separates the docking logic from active image · 1f1305c3
      Michael Natterer authored
      2005-05-11  Michael Natterer  <mitch@gimp.org>
      	Some dock refactoring which separates the docking logic from
      	active image and UI manager stuff:
      	* app/widgets/gimpmenudock.[ch]: new widget renamed from
      	GimpImageDock, zero changes except the name change.
      	* app/widgets/gimpimagedock.[ch]: new widget derived from
      	GimpDock. Keeps the UI manager.
      	* app/widgets/gimpdock.[ch]: removed the UI manager. GimpDock only
      	contains the basic docking logic again.
      	* app/widgets/gimpmenudock.[ch]
      	* app/widgets/gimptoolbox.[ch]: derive them from GimpImageDock.
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/actions/dialogs-commands.c
      	* app/actions/dock-actions.c
      	* app/actions/dock-commands.c
      	* app/actions/dockable-commands.c
      	* app/dialogs/dialogs-constructors.c: changed accordingly.
  2. 31 May, 2004 1 commit
    • 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.
  3. 10 May, 2004 1 commit
    • Michael Natterer's avatar
      Started making the toolbox configurable. Addresses bug #105764. Not · da0de087
      Michael Natterer authored
      2004-05-10  Michael Natterer  <mitch@gimp.org>
      	Started making the toolbox configurable.
      	Addresses bug #105764. Not finished yet.
      	* app/core/gimptoolinfo.[ch]: renamed "in_toolbox" to "visible"
      	and made it a GObject property.
      	* app/tools/gimp-tools.[ch]: added new function
      	gimp_tools_get_default_order() which returns a GList of tool
      	* app/actions/tools-actions.c
      	* app/actions/tools-commands.[ch]: added actions & callbacks for
      	toggling the "visible" boolean and for resetting all tools.
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimptoolview.[ch]: new widget which allows to
      	toggle a tool's visibility and to reorder the tools.
      	* app/widgets/gimptoolbox.[ch]: removed member "GtkWidget *trash"
      	and pack all tool buttons into the same wrap box. Connect to
      	"reoder" of the tool container and to "notify::visible" of all
      	tool infos and update the toolbox accordingly.
      	* app/gui/dialogs-constructors.c: create a GimpToolView for the
      	tools list/grid.
      	* app/menus/menus.c: register a <Tools> menu for the dialog above.
      	* menus/Makefile.am
      	* menus/tools-menu.xml: added the menu.
  4. 11 Jun, 2003 1 commit
  5. 14 Mar, 2002 1 commit
    • Michael Natterer's avatar
      g_strdup() the stock_id passed to gimp_tool_info_new() because the · b8798408
      Michael Natterer authored
      2002-03-14  Michael Natterer  <mitch@gimp.org>
      	* app/core/gimptoolinfo.c: g_strdup() the stock_id passed to
      	gimp_tool_info_new() because the caller's memory may disappear
      	after registering the tool (tool modules).
      	Made a GimpDock out of the toolbox:
      	* app/gui/Makefile.am
      	* app/gui/color-area.[ch]
      	* app/gui/indicator-area.[ch]
      	* app/gui/toolbox.[ch]: removed...
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimptoolbox-color-area.[ch]
      	* app/widgets/gimptoolbox-indicator-area.[ch]
      	* app/widgets/gimptoolbox.[ch]: ...and added here.
      	* app/widgets/gimpdock.[ch]: don't set a minimal width. Added a
      	"destroy_if_empty" boolean so we can prevent destruction of the
      	toolbox if it's last dockable is removed. Added gimp_dock_construct()
      	which is called from GimpImageDock and GimpToolbox.
      	* app/widgets/gimpimagedock.[ch]: Default to not showing the image
      	menu, set a minimal width here, misc. minor cleanup.
      	* app/widgets/gimpdockbook.c: some more GIMP_IS_IMAGE_DOCK()
      	checks, fixed dnd widget creation.
      	* app/widgets/gimpdialogfactory.[ch]: changed
      	gimp_dialog_factories_toggle() to take just the toolbox_factory as
      	parameter. When restoring the session use the created dock's
      	dialog factory to create dockables, not the the factory we
      	created the dock from (for the toolbox).
      	* app/display/gimpdisplayshell-callbacks.c: changed accordingly.
      	* app/gui/dialogs.[ch]: create an own dialog factory for the toolbox
      	and set dialogs_toolbox_new() as it's new_dock_func.
      	* app/gui/dialogs-constructors.[ch]: changed dialogs_toolbox_get()
      	* app/gui/dialogs-commands.[ch]: added dialogs_show_toolbox(), ckeck
      	if a dock is really a GimpImageDock before casting.
      	* app/gui/gui.c
      	* app/gui/menus.c
      	* app/widgets/gimppaletteeditor.c: changed accordingly.
      	* app/gui/color-notebook.c
      	* app/gui/color-select.c
      	* app/gui/colormap-dialog.c
      	* app/gui/palette-editor-commands.c: removed useless inclusion of
      	* themes/Default/gtkrc: set "gimp-dock-style" for GimpToolbox widgets.
  6. 10 Mar, 2002 1 commit
    • Michael Natterer's avatar
      removed type checking casts from macros which return parts of · 1f08f9d9
      Michael Natterer authored
      2002-03-10  Michael Natterer  <mitch@gimp.org>
      	* libgimpwidgets/gimpwidgets.h: removed type checking casts from
      	macros which return parts of pseudo-widgets.
      	* app/widgets/gimpbrushfactoryview.c: changed accordingly.
      	* app/widgets/gimpdialogfactory.c: added a "dispose"
      	implementation used to destroy all dialogs the factory has
      	* app/gui/toolbox.[ch]: removed toolbox_free(), removed the static
      	"toolbox_shell" variable, set the active tool correctly on
      	creation, don't show the window here (fixes session menagement),
      	take the vbox' spacing into account when calculating the window's
      	resize hints.
      	* app/gui/gui.c: don't include "toolbox.h", don't call
      	* app/widgets/gimpfontselection.c: set the width of the entry to
      	16 chars on creation so it doesn't fall back to it's insanely
      	large default width, minor stuff.
      	* app/tools/gimptexttool.c
      	* app/tools/selection_options.c: some more scale_entries.
  7. 25 Oct, 2001 1 commit
    • Michael Natterer's avatar
      generate app/file/Makefile · 8b5b8df8
      Michael Natterer authored
      2001-10-25  Michael Natterer  <mitch@gimp.org>
      	* configure.in: generate app/file/Makefile
      	* app/Makefile.am
      	* app/file-open.[ch]
      	* app/file-save.[ch]
      	* app/file-utils.[ch]: removed...
      	* app/file/Makefile.am
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/file/file-utils.[ch]: ...and added here.
      	* app/gui/file-commands.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* tools/pdbgen/pdb/fileops.pdb: changed includes accordingly.
      	* app/app_procs.[ch]: removed app_exit_finish() and
      	app_exit_finish_done() from the public API, call gtk_main() here,
      	pass "no_data" to gimp_new() and "restore_session" to
      	* app/main.c: removed global variable "double_speed", don't
      	call gtk_main() in main.c. Added some missing log domains.
      	* app/appenv.h: removed "double_speed".
      	* app/core/gimp.[ch]: added "gboolean no_data" property which
      	must be passed to gimp_new().
      	* app/display/gimpdisplay-foreach.[ch]: added gdisplays_set_busy()
      	and gdisplays_unset_busy().
      	* app/gui/about-dialog.c: don't include "appenv.h", declare
      	"double_speed" extern.
      	* app/gui/brush-select.[ch]
      	* app/gui/gradient-select.[ch]
      	* app/gui/palette-select.[ch]
      	* app/gui/pattern-select.[ch]: made the list of dialogs and the
      	global selection dialogs private. Added functions which get a
      	dialog by PDB callback_name. Pass a "Gimp" and the callback_name
      	to the constructors. Don't include "app_procs.h" for "the_gimp"
      	and "appenv.h" for "no_data" any more. Use the passed "Gimp"
      	instead and look at gimp->no_data.
      	* app/gui/toolbox.[ch]: pass a "Gimp" to the constructor.
      	* app/gui/gui.[ch]: use the new gdisplays_[un]set_busy() functions,
      	use the passed "Gimp" all over the place, don't include
      	"appenv.h" and "app_procs.h". gui_really_quit_dialog() takes
      	a "quit_func" callback now and calls it instead of calling
      	app_exit_finish() (which is now private) directly.
      	* app/gui/convert-dialog.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/palette-import-dialog.c
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb: changed accordingly.
      	* app/pdb/brush_select_cmds.c
      	* app/pdb/fileops_cmds.c
      	* app/pdb/gradient_select_cmds.c
      	* app/pdb/pattern_select_cmds.c: regenerated.
      2001-10-25  Michael Natterer  <mitch@gimp.org>
      	* POTFILES.in: app/file-*.c -> app/file/file-*.c
  8. 01 May, 2001 1 commit
    • Michael Natterer's avatar
      removed more GUI initialisation code. · d010bb5f
      Michael Natterer authored
      2001-05-01  Michael Natterer  <mitch@gimp.org>
      	* app/app_procs.c: removed more GUI initialisation code.
      	* app/color_transfer.c: removed useless includes.
      	* app/gui/brush-editor.[ch]
      	* app/gui/dialogs-constructors.c:
      	s/BrushEditGeneratedWindow/BrushEditor/, s/begw/brush_editor/, made
      	the brush preview of the editor autoresizing.
      	* app/gui/dialogs.h: removed "extern" declaration of non-existant
      	* app/gui/gui.[ch]: new function gui_post_init() which shows the
      	tips dialog.
      	* app/gui/tips-dialog.c: made signal handling nicer (clean up in a
      	"destroy" handler).
      	* app/gui/toolbox.[ch]: removed toolbox_raise(), removed the help
      	system (de)initialisation code which is now in gui.c, cleanup.
  9. 17 Apr, 2001 1 commit
    • Michael Natterer's avatar
      app/session.[ch] removed the old dialog session management code... · f283b957
      Michael Natterer authored
      2001-04-17  Michael Natterer  <mitch@gimp.org>
      	* app/session.[ch]
      	* app/gimprc.c: removed the old dialog session management code...
      	* app/widgets/gimpdialogfactory.[ch]: ...and manage all dialogs here.
      	* app/gui/dialogs-constructors.[ch]: dialog factory compliant
      	constructors for all session managed toplevel dialogs.
      	* app/brush_select.[ch]
      	* app/devices.[ch]
      	* app/docindex.[ch]
      	* app/errorconsole.[ch]
      	* app/gradient_select.[ch]
      	* app/info_dialog.c
      	* app/lc_dialog.[ch]
      	* app/palette.[ch]
      	* app/pattern_select.[ch]
      	* app/toolbox.[ch]
      	* app/tools/tool_options_dialog.[ch]: all dialog constructors have
      	to return the dialog now (even the legacy ones that will go away).
      	Removed the session management code as this is now done for the
      	dialogs, not by them.
      	* app/app_procs.c
      	* app/color_select.c
      	* app/commands.[ch]
      	* app/indicator_area.c
      	* app/menus.c
      	* app/palette_select.c
      	* app/preferences_dialog.c
      	* app/gui/dialogs.c
      	* app/gui/dialogs-commands.[ch]
      	* app/gui/gui.c
      	* app/tools/gimptool.c
      	* app/widgets/gimpdock.c: changed accordingly.
  10. 24 Feb, 2001 1 commit
    • Michael Natterer's avatar
      added cmd_callbacks for the toolbox and the preferences dialog. · 04f71318
      Michael Natterer authored
      2001-02-24  Michael Natterer  <mitch@gimp.org>
      	* app/commands.[ch]: added cmd_callbacks for the toolbox and
      	the preferences dialog.
      	* app/context_manager.c: cleanup.
      	* app/gimppreview.[ch]: made gimp_preview_render() public.
      	* app/gimptoolinfopreview.c
      	* app/tools/gimptoolinfo.c: the tool previews look nice now but
      	are still ugly implemented (it renders tons of temp_bufs on each
      	state change).
      	* app/indicator_area.[ch]: pass a context to the constructor.
      	* app/menus.c: don't call the toolbox and the prefs dialog
      	directly but dispatch via commands.[ch]
      	* app/preferences_dialog.[ch]
      	* app/toolbox.[ch]: renamed the constructor / raise function, cleanup.
      	* app/tools/color_picker.c: tried to get the shortcut working again.
      	* app/tools/paint_options.c: the brush dialog's paint options
      	are shown/hidden from the context manager now.
  11. 22 Jan, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am new files containing most of the code from · afebbc2f
      Michael Natterer authored
      2001-01-22  Michael Natterer  <mitch@gimp.org>
      	* app/Makefile.am
      	* app/toolbox.[ch]: new files containing most of the code
      	from app/interface.[ch]
      	* app/interface.[ch]: only contains create_display_shell() now.
      	Needs to be somehow merged with other arbitrarily named display
      	files around.
      	* app/app_procs.c
      	* app/menus.c
      	* po/POTFILES.in: changed accordingly.
      	* app/asupsample.c
      	* app/gradient.c
      	* app/tile.c: cleanup.
  12. 31 Dec, 2000 1 commit
    • Michael Natterer's avatar
      app/airbrush.[ch] app/bezier_select.c app/bezier_selectP.h app/blend.[ch] · 2db88815
      Michael Natterer authored
      2000-12-31  Michael Natterer  <mitch@gimp.org>
      	* app/airbrush.[ch]
      	* app/bezier_select.c
      	* app/bezier_selectP.h
      	* app/blend.[ch]
      	* app/boundary.h
      	* app/brightness_contrast.[ch]
      	* app/bucket_fill.c
      	* app/by_color_select.c
      	* app/clone.[ch]
      	* app/color_balance.c
      	* app/color_picker.c
      	* app/commands.c
      	* app/convolve.[ch]
      	* app/crop.c
      	* app/crop.h
      	* app/curves.c
      	* app/dodgeburn.[ch]
      	* app/edit_selection.[ch]
      	* app/ellipse_select.c
      	* app/eraser.[ch]
      	* app/flip_tool.[ch]
      	* app/free_select.[ch]
      	* app/fuzzy_select.[ch]
      	* app/gdisplay.c
      	* app/gimage.c
      	* app/histogram_tool.[ch]
      	* app/hue_saturation.[ch]
      	* app/image_map.[ch]
      	* app/ink.[ch]
      	* app/iscissors.c
      	* app/levels.c
      	* app/magnify.[ch]
      	* app/move.c
      	* app/nav_window.[ch]
      	* app/paint_core.[ch]
      	* app/paintbrush.[ch]
      	* app/path_bezier.[ch]
      	* app/path_tool.c
      	* app/pencil.[ch]
      	* app/perspective_tool.[ch]
      	* app/posterize.c
      	* app/rect_select.[ch]
      	* app/rotate_tool.[ch]
      	* app/scale_tool.[ch]
      	* app/selection.[ch]
      	* app/shear_tool.[ch]
      	* app/smudge.[ch]
      	* app/text_tool.[ch]
      	* app/threshold.c
      	* app/tools.[ch]
      	* app/transform_core.[ch]: removed the "gdisp_ptr" madness and
      	useless casts all over the place. Introduced a "PaintState" enum
      	instead of #define's. Various cleanups.
  13. 29 Dec, 2000 1 commit
    • Michael Natterer's avatar
      app/Makefile.am app/channel_pvt.h app/drawable_pvt.h app/gdisplayF.h · 8d6c335f
      Michael Natterer authored
      2000-12-29  Michael Natterer  <mitch@gimp.org>
      	* app/Makefile.am
      	* app/channel_pvt.h
      	* app/drawable_pvt.h
      	* app/gdisplayF.h
      	* app/gimpdrawableP.h
      	* app/gimpimageP.h
      	* app/layer_pvt.h
      	* app/toolsF.h: removed these files.
      	* app/apptypes.h
      	* tools/pdbgen/enums.pl: added tons of opaque typedefs and enums.
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/display.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/tools.pdb
      	* app/*: chainsaw #include cleanup:
      	- Never (never!!) include stuff in header files except where we
      	  need access to structures' contents (like derived objects).
      	- Added prototypes and proper formating in many files.
      	- The #include order in *all* *.c files is as follows:
      	#include "config.h"
      	#include <system stuff>
      	#include <gtk/gtk.h>
      	#include "apptypes.h"
      	#include "gimp stuff"
      	#include "libgimp stuff"
      	#include "libgimp/gimpintl.h"
      	By following this scheme we can easily see a file's dependencies
      	from it's #include's and can grep for the inclusion to find out
      	where a file is used.
      	* tools/pdbgen/app.pl: changed to follow the include scheme above.
      	* libgimp/Makefile.am
      	* libgimp/gimpuitypes.h: new file, included from libgimp/gimpui.h
      	and from app/apptypes.h.
      	* libgimp/gimpcolorbutton.[ch]
      	* libgimp/gimpdialog.[ch]
      	* libgimp/gimphelpui.[ch]
      	* libgimp/gimpparasite.[ch]
      	* libgimp/gimppatheditor.[ch]
      	* libgimp/gimpprotocol.c
      	* libgimp/gimpquerybox.[ch]
      	* libgimp/gimpsizeentry.[ch]
      	* libgimp/gimptypes.h
      	* libgimp/gimpui.h
      	* libgimp/gimpunit.h
      	* libgimp/gimpunitmenu.[ch]
      	* libgimp/gimpwidgets.[ch]: changed accordingly.
      	* plug-ins/FractalExplorer/Dialogs.c
      	* plug-ins/gdyntext/message_window.c
      	* plug-ins/imagemap/imap_default_dialog.c
      	* plug-ins/imagemap/imap_file.c: these files used to include
      	"libgimp/gimpui.h" without including "libgimp/gimp.h". This is
      	no longer possible because the libgimpui headers don't inlcude
      	"libgimp/gimpunit.h" any more.
  14. 14 Jun, 1998 1 commit
    • Owen Taylor's avatar
      Added new files for handling scan-converted convex polygons. (From gsumi) · b0e08ede
      Owen Taylor authored
      Sun Jun 14 18:37:06 1998  Owen Taylor  <otaylor@gtk.org>
      	* Makefile.am app/blob.[ch] (blob_bounds): Added new files for
      	handling scan-converted convex polygons. (From
      	gsumi) (these will be moved out to a plug-in tool directory
      	when such a thing exists)
      	* app/ink.[ch]: New tool for drawing with a hard-edged
      	pressure and tilt-sensitive brush.
      	* gimprc.c interface.c paint_core.c pixmaps.h tools.[ch]
      	All the modifications for adding a new tool. We need
      	to fix this.
  15. 13 Apr, 1998 1 commit
  16. 24 Nov, 1997 1 commit