1. 10 May, 2002 1 commit
    • Michael Natterer's avatar
      added a read-only property for the display's image, so it can be retreived · 359990db
      Michael Natterer authored
      2002-05-10  Michael Natterer  <mitch@gimp.org>
      	* app/display/gimpdisplay.c: added a read-only property for the
      	display's image, so it can be retreived by the core, which
      	treats displays as simple GimpObjects.
      	* app/core/gimpcontext.c: made context->display an object
      	property, not just gpointer. Connect to the "remove" signal of
      	gimp->displays to get notified of disappearing displays. Removed
      	the EEKWrapper and get the display's gimage with g_object_get().
      	* app/widgets/gimpimagedock.[ch]: added image_dock->display_container
      	and require it being passed in the constructor. Do voodoo things
      	in the "image_changed" and "display_changed" callbacks to ensure
      	that the dock doesn't end up with no display even if the active
      	image has one. Added a style property for the image menu's preview
      	* app/gui/dialogs-commands.c (dialogs_menu_update): set the
      	"View as List" and "View as Grid" items insensitive if the
      	other view type doesn't exist. Hide them if the view cannot
      	be classified as "list" or "grid" at all. Also hide the
      	"Preview Size" submenu if it's pointless for the view.
      	* app/gui/dialogs-constructors.c: added a special tab for the
      	navigation dialog. Will propbaby add dockable->stock_id to
      	generalize this kind of tab. Pass gimp->displays to
      	* app/gui/menus.c: reordered the "<Dialogs>" factory entries,
      	added more stock icons, cleanup.
      	* etc/gtkrc_user
      	* themes/Default/gtkrc: document usage of GimpImageDock's
      	"menu_preview_height" property.
  2. 21 Mar, 2002 1 commit
    • Michael Natterer's avatar
      ./mitch --sanitize-identifier-namespace · ffcb0bfa
      Michael Natterer authored
      2002-03-20  Michael Natterer  <mitch@gimp.org>
      	./mitch --sanitize-identifier-namespace
      	* app/core/gimpcontext.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/dialogs-commands.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/dialogs.c
      	* app/gui/edit-commands.c
      	* app/gui/gui.c
      	* app/gui/menus.c
      	* app/gui/vectors-commands.c
      	* app/gui/view-commands.c
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimpellipseselecttool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppaintbrushtool.c
      	* app/tools/gimppathtool.c
      	* app/tools/gimppenciltool.c
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimpsmudgetool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimpthresholdtool.c
      	* app/tools/gimpvectortool.c
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimptoolbox-indicator-area.c
      	* app/widgets/gimptoolbox.c: s/gimp:/gimp-/g and s/_/-/g for all
      	identifier strings (e.g. gimp:eraser_tool -> gimp-eraser-tool,
      	gimp:layer-list -> gimp-layer-list, ...)
      	* plug-ins/tools/common/gimpbrushselecttool.c:
      	Don't quite remember why I introduced the "gimp:" prefix in the
      	first place, but we can always add it back if we need it (for
      	whatever reason)
      	You may want to edit your ~/.gimp-1.3/sessionrc and devicerc or
      	all session settings will be lost due to parse errors.
  3. 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.
  4. 27 Feb, 2002 1 commit
    • Michael Natterer's avatar
      themes/Default/images/stock-button-stroke.png · 780b93d9
      Michael Natterer authored
      2002-02-27  Michael Natterer  <mitch@gimp.org>
      	* themes/Default/images/stock-button-stroke.png
      	* themes/Default/images/stock-button-to-path.png
      	* themes/Default/images/stock-button-to-selection.png: removed.
      	* themes/Default/images/stock-button-path-stroke.png
      	* themes/Default/images/stock-button-selection-stroke.png
      	* themes/Default/images/stock-button-selection-to-path.png: new ones.
      	* themes/Default/Makefile.am
      	* themes/Default/images/Makefile.am
      	* libgimpwidgets/gimpstock.[ch]: changed accordingly.
      	* themes/Default/images/stock-button-selection-add.png
      	* themes/Default/images/stock-button-selection-intersect.png
      	* themes/Default/images/stock-button-selection-replace.png
      	* themes/Default/images/stock-button-selection-subtract.png: cropped.
      	* themes/Default/images/tools/stock-tool-button-brightness-contrast.png:
      	a nicer one from Ville Pätsi.
      	* app/gui/menus.c
      	* app/widgets/gimpvectorslistview.c: use the new stock items.
      	* app/gui/dialogs-commands.c: create the new paths dialog, not the
      	old one in dialogs_lc_cmd_callback().
      	* app/gui/vectors-commands.c: some more s/Vectors/Path/ in
      	user-visible strings.
      	* app/app_procs.c: some test code for the filename -> uri migration.
  5. 30 Nov, 2001 1 commit
    • Michael Natterer's avatar
      app/core/Makefile.am new files: the QMask stuff stripped from GUI code. · bba84137
      Michael Natterer authored
      2001-11-30  Michael Natterer  <mitch@gimp.org>
      	* app/core/Makefile.am
      	* app/core/gimpimage-qmask.[ch]: new files: the QMask stuff
      	stripped from GUI code. Added gimp_image_qmask_invert().
      	* app/core/gimpimage.[ch]: removed the QMask functions.
      	* app/display/Makefile.am
      	* app/display/gimpdisplayshell-qmask.[ch]: removed.
      	* app/gui/Makefile.am
      	* app/gui/qmask-commands.[ch]: new files for the new QMask item
      	factory callbacks and the qmask query dialog.
      	* app/gui/menus.c: added a context menu for the QMask button.
      	* app/display/gimpdisplayshell.c
      	* app/display/gimpdisplayshell-handlers.c: don't include the qmask
      	* app/display/gimpdisplayshell-callbacks.[ch]: Moved the 2 qmask
      	callbacks here. Don't popup the dialog on double_click. Show
      	the contect menu on right-click.
      	* app/display/gimpdisplayshell-callbacks.[ch]:
      	gimp_display_shell_canvas_events(): removed the hack of
      	conntecting "key_press_event" to gtk_true() while a tool is
      	active. Instead, check for (event & GDK_BUTTON1_MASK) in the
      	key_press and key_release handlers and stop signal emission. Save
      	the modifier state on "button_press" and restore it after
      	Changed the way context menus are updated/shown:
      	- removed GimpContainerContextFunc.
      	- pass around item factory identifiers (e.g. "<Brushes>")
      	- added voodoo to update the menus before showing them.
      	* app/widgets/gimpitemfactory.[ch]: gimp_item_factory_new(): take
      	a GimpItemFactoryUpdateFunc parameter, attach it as data to the
      	factory and use it to update the menu in
      	* app/widgets/gimpwidgets-utils.[ch]: removed
      	gimp_item_factory_popup_with_data() here.
      	* app/widgets/gimpbrushfactoryview.[ch]
      	* app/widgets/gimpbufferview.[ch]
      	* app/widgets/gimpcontainereditor.[ch]
      	* app/widgets/gimpdatafactoryview.[ch]
      	* app/widgets/gimpdocumentview.[ch]
      	* app/widgets/gimpdrawablelistview.[ch]: use item_factory
      	identifier strings all over the place.
      	* app/widgets/gimpdockbook.c: removed the menu update code, it's
      	now in gui/dialogs-commands.c.
      	* app/gui/brushes-commands.[ch]
      	* app/gui/buffers-commands.[c]
      	* app/gui/channels-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/layers-commands.[ch]
      	* app/gui/palettes-commands.[ch]
      	* app/gui/patterns-commands.[ch]: removed all show_context_menu()
      	functions and made the update functions public. Changed all
      	update functions to use the gimp_item_factory_set_foo() methods
      	instead of gimp_menu_item_set_foo().
      	* app/gui/menus.c: pass the update functions to the
      	* app/gui/dialogs-constructors.c: pass item factory identifiers to
      	all view constructors.
      	* app/gui/gradient-editor.c: show the context menu using the new
      	* app/gui/toolbox.c: no need to include "dialogs-commands.h".
  6. 29 Nov, 2001 1 commit
    • Michael Natterer's avatar
      put the last_opened menu entries in a submenu called "Open Recent", added · b017fa15
      Michael Natterer authored
      2001-11-29  Michael Natterer  <mitch@gimp.org>
      	* app/gui/menus.c: put the last_opened menu entries in a
      	submenu called "Open Recent", added items to create a dock
      	with some useful tabs in it ("Brushes, Patterns & Stuff..."),
      	* app/gui/dialogs-commands.[ch]: added a callback for the new
      	"Stuff" menu entry.
      	* app/gui/dialogs-constructors.h: removed dialogs_lc_get()
      	declaration because it doesn't exist.
  7. 23 Nov, 2001 1 commit
    • Michael Natterer's avatar
      removed a useless g_return_if_fail(). · d463a5ef
      Michael Natterer authored
      2001-11-23  Michael Natterer  <mitch@gimp.org>
      	* app/core/gimpcontainer.c: removed a useless g_return_if_fail().
      	* app/widgets/gimpcontainereditor.h: removed GimpViewType enum.
      	* app/widgets/widgets-types.h: added it here.
      	* app/widgets/gimpcontainerview-utils.[ch]: added a utility function
      	which gets the GimpContainerView out of a GimpDockable.
      	* app/widgets/gimpdialogfactory.[ch]: added support for saving and
      	loading of each GimpDockable's preview size. Store the dialog's
      	default preview size in the GimpDialogFactoryEntry.  Pass the
      	preview_size to each created dialog.
      	* app/gui/menus.c: added menu items for setting the preview_size
      	and switching between list and grid view. Removed the item
      	overkill in the "Add Tab" submenu.
      	* app/gui/dialogs-commands.[ch]: added callbacks for the new items.
      	* app/widgets/gimpdockbook.c: set the item's state before showing
      	the menu.
      	* app/errors.c
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs.c
      	* app/gui/edit-commands.c
      	* app/gui/gui.c
      	* app/gui/indicator-area.c
      	* app/gui/toolbox.c: changed accordingly.
      	* app/tools/selection_options.[ch]: cleaned up the selection
      	options and added some tooltips. Much more to do...
  8. 17 Aug, 2001 1 commit
    • Michael Natterer's avatar
      added app/display/ and app/plug-in/. Empty for now except for the types · 01b780d6
      Michael Natterer authored
      2001-08-17  Michael Natterer  <mitch@gimp.org>
      	* configure.in: added app/display/ and app/plug-in/. Empty for
      	now except for the types files.
      	* app/Makefile.am
      	* app/appenums.h
      	* app/apptypes.h: removed.
      	* app/display/Makefile.am
      	* app/display/display-types.h
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-types.h
      	* app/gui/Makefile.am
      	* app/gui/gui-types.h
      	* app/pdb/Makefile.am
      	* app/pdb/pdb-types.h: new files for typedefs.
      	* app/appenv.h: added MessageHandlerType and StackTraceMode here.
      	* app/undo_types.h: moved undo struct typedefs here.
      	* app/tools/tools-types.h
      	* app/core/core-types.h: added some enums and Tattoo here
      	(renamed to GimpTattoo).
      	* app/gdisplay.h: temp_hack: #include "display/display-types.h"
      	* app/gimphelp.c: s/gtk_idle_add/g_idle_add/
      	* app/gimprc.c: don't use "gimprc" in token handlers but the
      	passed "val1p" and "val2p".
      	* app/image_map.[ch]: cleanup in preparation of making a GObject
      	out of it.
      	* app/base/pixel-region.[ch]: no need to pass the
      	PixelRegionIterator around as void pointer.
      	* app/core/gimp.[ch]
      	* app/core/gimpcontext.[ch]
      	* app/core/gimptoolinfo.[ch]
      	* app/tools/tool_manager.c
      	* app/widgets/gimpdnd.c: added the standard_tool_info to the Gimp
      	* app/batch.c
      	* app/file-open.c
      	* app/file-save.c
      	* app/file-utils.c
      	* app/interface.c
      	* app/main.c
      	* app/path.[ch]
      	* app/pathP.h
      	* app/plug_in.h
      	* app/core/gimpdrawable.[ch]
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage.[ch]
      	* app/core/gimplayer.c
      	* app/gui/color-area.c
      	* app/gui/color-notebook.c
      	* app/gui/colormap-dialog.c
      	* app/gui/dialogs-commands.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/error-console-dialog.c
      	* app/gui/gradient-editor.c
      	* app/gui/gradient-select.c
      	* app/gui/indicator-area.c
      	* app/gui/info-dialog.c
      	* app/gui/palette-editor.c
      	* app/gui/palette-select.c
      	* app/gui/pattern-select.c
      	* app/gui/session.c
      	* app/gui/splash.c
      	* app/gui/view-commands.c
      	* app/tools/gimpinktool-blob.c
      	* app/widgets/gimpcolorpanel.c
      	* app/widgets/gimpdockbook.c
      	* app/widgets/gimppreview.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* app/xcf/xcf.c: changed accordingly: s/Tattoo/GimpTattoo/, include
      	the new types files, include <glib-object.h> instead of >gtk/gtk.h>.
      	Bad hacks to get rid of SELECTION_OFF and friends in core/ (will
      	be replaced ba a signal soon).
      	* tools/pdbgen/Makefile.am: changed list of headers scanned for
      	enums accordingly.
      	* app/pdb/procedural_db.c
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/display.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb: same fixes as above, added
      	hacks to ensure that all foo-types.h files are included before all
      	other gimp internal includes, include "pdb-types.h" unconditionally.
      	* tools/pdbgen/enums.pl
      	* app/pdb/*_cmds.c: regenerated.
  9. 24 Jul, 2001 1 commit
    • Michael Natterer's avatar
      Port to glib/gtk+ 2.0 episode I (every segfault has it's beginning) · 06b16890
      Michael Natterer authored
      2001-07-24  Michael Natterer  <mitch@gimp.org>
      	Port to glib/gtk+ 2.0 episode I (every segfault has it's beginning)
      	* configure.in: require glib/gtk+ >= 1.3.7, commented out the
      	gtkxmhtml stuff.
      	From now on, you will need glib, pango, atk and gtk+ HEAD from CVS
      	to hack or use GIMP HEAD.
      	Beware, it crashes randomly :)
      	* app/core/Makefile.am
      	* app/core/gimpmarshal.list: new file plus rules to generate
      	gimpmarshal.[ch] from it.
      	* app/core/*
      	* app/tools/*
      	* app/widgets/*
      	* libgimpwidgets/*: started to use the glib object system. All
      	core/ objects are still gtk objects however. All signals are
      	created using g_signal_new(). There are many gtk+ artefacts left.
      	Finally, we will _not_ use the gtk_signal_foo() wrappers and
      	friends any more.
      	* app/colormaps.c
      	* app/devices.[ch]
      	* app/disp_callbacks.c
      	* app/errorconsole.c
      	* app/file-save.[ch]
      	* app/interface.c
      	* app/module_db.c
      	* app/nav_window.c
      	* app/ops_buttons.c
      	* app/scroll.c
      	* app/user_install.c
      	* app/gui/about-dialog.c
      	* app/gui/brush-editor.c
      	* app/gui/brushes-commands.c
      	* app/gui/color-notebook.c
      	* app/gui/colormap-dialog.c
      	* app/gui/dialogs-commands.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/file-commands.c
      	* app/gui/file-dialog-utils.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-open-dialog.[ch]
      	* app/gui/file-save-dialog.c
      	* app/gui/gradient-editor.c
      	* app/gui/gradients-commands.c
      	* app/gui/image-commands.c
      	* app/gui/info-dialog.[ch]
      	* app/gui/layer-select.c
      	* app/gui/layers-commands.c
      	* app/gui/menus.c
      	* app/gui/offset-dialog.c
      	* app/gui/palette-editor.c
      	* app/gui/palettes-commands.c
      	* app/gui/patterns-commands.c
      	* app/gui/preferences-dialog.c
      	* app/gui/resize-dialog.[ch]
      	* app/gui/splash.c
      	* app/gui/tips-dialog.c
      	* app/gui/tool-options-dialog.c
      	* app/gui/toolbox.c
      	* app/gui/tools-commands.c
      	* libgimp/gimpbrushmenu.c
      	* libgimp/gimpmenu.c
      	* libgimp/gimppatternmenu.c
      	* libgimp/gimpui.c
      	* libgimpbase/gimpenv.c: tons and tons of changes like "const
      	gchar*", switch from GdkDeviceInfo to GdkDevice (very incomplete
      	and currently disables), lots of s/gtk_signal/g_signal/,
      	removal/replacement of deprecated stuff,
      	s/GtkSignalFunc/GCallback/ and lots of small changes and fixes
      	while I was on it, zillions of warnings left...
      	* modules/Makefile.am: disabled the water color selector
      	temporarily (XInput issues).
      	* plug-ins/Makefile.am
      	* plug-ins/common/.cvsignore
      	* plug-ins/common/Makefile.am
      	* plug-ins/common/plugin-defs.pl: simply excluded all plug-ins
      	which did not build (including Script-Fu). They are trivial to
  10. 15 Jul, 2001 1 commit
    • Michael Natterer's avatar
      don't use the global "the_gimp" variable. · b280b493
      Michael Natterer authored
      2001-07-15  Michael Natterer  <mitch@gimp.org>
      	* app/core/gimp.c: don't use the global "the_gimp" variable.
      	* app/core/gimpimage-convert.c: don't update the display here.
      	* app/gui/gui.c: connect to the images' "mode_changed" signal
      	and update here.
      	* app/gui/brush-editor.[ch]
      	* app/gui/gradient-editor.[ch]
      	* app/gui/palette-editor.[ch]: pass a "Gimp" pointer to all
      	editors. Added an palette_name entry to the palette editor.
      	* app/gui/colormap-dialog.[ch]: removed all the dialog stuff and
      	made the constructor return a vbox so it can be integrated in a
      	dockable. Lots of cleanup and removal of anqiuqe aretfacts.
      	* app/gui/dialogs-constructors.[ch]: wrap the colormap dialog in
      	a dockable.
      	* app/gui/dialogs-commands.[ch]
      	* app/gui/dialogs.c
      	* app/gui/menus.c: integrate the new dockable, made the "Brushes.."
      	etc. menu entries create dockbles. Moved the old dialogs and the
      	test menu entries to "Old + Testing" and removed N_() so the .po
      	files stay cruft-free.
      	* app/gui/test-commands.[ch]: removed lots of stuff which is not
      	"testing" any more.
  11. 02 Jul, 2001 1 commit
    • Michael Natterer's avatar
      app/gui/dialogs-commands.[ch] added dialogs_toggle_auto_cmd_callback() · 8a6f5a10
      Michael Natterer authored
      2001-07-02  Michael Natterer  <mitch@gimp.org>
      	* app/gui/dialogs-commands.[ch]
      	* app/gui/menus.c: added dialogs_toggle_auto_cmd_callback() which
      	toggles GimpImageDock's "Auto" button.
      	* app/gui/dialogs.c: ref/sink the global dialog factories.
      	* app/widgets/gimpdialogfactory.[ch]: added some comments, some
      	cleanups and additional checks. Factored out the "aux-info" stuff
      	to separate functions.
      	* app/widgets/gimpdockbook.c: set the state of the "Auto Follow
      	Active Image" menu item.
      	* app/widgets/gimpimagedock.[ch]: added a gboolean for
      	"show_image_menu" so we don't need to fiddle around with the
      	widgets to get this info. Added
  12. 29 Jun, 2001 1 commit
    • Michael Natterer's avatar
      removed GimpFillType. · d81b47ce
      Michael Natterer authored
      2001-06-29  Michael Natterer  <mitch@gimp.org>
      	* app/appenums.h: removed GimpFillType.
      	* app/gimprc.c: parse the session-info's new "aux-info" field.
      	* app/global_edit.[ch]: removed the old "Paste Named" dialog and
      	prefixed all functions with "gimp_".
      	* app/core/core-types.h: added GimpFillType.
      	* app/core/gimpbrush.[ch]: new signal "spacing_changed".
      	* app/gui/Makefile.am
      	* app/gui/tools-commands.[ch]: one more file cut out of commands.[ch].
      	* app/gui/commands.[ch]: removed the tools stuff here.
      	* app/gui/brush-select.[ch]
      	* app/gui/dialogs-constructors.c: use the new GimpBrushFactoryView
      	(see below).
      	* app/gui/dialogs-commands.[ch]
      	* app/gui/menus.[ch]:
      	- Made it 64bit safe again by passing the dialog factory's
      	  identifiers as GQuarks, not as guints created by GPOINTER_TO_UINT().
      	- Added a "gchar *quark_string" field to GimpItemFactoryEntry
      	  which gets transformed into a GQuark by menus_create_item().
      	- Added SEPARATOR() and BRANCH() macros which make the *_entries[]
      	  arrays more readable.
      	- Added a menu item to show/hide GimpImageDock's image menu.
      	- Removed file_last_opened_cmd_callback().
      	* app/gui/edit-commands.c: the global_edit functions are "gimp_"
      	prefixed now.
      	* app/gui/file-commands.[ch]: added file_last_opened_cmd_callback()
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpbrushfactoryview.[ch]: new widget: a
      	GimpDataFactory subclass with a "spacing" scale.
      	* app/widgets/gimpcontainereditor.[ch]:
      	- Connect to the GimpContainerView's "select_item",
      	  "activate_item" and "context_item" signals here once instead of
      	  in each subclass and dispatch them via new virtual functions.
      	- Added a convenience function which makes DND to the buttons much
      	  less painful for subclasses.
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpdatafactoryview.[ch]: changed accordingly.
      	* app/widgets/gimpdialogfactory.[ch]:
      	- Added gimp_dialog_factory_dialog_raise() which can raise
      	  toplevel dialogs _and_ dockables (and creates them if they are
      	  not open yet).
      	- Keep track of all created dialogs (not only toplevels).
      	- Added an "aux_info" field to GimpSessionInfo which is a GList of
      	  gchar* and is saved in sessionrc.
      	- Remember if GimpImageDock's image menu is visible by using an
      	  aux_info string.
      	- The code did not become nicer with all those new constraints. I
      	  have to add comments before I forget how it works.
      	* app/widgets/gimpdockbook.c: set the state of the "Show Image Menu"
      	menu item before popping up the item factory.
      	* app/widgets/gimpimagedock.[ch]: added
      	* plug-ins/gdyntext/gdyntext.c
      	* plug-ins/perl/examples/fit-text
      	* plug-ins/perl/examples/terral_text
      	* plug-ins/perl/examples/tex-to-float: register all text rendering
      	plug-ins under <Image>/Filters/Text
      	* app/pdb/brush_select_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/edit_cmds.c
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/enums.pl
      	* po/POTFILES.in: changed according to all the stuff above.
  13. 11 May, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am taken behind the curtain and shot. (famous words of Seth · 3bd0b97e
      Michael Natterer authored
      2001-05-11  Michael Natterer  <mitch@gimp.org>
      	* app/Makefile.am
      	* app/lc_dialog.[ch]: taken behind the curtain and shot.
      	(famous words of Seth Burgess on #gimp)
      	* app/app_procs.c
      	* app/gdisplay.c
      	* app/gimage.c
      	* app/gui/commands.c
      	* app/gui/gui.c
      	* app/gui/menus.c
      	* app/gui/preferences-dialog.c: don't #include it or call it's
      	functions any more.
      	* app/gui/dialogs-commands.[ch]: added a constructor for a dock
      	which looks like the old L&C dialog (taken from test-commands.*)
      	* app/gui/test-commands.[ch]: removed here.
      	* app/gui/dialogs-constructors.[ch]: wrapped the old
      	paths-dialog.* stuff in a dockable which can be created only
      	once. Will go away as soon as the new path stuff is there.
      	* app/gui/dialogs.c: added the paths dockable, removed lc_dialog.
      	* app/gui/paths-dialog.c: some changes to make it work without the
      	lc_dialog around it. Will probably crash randomly and refuse to
      	update it's contents properly (scheduled for removal).
  14. 08 May, 2001 1 commit
    • Michael Natterer's avatar
      added ChannelType. removed ChannelType. regenerated. · a229702d
      Michael Natterer authored
      2001-05-08  Michael Natterer  <mitch@gimp.org>
      	* app/appenums.h: added ChannelType.
      	* app/gimpimage.h: removed ChannelType.
      	* tools/pdbgen/enums.pl: regenerated.
      	* app/apptypes.h: don't include libgimpwidgets/gimpwidgetstypes.h
      	and widgets/widgets-types.h any more.
      	* app/devices.c
      	* app/gimpdnd.c
      	* app/gimprc.c
      	* app/lc_dialog.c
      	* app/gui/[many].c: include widgets/widgets-types.h
      	* app/tools/histogram_tool.h: include widgets/widgets-types.h here
      	because of an ugly dependency from pdb/color_cmds.c
      	* app/tools/tool_options_dialog.c
      	* app/widgets/widgets-types.h: include
      	libgimpwidgets/gimpwidgetstypes.h and apptypes.h so files in
      	widgets/ only have to include this file.
      	* app/widgets/*.c: include widgets-types.h instead of apptypes.h
      	* app/gimpdrawable-preview.c
      	* app/gui/gradient-editor.c: removed useless #includes.
  15. 23 Apr, 2001 1 commit
    • Michael Natterer's avatar
      some minor fixes / cleanup. · 714f4b14
      Michael Natterer authored
      2001-04-23  Michael Natterer  <mitch@gimp.org>
      	* app/gimpcontext.[ch]: some minor fixes / cleanup.
      	* app/gimpdata.c: forgot to gtk_object_class_add_signals() in
      	* app/gui/dialogs-constructors.[ch]: added a tool_tab_func() so
      	the notebook tab shows a tool preview, pass a GimpContext to all
      	dialog constructors and added set_context() functions for all
      	dockable based dialogs so they can be configured to use the
      	context of the destination dock when dragging them around.
      	* app/widgets/gimpcontainermenuimpl.c: removed debugging output.
      	* app/widgets/gimpdialogfactory.[ch]: add a method to create
      	dockables (which gets passed the dock the dockable will be added
      	to) so the dockables can be created in the right context.
      	* app/widgets/gimpdock.[ch]: added a GimpContext attribute, remove
      	the dockbooks explicitely in destroy().
      	* app/widgets/gimpdockable.[ch]: dockables now know about their
      	set_context_func() and can thus be dragged between different
      	* app/widgets/gimpdockbook.c: gimp_dockbook_add(): refuse to add
      	dockables to dockbooks which are not part of a dock, set the
      	dockable's context after adding it.
      	* app/widgets/gimpimagedock.[ch]: image docks now keep a pointer
      	to the global image list which is passed to them on construction
      	so they don't need to know about the global "image_context"
      	variable, added an "Auto" button like in L&C.
      	* app/gui/dialogs-commands.c: changed accordingly.
  16. 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.
  17. 16 Apr, 2001 1 commit
    • Michael Natterer's avatar
      First attempt to get the docks session managed: · 059e7773
      Michael Natterer authored
      2001-04-16  Michael Natterer  <mitch@gimp.org>
      	First attempt to get the docks session managed:
      	* app/gimprc.c: new gimprc type "new-session-info" which will soon
      	replace the original one.
      	* app/menus.c
      	* app/gui/dialogs.c: s/_/-/g in all dialog identifier strings.
      	* app/session.[ch]: call the dialog factory's session functions.
      	* app/test_commands.c: use the dialog factory to create the tabs.
      	* app/gui/dialogs-commands.c
      	* app/gui/dialogs-constructors.[ch]: the constructors return widgets,
      	not dockables now.
      	* app/widgets/gimpdialogfactory.[ch]: maintain a list of dialog
      	factories in the class struct. Added ugly code to do the GimpDock
      	session management.
      	* app/gui/gui.c
      	* app/widgets/gimpdock.c: changed accordingly.
  18. 14 Apr, 2001 2 commits
    • Michael Natterer's avatar
      added some more dialog types. · 3fafbbe1
      Michael Natterer authored
      2001-04-14  Michael Natterer  <mitch@gimp.org>
      	* app/menus.c: added some more dialog types.
      	* app/gui/Makefile.am
      	* app/gui/gimpdialogfactory.[ch]: removed again...
      	* app/widgets/Makefile.am
      	* app/widgets/gimpdialogfactory.[ch]: ...and added where it belongs.
      	* app/gui/dialogs.c
      	* app/widgets/gimpdock.c: changed #include's
      	* app/gui/dialogs-commands.c: dialogs can be removed via the menu
      	* app/widgets/gimpdockbook.c: ref the dockbook while the item
      	factory is active because an item factory callback may destroy it
      	(we need to add the hijacked GtkNotebook menu back to the
    • Michael Natterer's avatar
      configure.in app/Makefile.am new directory which will contain all gui code · 517de92a
      Michael Natterer authored
      2001-04-14  Michael Natterer  <mitch@gimp.org>
      	* configure.in
      	* app/Makefile.am
      	* app/gui/Makefile.am: new directory which will contain all gui code
      	except widgets (I was tired off adding new files to app/).
      	* app/apptypes.h
      	* app/gui/gimpdialogfactory.[ch]: factory which produces dialogs
      	from string descriptions. Should maybe go to widgets/.
      	* app/gui/dialogs-commands.[ch]: callbacks for the new menu
      	factory below.
      	* app/gui/dialogs-constructors.[ch]: dialog constructors which are
      	registered with the dialog factory.
      	* app/gui/dialogs.[ch]: register the dialogs with the factory.
      	* app/app_procs.c: call dialogs_register().
      	* app/menus.[ch]: a new item factory for creating dialogs.
      	* app/test_commands.c
      	* app/widgets/gimpdock.[ch]: added a dialog factory pointer to the
      	GimpDock struct.
      	* app/widgets/gimpdockbook.[ch]: badly (badly!) fiddle around with
      	GtkNotebook's menu to get it integrated in the GtkItemFactory
      	which produces new dialogs.
  19. 05 Mar, 2001 1 commit
    • Sven Neumann's avatar
      app/Makefile.am app/apptypes.h app/gimpimage-undo.[ch] app/gimpundo.[ch] · 75e8e387
      Sven Neumann authored
      2001-03-05  Sven Neumann  <sven@gimp.org>
      	* app/Makefile.am
      	* app/apptypes.h
      	* app/gimpimage-undo.[ch]
      	* app/gimpundo.[ch]
      	* app/gimpundostack.[ch]: added new GimpUndo and GimpUndoStack objects
      	which will be used for the upcoming new undo system. Actually my
      	current plan for the undo system is to keep it pretty much as it is...
      	* app/gimpimage.[ch]: added new GimpUndoStacks but temporarily kept
      	old GSLists around, so I don't break everything now.
  20. 28 Apr, 2000 1 commit
  21. 06 Nov, 1998 1 commit
    • Manish Singh's avatar
      added MAINTAINERS to EXTRA_DIST · 85757183
      Manish Singh authored
      * Makefile.am: added MAINTAINERS to EXTRA_DIST
      * configure.in: nicer -Wall, -ansi, etc. adding for CFLAGS with gcc
      * libgimp/parasite*.h
      * libgimp/gimpintl.h
      * app/Makefile.am
      * po/Makefile.in.in
      * configure.in: portablity, locale patch (gimp-joke-981028-0)
      * configure.in
      * plug-ins/Makefile.am: added lic, mapcolor, and xbm plug-ins
      * app/app_procs.c
      * app/menus.c: cosmetic message fixes
      * libgimp/parasite.c: use %p to print pointers
      * plug-ins/dbbrowser/dbbrowser_utils.[ch]: changes for new clist stuff
      * plug-ins/script-fu/script-fu-enums.h
      * plug-ins/script-fu/script-fu-scripts.c
      * plug-ins/script-fu/script-fu.c
      * plug-ins/script-fu/scripts/carved-logo.scm
      * plug-ins/script-fu/scripts/chrome-it.scm
      * plug-ins/script-fu/scripts/crystal-logo.scm
      * plug-ins/script-fu/scripts/neon-logo.scm
      * plug-ins/script-fu/scripts/sota-chrome-logo.scm: applied gimp-ruth-981103-0,
      adds a filesel to script-fu and SF-FILENAME param type. Make some scripts use
  22. 31 Oct, 1998 1 commit
    • GMT 1998 Andy Thomas's avatar
      app/gradient.c app/gradient.h app/internal_procs.c app/plug_in.c · d4ccd85a
      GMT 1998 Andy Thomas authored
      Sat Oct 31 14:57:40 GMT 1998 Andy Thomas <alt@picnic.demon.co.uk>
      	* app/gradient.c
      	* app/gradient.h
      	* app/internal_procs.c
      	* app/plug_in.c
      	* app/session.c
      	* app/session.h
      	* libgimp/Makefile.am
      	* libgimp/gimpmenu.h
      	* libgimp/app/gimprc.c
      	* libgimp/libgimpmenu.c
      	* plug-ins/script-fu/scripts/test-sphere.scm
      	* plug-ins/script-fu/script-fu-enums.h
      	* plug-ins/script-fu/script-fu.c
      	* plug-ins/script-fu/script-fu-scripts.c
      	New file:-
      	* libgimp/gimpgradientmenu.c
      	New gradient selector widget (smaller than the editor). This can now
      	be controlled via the PDB.
      	New widget which gives easy way to do gradient selections. This
      	new widget is used by script-fu (see the test->sphere script).
      	gradient.c needs to be split up (source is almost already split
      	I will complete this RSN).
  23. 20 Oct, 1998 1 commit
    • BST 1998 Andy Thomas's avatar
      app/brush_select.h app/brush_select.c app/internal_procs.c · af5cdfbd
      BST 1998 Andy Thomas authored
      Tue Oct 20 23:20:40 BST 1998 Andy Thomas <alt@picnic.demon.co.uk>
      	* app/brush_select.h
      	* app/brush_select.c
      	* app/internal_procs.c
      	* app/gimpbrushlist.c
      	* libgimp/Makefile.am
      	* libgimp/gimpmenu.h
      	* libgimp/gimpmenu.c
      	* plug-ins/script-fu/scripts/3d-outline.scm
      	* plug-ins/script-fu/scripts/test-sphere.scm
      	* plug-ins/script-fu/scripts/trochoid.scm
      	* plug-ins/script-fu/script-fu-enums.h
      	* plug-ins/script-fu/script-fu-scripts.c
      	* plug-ins/script-fu/script-fu.c
      	New file libgimp/gimpbrushmneu.c.
      	Brush dialog can now be fully controlled via the PDB. New widget (not
      	true widget) type added to libgimpui (gimp_brush_select_widget()).
      	Plugins should easily be able to control & select brushes. Script-fu
      	updated to use new widget. See the test script for example.
      	Started to change some of the scripts to use the new widget types.
  24. 01 Oct, 1998 1 commit
    • BST 1998 Andy Thomas's avatar
      app/patterns.c app/pattern_select.c app/internal_procs.c app/patterns.h · e99f37ab
      BST 1998 Andy Thomas authored
      Thu Oct  1 22:39:14 BST 1998 Andy Thomas <alt@picnic.demon.co.uk>
      	* app/patterns.c app/pattern_select.c app/internal_procs.c
      	* app/patterns.h app/pattern_select.h app/plug_in.c
      	* libgimp/gimpmenu.h libgimp/gimpmenu.c libgimp/Makefile.am
      	* plug-ins/gfig/gfig.c plug-ins/script-fu/scripts/test-sphere.scm
      	* plug-ins/script-fu/script-fu.c plug-ins/script-fu/script-fu-enums.h
      	* plug-ins/script-fu/script-fu-scripts.c
      	* New libgimp/gimppatternmenu.c
      	Pattern dialog can now be controlled via the PDB. New widget (not true
      	widget) type added to libgimpui (gimp_pattern_select_widget()). Plugins
      	should easily be able to control & select patterns. Script-fu
      	updated to use new widget. See the test script for example.
  25. 10 Aug, 1998 1 commit
  26. 06 Aug, 1998 1 commit
  27. 05 Aug, 1998 1 commit
  28. 13 Apr, 1998 1 commit
  29. 24 Nov, 1997 1 commit