1. 23 Jan, 2005 1 commit
    • Michael Natterer's avatar
      Enabled closing docks with Ctrl-W: · 8d3c38c9
      Michael Natterer authored
      2005-01-24  Michael Natterer  <mitch@gimp.org>
      
      	Enabled closing docks with Ctrl-W:
      
      	* app/actions/Makefile.am
      	* app/actions/dock-actions.[ch]
      	* app/actions/dock-commands.[ch]: added new action group which
      	holds a single action, "dock-close".
      
      	* app/actions/actions.c: register the "dock" group.
      
      	* app/menus/menus.c: add it to the "<Dock>" UI manager.
      
      	* app/widgets/gimphelp-ids.h: added GIMP_HELP_DOCK_CLOSE.
      8d3c38c9
  2. 27 Apr, 2004 1 commit
    • Michael Natterer's avatar
      app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass · aae726ee
      Michael Natterer authored
      2004-04-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimppluginaction.[ch]: new GtkAction subclass which
      	remembers the PlugInProcDef.
      
      	* app/widgets/gimpactiongroup.[ch]: added "gpointer user_data" to
      	the GimpActionGroup struct and to gimp_action_group_new(). Removed
      	the user_data parameter from gimp_action_group_add_*_actions().
      
      	* app/widgets/gimpactionfactory.[ch]: changed accordingly.
      
      	* app/actions/*-actions.[ch]: removed user_data from all setup_funcs.
      
      	* app/actions/plug-in-actions.c: use a GimpPlugInAction and
      	finally use the right user_data for the callback so plug-in
      	callbacks have a proper context.
      
      	* app/gui/plug-in-menus.[ch]: renamed plug_in_menus_create2() to
      	plug_in_menus_setup().
      
      	* app/gui/image-menu.c
      	* app/gui/toolbox-menu.c: changed accordingly.
      aae726ee
  3. 19 Apr, 2004 1 commit
    • Michael Natterer's avatar
      More GtkAction stuff (still unused): · 8848558f
      Michael Natterer authored
      2004-04-19  Michael Natterer  <mitch@gimp.org>
      
      	More GtkAction stuff (still unused):
      
      	* configure.in: added new directories menus/ and app/actions/
      
      	* Makefile.am: build menus/
      
      	* menus/.cvsignore
      	* menus/Makefile.am
      	* menus/*-menu.xml: new files: XML menu descriptions for each menu
      	which is now defined in gui/*-menu.c.
      
      	* app/widgets/widgets-types.h: some typedefs for GimpActionGroup.
      
      	* app/widgets/gimpactiongroup.[ch]: added a "Gimp" construct-only
      	property. Added APIs to set actions visible/sensitive/active
      	and an unimplemented stub for setting the action's color.
      
      	* app/Makefile.am: build actions/ and link libappactions.a
      
      	* app/actions/.cvsignore
      	* app/actions/Makefile.am
      	* app/actions/*-actions.[ch]: new files: GtkActions for each
      	*-commands.c file in gui/. Ported all "update" functions from the
      	*-menu.c files.
      	(everything completely unused, untested and partly #if 0'ed)
      
      	* app/core/gimpimage.[ch]: for reasons of (action-) symmetry, added
      	API to raise/lower channels/vectors to top/bottom.
      
      	* app/gui/channels-commands.[ch]
      	* app/gui/vectors-commands.[ch]: added callbacks for the new
      	to top/bottom functions.
      
      	* app/gui/Makefile.am
      	* app/gui/dockable-commands.[ch]: new files split out of
      	dialogs-commands.[ch].
      
      	* app/gui/dialogs-commands.[ch]
      	* app/gui/dialogs-menu.c: changed accordingly.
      
      	* app/gui/edit-commands.[ch]: added edit_paste_into_cmd_callback()
      	and remove usage of "guint action".
      
      	* app/gui/image-menu.c: changed accordingly.
      
      	* app/gui/palette-editor-commands.[ch]: split
      	+palette_editor_new_color_cmd_callback() into separate callbacks
      	for adding from FG and BG.
      
      	* app/gui/palette-editor-menu.c: changed accordingly.
      8848558f
  4. 13 Jan, 2003 1 commit
    • Michael Natterer's avatar
      app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] · 6f29b766
      Michael Natterer authored
      2003-01-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/brushes-menu.[ch]
      	* app/gui/buffers-menu.[ch]
      	* app/gui/channels-menu.[ch]
      	* app/gui/colormap-editor-menu.[ch]
      	* app/gui/dialogs-menu.[ch]
      	* app/gui/documents-menu.[ch]
      	* app/gui/file-open-menu.[ch]
      	* app/gui/file-save-menu.[ch]
      	* app/gui/gradient-editor-menu.[ch]
      	* app/gui/gradients-menu.[ch]
      	* app/gui/image-menu.[ch]
      	* app/gui/images-menu.[ch]
      	* app/gui/layers-menu.[ch]
      	* app/gui/palette-editor-menu.[ch]
      	* app/gui/palettes-menu.[ch]
      	* app/gui/patterns-menu.[ch]
      	* app/gui/qmask-menu.[ch]
      	* app/gui/toolbox-menu.[ch]
      	* app/gui/vectors-menu.[ch]: new files, one per GimpItemFactory,
      	containing the menu entries and their setup and update funcs.
      
      	* app/gui/brushes-commands.[ch]
      	* app/gui/patterns-commands.[ch]: removed because they contained
      	only update funcs.
      
      	* app/gui/Makefile.am: changed accordingly. Split the huge
      	SOURCES list in smaller ones for menus and dialogs.
      
      	* app/gui/menus.[ch]: removed the menu entries and setup funcs.
      	Added MENU_SEPARATOR() and MENU_BRANCH() macros to the header.
      	Made some utility functions public.
      
      	* app/display/gimpdisplayshell.[ch]
      	* app/gui/buffers-commands.[ch]
      	* app/gui/channels-commands.[ch]
      	* app/gui/colormap-editor-commands.[ch]
      	* app/gui/dialogs-commands.[ch]
      	* app/gui/documents-commands.[ch]
      	* app/gui/gradient-editor-commands.[ch]
      	* app/gui/gradients-commands.[ch]
      	* app/gui/images-commands.[ch]
      	* app/gui/layers-commands.[ch]
      	* app/gui/palette-editor-commands.[ch]
      	* app/gui/palettes-commands.[ch]
      	* app/gui/qmask-commands.[ch]
      	* app/gui/vectors-commands.[ch]: removed the update funcs.
      
      	* app/gui/plug-in-menus.[ch]: renamed plug_in_set_menu_sensitivity()
      	to plug_in_menus_update(). Cleanup.
      
      	* app/gui/paths-dialog.[ch]: added the <Paths> entries here
      	so they will go away together with these files.
      
      	* app/gui/dialogs-constructors.c
      	* app/gui/drawable-commands.c: removed useless #includes.
      6f29b766
  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
      	stuff.
      
      	* 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
      	"button_release".
      
      	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
      	gimp_item_factory_popup_with_date().
      
      	* 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
      	gimp_item_factory_new().
      
      	* 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
      	method.
      
      	* app/gui/toolbox.c: no need to include "dialogs-commands.h".
      bba84137
  6. 08 Jul, 2001 1 commit
    • Michael Natterer's avatar
      the active_tool may change in the middle of gdisplay_canvas_events(), so · c5609420
      Michael Natterer authored
      2001-07-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/disp_callbacks.c: the active_tool may change in the middle
      	of gdisplay_canvas_events(), so re-get it after using it for
      	cursor_update.
      
      	* app/base/boundary.c: made some global variables local.
      
      	* app/core/gimpdrawable.c: don't call gimp_drawable_set_visible()
      	in gimp_drawable_configure() because we don't want signal
      	emissions while configuring the drawable.
      
      	* app/gui/Makefile.am
      	* app/gui/brushes-commands.[ch]
      	* app/gui/data-commands.[ch]
      	* app/gui/gradients-commands.[ch]
      	* app/gui/palettes-commands.[ch]
      	* app/gui/patterns-commands.[ch]: new files for new new item
      	factories' callbacks.
      
      	* app/gui/menus.[ch]: added context menus for brushes, patterns, ...
      
      	* app/gui/gradient-editor.c
      	* app/gui/palette-editor.c: removed the "Save as POV", "Import
      	Palette" and "Merge Palattes" buttons as they are item factory
      	callbacks now.
      
      	* app/widgets/gimpbrushfactoryview.[ch]
      	* app/widgets/gimpbufferview.[ch]
      	* app/widgets/gimpcontainereditor.[ch]
      	* app/widgets/gimpdatafactoryview.[ch]: pass a
      	"GimpContainerContextFunc" pointer to all GimpContainerEditor
      	subclasses' constructors. Use the function to show the context
      	menu.
      
      	* app/widgets/gimpcontainergridview.c: dispatch the previews'
      	"context" signal.
      
      	* app/widgets/gimppreview.[ch]: new signal "context" which is
      	emitted on right-click.
      
      	* app/gui/brush-select.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/gradient-select.c
      	* app/gui/layers-commands.c
      	* app/gui/palette-select.c
      	* app/gui/pattern-select.c
      	* app/gui/test-commands.c: changed accordingly.
      c5609420
  7. 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.
      8d6c335f
  8. 16 Dec, 2000 1 commit
    • Sven Neumann's avatar
      Last-minute cleanup: · dfa2bed5
      Sven Neumann authored
      2000-12-16  Sven Neumann  <sven@gimp.org>
      
      	Last-minute cleanup:
      
      	* app/gimpdrawableF.h
      	* app/gimphistogramF.h
      	* app/gimpimageF.h
      	* app/gimplistF.h
      	* app/gimplutF.h
      	* app/gimpobjectF.h
      	* app/gimpsetF.h
      	* app/layerF.h
      	* app/parasitelistF.h: removed these files
      
      	* app/Makefile.am
      	* tools/pdbgen/Makefile.am: changed accordingly
      
      	* app/[almost every file]: include cleanup
      dfa2bed5
  9. 18 Nov, 2000 1 commit
    • Michael Natterer's avatar
      app/fileops.c Make sure that we don't try to destroy query_boxes twice or · cdd0a514
      Michael Natterer authored
      2000-11-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/fileops.c
      	* libgimp/gimpquerybox.[ch]: Make sure that we don't try to destroy
      	query_boxes twice or try to disconnect not-any-more connected
      	handlers.
      
      	* app/color_notebook.c
      	* app/gimpcontext.[ch]
      	* app/gimphelp.[ch]
      	* app/lc_dialog.[ch]
      	* app/menus.h
      	* app/preferences_dialog.c
      	* app/tools.[ch]
      	* libgimp/gimpcolorbutton.[ch]
      	* libgimp/gimpdialog.[ch]
      	* libgimp/gimpexport.[ch]
      	* libgimp/gimpfileselection.[ch]
      	* libgimp/gimphelpui.[ch]
      	* libgimp/gimppatheditor.[ch]
      	* libgimp/gimppixmap.[ch]
      	* libgimp/gimpsizeentry.[ch]
      	* libgimp/gimpui.[ch]
      	* libgimp/gimpunitmenu.[ch]
      	* libgimp/gimpwidgets.[ch]: in a coding attack, changed help_data
      	and many other strings passed to UI functions to (const gchar *).
      	As a consequence, I had to fix lots of warnings ;)
      
      	* plug-ins/common/tga.c
      	* plug-ins/imagemap/imap_main.c: fixed warnings.
      
      	Code cleanup and indentation all over the place.
      cdd0a514
  10. 21 May, 2000 1 commit
    • Michael Natterer's avatar
      These changes enable help support for 3rd party plug-ins which install · 9c6b0b0c
      Michael Natterer authored
      2000-05-21  Michael Natterer  <mitch@gimp.org>
      
      	These changes enable help support for 3rd party plug-ins which
      	install their help files outside GIMP's main help dir.
      
      	Instead of calling gimp_help(), gimp_plugin_help_func() etc.,
      	all help callbacks now have to call gimp_standard_help_func()
      	which has different implementations in the app and in libgimp.
      
      	There is a new function gimp_plugin_help_register() which can
      	be called during plug-in query. plug_in.c keeps a list of
      	executable_name/help_path pairs. Plug-ins have to pass their
      	exec. name to gimp_help() which uses the list to find the plug-in's
      	help directory.
      
      	* app/gimphelp.[ch]: gimp_help() now takes a help_path parameter.
      	help_path == NULL means the standard help directory. Various
      	changes to pass the help_path to the help browser.
      
      	* app/gimprc.c: save the plug-in's help_path in the pluginrc file.
      
      	* app/menus.c: ugly hack to enable help_paths in the "F1" callback.
      
      	* app/plug_in.[ch]: many help_path related changes. Use g_basename()
      	instead of strrchr(str,G_DIR_SEPARATOR), cosmetic cleanups.
      
      	* app/internal_procs.c
      	* app/gimphelp_cmds.c
      	* tools/pdbgen/pdb/gimphelp.pdb: new procedure
      	gimp_plugin_help_register(). gimp_help() takes a second parameter
      	which is the executable name (not the help_path).
      
      	* app/color_notebook.c
      	* app/commands.c
      	* app/lc_dialog.c
      	* app/preferences_dialog.c
      	* app/tools.c: call gimp_standard_help_func() instead of gimp_help().
      
      	* libgimp/gimp.c: new function gimp_get_progname() which returns
      	the full path of the plug-in's executable.
      
      	* libgimp/gimp.h: export the new function,
      	removed gimp_plugin_help_func(), gimp_help() takes the executable
      	name as second parameter.
      
      	* libgimp/gimpcompat.h: added gimp_plugin_help_func().
      
      	* libgimp/gimphelp.c: a wrapper for gimp_plugin_help_register(),
      	changed the calls to gimp_help.
      
      	* libgimp/gimphelpui.[ch]: call gimp_standard_help_func() instead
      	of gimp_help().
      
      	* plug-ins/helpbrowser/helpbrowser.c: now called with an additional
      	help_path parameter. Various changes to enable
      	help_path != gimp_standard_help_path.
      
      	Unrelated stuff:
      
      	* app/batch.h: added missing GPL header.
      
      	* app/gimpunit.c: had a LGPL header, merged some fprintf's into
      	one call.
      
      	* app/procedural_db.[ch]: cosmetic: g* types, s/g_malloc/g_new/,
      	prototypes, indentation.
      
      	* app/resize.c: use less packing widgets. didn't find the "offset"
      	redraw bug :(
      9c6b0b0c
  11. 11 Jan, 2000 1 commit
    • Michael Natterer's avatar
      app/gimphelp.h libgimp/gimp.h declare the gimp_standard_help_func in · d5e99ee9
      Michael Natterer authored
      2000-01-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimphelp.h
      	* libgimp/gimp.h
      	* libgimp/gimphelpui.[ch]: declare the gimp_standard_help_func in
      	gimphelpui.h because libgimp widgets must not include libgimp/gimp.h.
      
      	* libgimp/gimpdialog.c
      	* libgimp/gimpexport.c
      	* libgimp/gimpunitmenu.c: use the dialog constructor for the
      	export dialog and the unit selection.
      
      	* plug-ins/gpc/gpc.[ch]
      	* plug-ins/megawidget/megawidget.[ch]: removed unused functions
      	(dialog creation and some other stuff). The rest of these libs is
      	scheduled for removal, too...
      
      	* plug-ins/AlienMap/AlienMap.c
      	* plug-ins/AlienMap/Makefile.am
      	* plug-ins/AlienMap2/AlienMap2.c
      	* plug-ins/AlienMap2/Makefile.am
      	* plug-ins/borderaverage/Makefile.am
      	* plug-ins/borderaverage/borderaverage.c
      	* plug-ins/common/align_layers.c
      	* plug-ins/common/blur.c
      	* plug-ins/common/colortoalpha.c
      	* plug-ins/common/compose.c
      	* plug-ins/common/decompose.c
      	* plug-ins/common/gauss_iir.c
      	* plug-ins/common/gauss_rle.c
      	* plug-ins/common/mapcolor.c
      	* plug-ins/common/max_rgb.c
      	* plug-ins/common/mblur.c
      	* plug-ins/common/noisify.c
      	* plug-ins/common/spread.c
      	* plug-ins/common/xbm.c
      	* plug-ins/common/xpm.c
      	* plug-ins/fp/Makefile.am
      	* plug-ins/fp/fp_gtk.c
      	* plug-ins/rcm/Makefile.am
      	* plug-ins/rcm/rcm_callback.[ch]
      	* plug-ins/rcm/rcm_dialog.c
      	* plug-ins/sinus/sinus.c: standard ui (spacings etc.) for some
      	more plugins. Did some indentation, prototyping and I18N fixes.
      d5e99ee9
  12. 05 Jan, 2000 1 commit
    • Michael Natterer's avatar
      removed most functions. Show the help page in an idle function to avoid · ee6ad0e2
      Michael Natterer authored
      2000-01-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimphelp.[ch]: removed most functions. Show the help page in
      	an idle function to avoid confusion with calling the temporary
      	help browser procedure in the middle of the "gimp_help" PDB call.
      	(I beleive this should work, so this is maybe a workaround for
      	some other bug).
      
      	* app/gimpui.[ch]: removed the dialog functions.
      
      	* libgimp/Makefile.am
      	* libgimp/gimpdialog.[ch]
      	* libgimp/gimphelp.c
      	* libgimp/gimphelpui.[ch]: new files. Moved most of the help
      	functions and the dialog constructors to libgimp and libgimpui.
      
      	* libgimp/gimp.h: declaration of the "gimp_help*" functions.
      
      	* libgimp/gimpui.h: include "gimpdialog.h" and "gimphelpui.h".
      
      	* plug-ins/common/grid.c: use the dialog constructor. It's now
      	possible to show the plugin's help with "F1".
      ee6ad0e2
  13. 19 Dec, 1999 2 commits
  14. 20 Nov, 1999 1 commit
    • Michael Natterer's avatar
      Reorganized the core menu items (everything except <Image>/Filters). · e46eaf86
      Michael Natterer authored
      1999-11-20  Michael Natterer  <mitch@gimp.org>
      
      	Reorganized the core menu items (everything except
      	<Image>/Filters). Everything is of course trivial to change again,
      	so please comment on the new "menu feeling" ;-)
      
      	* app/menus.[ch]:
      
      	- Applied the suggestions collected by Olof.
      	- Added "..." to all items which open a dialog.
      	- Introduced some additional separators (e.g. in "Dialogs").
      	- Reorder some plugins and the color correct tools after
      	  initialisation.
      	- A menu entry to invoke the tooltips inspector.
      	- A debugging menu entry which dumps the menu paths and their help
      	  pages (will of course go away when the help sys is consistent).
      
      	There are currently two identical "Help" menus because
      	<Toolbox>/Help trashes the menu bar if the toolbox is too narrow
      	(gtk doesn't seem to support multi-line menubars, any idea?)
      
      	* app/app_procs.c: call menus_reorder_plugins() after loading the
      	plugins to beautify the "Xtns" menu.
      
      	* app/commands.[ch]: reordered some functions to match the new
      	menu structure (for easier source navigation) and renamed some to
      	be consistent (e.g. all help functions are now called help_*).
      
      	Show/Hide the rulers with ordinary gtk_widget_[show|hide]()
      	commands. I've tested it several times and it looks exactly the
      	same as the old code which used internal gtk knowledge.
      
      	* app/gdisplay.c: applied the menu changes to
      	gdisplay_set_menu_sensitivity().
      
      	* app/gimphelp.[ch]: new public function gimp_context_help() which
      	invokes the tooltips inspector. Code cleanup.
      
      	* app/resize.c: changed the dialogs' titles to match the menu entries.
      
      	* app/session.c: renamed the gradient selection cmd callback to be
      	consistent with brushes/patterns.
      
      	* app/tools.c: added "..." to the menu paths of the tools which
      	have dialogs.
      
      	* app/fileops.c
      	* app/channels_dialog.c
      	* app/layers_dialog.c
      	* app/paths_dialog.c: added some "...".
      
      	* plug-ins/common/align_layers.c
      	* plug-ins/common/autostretch_hsv.c
      	* plug-ins/common/c_astretch.c
      	* plug-ins/common/color_enhance.c
      	* plug-ins/common/compose.c
      	* plug-ins/common/decompose.c
      	* plug-ins/common/mail.c
      	* plug-ins/common/normalize.c
      	* plug-ins/common/threshold_alpha.c
      	* plug-ins/dbbrowser/dbbrowser.c
      	* plug-ins/fp/fp.c
      	* plug-ins/print/print.c
      	* plug-ins/rcm/rcm.c: changed the menu paths and added "...".
      e46eaf86
  15. 03 Nov, 1999 1 commit
    • Michael Natterer's avatar
      app/brush_select.[ch] app/gradient.c app/gradient_select.[ch] · 0302ed0a
      Michael Natterer authored
      1999-11-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/brush_select.[ch]
      	* app/gradient.c
      	* app/gradient_select.[ch]
      	* app/interface.[ch]
      	* app/palette.c
      	* app/pattern_select.[ch]: allow dragging a brush/pattern/... from
      	the selections with mouse2 without changing the active element in
      	the dialog.
      
      	* app/channels_dialog.c
      	* app/color_area.c
      	* app/color_panel.c
      	* app/color_select.c
      	* app/colormap_dialog.i.c
      	* app/devices.c
      	* app/gimpcontextpreview.[ch]
      	* app/gimphelp.[ch]
      	* app/gimpui.[ch]
      	* app/indicator_area.c
      	* app/interface.[ch]
      	* app/layers_dialog.c
      	* app/lc_dialog.c
      	* app/ops_buttons.[ch]
      	* app/paths_dialog.c
      	* app/preferences_dialog.c
      	* app/tools.[ch]: wrapped gtk_tooltips_set_tip() with
      	gimp_help_set_help_data() and moved it to gimphelp.[ch].
      
      	This should (hopefully) be the final state of the help system. The
      	New function allows a "private tip" to be set without a visible
      	tooltip. This way the tooltips inspector (shift+F1) can search for
      	help data in the parent containers of the clicked widget. E.g. the
      	ops buttons in the layers dialog have private tips like
      	"#new_layer" which gets composed with the help data of the layers
      	dialog notebook page resulting in a complete help path.
      
      	Allow mouse2 for all dnd operations. Mouse1 still works like before.
      0302ed0a
  16. 27 Sep, 1999 1 commit
    • Michael Natterer's avatar
      app/Makefile.am app/gimphelp.[ch] new files · 002aa905
      Michael Natterer authored
      1999-09-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/gimphelp.[ch]
      	* app/gimpui.[ch]: new files
      
      	* app/interface.[ch]
      	* app/preferences_dialog.[ch]
      
      	The GIMP Help System part 1: Press "F1" in any dialog to pop up
      	the help page for this dialog.
      
      	Moved the widget constructors from preferences_dialog.[ch] and the
      	query boxes from interface.[ch] to gimpui.[ch].
      
      	The dialog constructors take a help_func and a help_data
      	parameter and install the "F1" accelerator which emits the new
      	"help" signal.
      
      	The "help" signal callback calls help_func(help_data) which finally
      	has to call gimp_help() which in turn invokes the help browser.
      
      	Still have to find a proper way to (1) prevent "F1" being assigned
      	to some menu item and (2) to catch "F1" while browsing the menu
      	trees in order to pop up the help for the selected item.
      
      	* app/menus.c: a <Toolbox>/File/Help... menu item.
      	* app/commands.[ch]: a command callback for the "Help..." menu item.
      
      	* app/gimprc.[ch]: new boolean gimprc variable "use_help".
      
      	* app/info_dialog.[ch]: pass a help function and data to the info
      	dialog constructor.
      
      	* app/tools.[ch]: store the tools help page names in the tool info
      	structure. Export a special tools_help_func() which shows the help
      	page for the active tool.
      
      	* app/[all files calling a dialog constructor]: pass the dialog's
      	help page to the constructor.
      
      	Most dialogs are now created by gimp_dialog_new() which also sets
      	up the action_area and the WM delete event callback, so I removed
      	the resp. code from these files.
      
      	Fixed some minor bugs and did some other stuff but didn't change
      	any logic except dialog creation.
      
      	* plug-ins/helpbrowser/helpbrowser.c: don't try to call a running
      	help browser and don't install any menu path (all done in
      	app/gimphelp.[ch] now).
      002aa905
  17. 28 Jul, 1999 1 commit
  18. 18 Apr, 1999 1 commit
    • Manish Singh's avatar
      new file, containes the PDB stuff for most of the tools · ccac10a4
      Manish Singh authored
      * app/tools_cmds.c: new file, containes the PDB stuff for most
      of the tools
      
      * app/gimprc_cmds.c: new file, PDB interface stuff for gimprc
      access
      
      * app/Makefile.am: added tools_cmds.c and gimprc_cmds.c
      
      * app/airbrush.[ch]
      * app/blend.[ch]
      * app/bucket_fill.[ch]
      * app/by_color_select.[ch]
      * app/clone.[ch]
      * app/color_picker.[ch]
      * app/convolve.[ch]
      * app/crop.[ch]
      * app/ellipse_select.[ch]
      * app/eraser.[ch]
      * app/flip_tool.[ch]
      * app/free_select.[ch]
      * app/fuzzy_select.[ch]
      * app/gimprc.[ch]
      * app/paintbrush.[ch]
      * app/pencil.[ch]
      * app/perspective_tool.[ch]
      * app/rect_select.c app/rect_select.h
      * app/rotate_tool.[ch]
      * app/scale_tool.[ch]
      * app/shear_tool.[ch]: bye bye PDB stuff (exported necessary enums
      functions, vars, etc.)
      
      * app/internal_procs.c: use register_foo functions
      
      * app/blend.[ch]: GradientType enum case changed
      
      * app/bucket_fill.[ch]: s/FillMode/BucketFillMode/, made the enum
      more consistent
      
      * app/clone.[ch]: capitalized the CloneType enum
      
      * app/color_picker.[ch]: changed get_color to pick_color so we don't
      conflict with colormaps.c get_color
      
      * app/convolve.[ch]: capitalized the ConvolveType enum
      
      * app/paint_core.h: made a GradientPaintMode enum
      
      * app/transform_core.h: BoundingBox enum
      
      * app/scale_tool.c: use the generic bounding box enum for X1, Y1, etc.
      
      * app/shear_tool.[ch]: turned HORZ and VERT into a ShearType enum
      
      -Yosh
      ccac10a4
  19. 10 Apr, 1999 1 commit
    • Manish Singh's avatar
      new file (from pdbgen) · d6116b8d
      Manish Singh authored
      * text_tool_cmds.c: new file (from pdbgen)
      
      * Makefile.am: add new file, use AM_CPPFLAGS instead of CPPFLAGS
      
      * internal_procs.c: register pdbgened text_tool procs
      
      * text_tool.c: remove PDB stuff, export text_render and
      text_get_extents and SizeType and SUPERSAMPLE symbols
      
      * text_tool.c: remove PDB stuff
      
      * blend.[ch]
      * bucket_fill.[ch]
      * clone.[ch]
      * convolve.[ch]: export some enums
      
      * channel.h
      * paint_core.h: #define->enum
      
      * channel.c
      * gimpparasite.c
      * parasitelist.c
      * pixel_processor.c: warning cleanup
      
      * convert_cmds.c
      * paths_cmds.c: slight pdbgen changes
      
      -Yosh
      d6116b8d
  20. 13 Apr, 1998 1 commit
  21. 24 Nov, 1997 1 commit