1. 16 Sep, 2003 1 commit
    • Michael Natterer's avatar
      app/gui/brushes-menu.c app/gui/colormap-editor-menu.c · 431f9122
      Michael Natterer authored
      2003-09-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/brushes-menu.c
      	* app/gui/colormap-editor-menu.c
      	* app/gui/dialogs-menu.c
      	* app/gui/documents-menu.c
      	* app/gui/gradients-menu.c
      	* app/gui/palettes-menu.c
      	* app/gui/patterns-menu.c: suppress more standard GTK+ stock item
      	accelerators in popup menus by specifying "" instead of NULL as
      	accelerator.
      431f9122
  2. 11 Sep, 2003 1 commit
    • Michael Natterer's avatar
      app/gui/brushes-menu.c app/gui/buffers-menu.c app/gui/channels-menu.c · cf8f8d85
      Michael Natterer authored
      2003-09-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/brushes-menu.c
      	* app/gui/buffers-menu.c
      	* app/gui/channels-menu.c
      	* app/gui/colormap-editor-menu.c
      	* app/gui/gradients-menu.c
      	* app/gui/images-menu.c
      	* app/gui/layers-menu.c
      	* app/gui/palette-editor-menu.c
      	* app/gui/palettes-menu.c
      	* app/gui/patterns-menu.c
      	* app/gui/templates-menu.c
      	* app/gui/vectors-menu.c: made the default (== double click)
      	action the first menu entry as suggested by the HIG and
      	added/removed separators where appropriate.
      cf8f8d85
  3. 21 Aug, 2003 1 commit
    • Michael Natterer's avatar
      app/widgets/Makefile.am new file defining the available help topics. Work · a319c455
      Michael Natterer authored
      2003-08-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimphelp-ids.h: new file defining the available help
      	topics. Work in progress and totally unusable for matching to the
      	help system. Stay tuned...
      
      	* app/gui/about-dialog.c
      	* app/gui/brushes-menu.c
      	* app/gui/buffers-menu.c
      	* app/gui/channels-commands.[ch]
      	* app/gui/channels-menu.c
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/gradients-commands.c
      	* app/gui/gradients-menu.c
      	* app/gui/image-menu.c
      	* app/gui/layers-commands.[ch]
      	* app/gui/layers-menu.c
      	* app/gui/module-browser.c
      	* app/gui/offset-dialog.c
      	* app/gui/palettes-menu.c
      	* app/gui/patterns-menu.c
      	* app/gui/resize-dialog.c
      	* app/gui/select-commands.c
      	* app/gui/templates-menu.c
      	* app/gui/tips-dialog.c
      	* app/gui/toolbox-menu.c
      	* app/gui/vectors-commands.[ch]
      	* app/gui/vectors-menu.c: replaced literal HTML file paths by help
      	IDs from gimphelp-ids.h. Renamed some menu callbacks to be
      	consistent with similar ones. This is just an intermediate commit
      	and not finished.
      
      	While browsing all the menus, I noticed that our "x to selection"
      	functions are not consistent at all. They should all offer the
      	REPLACE,ADD,SUBTRACT,INTERSECT options:
      
      	* app/core/gimpchannel.[ch]: added new function
      	gimp_channel_new_from_alpha(). Removed gimp_channel_layer_alpha()
      	and gimp_channel_layer_mask().
      
      	* app/core/gimpimage-mask.[ch]: added
      	gimp_image_mask_select_alpha() and
      	gimp_image_mask_select_component() which offer the full set of
      	operation, feather and feather_radius parameters as the other
      	selection functions.
      
      	* app/core/gimpimage-mask-select.[ch]: removed
      	gimp_image_mask_layer_alpha() and gimp_image_mask_layer_mask().
      
      	* app/gui/channels-commands.c (channels_channel_to_selection): use
      	gimp_image_mask_select_component() instead of implementing it
      	here.
      
      	* app/gui/image-menu.c
      	* app/gui/layers-commands.[ch]: offer the full choice of
      	REPLACE,ADD,SUBTRACT,INTERSECT with "Alpha to Selection" and "Mask
      	to Selection".
      
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/selection_cmds.c: regenerated.
      a319c455
  4. 11 Aug, 2003 1 commit
    • Henrik Brix Andersen's avatar
      removed function gimp_menu_path_strip_uline() ... · f36a63f6
      Henrik Brix Andersen authored
      2003-08-09 Henrik Brix Andersen <brix@gimp.org>
      
      * gimp/app/widgets/gimpwidgets-utils.[ch]: removed function
      gimp_menu_path_strip_uline() ...
      
      * gimp/libgimpbase/gimputils.[ch]: ... and added it here under the
      name gimp_strip_uline()
      
      * gimp/devel-docs/libgimpbase/libgimpbase-sections.txt: added
      gimp_strip_uline to gimputils section
      
      * gimp/app/plug-in/plug-in.c
      * gimp/app/widgets/gimpitemfactory.c
      * gimp/app/widgets/gimptoolbox.
      * gimp/app/gui/plug-in-menus.c: changed accordingly
      
      * gimp/plug-ins/script-fu/script-fu-scripts.c
      (script_fu_interface): use gimp_strip_uline() to strip mnemonics
      from script-fu menu paths
      
      * gimp/app/gui/vectors-menu.c
      * gimp/app/gui/templates-menu.c
      * gimp/app/gui/qmask-menu.c
      * gimp/app/gui/palettes-menu.c
      * gimp/app/gui/palette-editor-menu.c
      * gimp/app/gui/images-menu.c
      * gimp/app/gui/gradients-menu.c
      * gimp/app/gui/gradient-editor-menu.c
      * gimp/app/gui/documents-menu.c
      * gimp/app/gui/dialogs-menu.c
      * gimp/app/gui/colormap-editor-menu.c
      * gimp/app/gui/channels-menu.c
      * gimp/app/gui/buffers-menu.c
      * gimp/app/gui/brushes-menu.c
      * gimp/app/gui/layers-menu.c
      * gimp/plug-ins/pygimp/plug-ins/clothify.py
      * gimp/plug-ins/pygimp/plug-ins/shadow_bevel.py
      * gimp/plug-ins/pygimp/plug-ins/whirlpinch.py
      * gimp/plug-ins/pygimp/plug-ins/foggify.py
      * gimp/plug-ins/script-fu/scripts/*.scm
      * gimp/plug-ins/script-fu/script-fu.c: added mnemonics fixing more
      of bug #106991
      
      * gimp/app/gui/error-console-menu.c (error_console_menu_update):
      updated menu item names, added mnemonics
      
      * gimp/plug-ins/common/animoptimize.c *
      gimp/plug-ins/common/animationplay.c: don't prepend every menu
      entry with "Animation"
      f36a63f6
  5. 25 Mar, 2003 1 commit
    • Sven Neumann's avatar
      Makefile.am removed this header file. · 28fddfd5
      Sven Neumann authored
      2003-03-25  Sven Neumann  <sven@gimp.org>
      
      	* Makefile.am
      	* gimpintl.h: removed this header file.
      
      	* gimpmiscui.c: include libgimp-intl.h.
      
      	* gimp.c (gimp_main): call setlocale() and bind to the libgimp
      	textdomain so that plug-ins don't need to do that explicitely.
      
      	* libgimp/stdplugins-intl.h: added the functionality that used to
      	live in gimpintl.h and removed the libgimp related stuff. Got rid
      	of the INIT_I18N_UI() macro.
      
      	* plug-ins/*/*.c: removed all occurances of INIT_I18N_UI().
      	Plug-ins simply call INIT_I18N() once in their run() function.
      
      	* plug-ins/script-fu/script-fu-intl.h: added the functionality
      	that used to live in gimpintl.h and removed the libgimp related
      	stuff.
      
      	* app/Makefile.am
      	* app/gimp-intl.h: new file that defines the gettext macros for
      	the GIMP core.
      
      	* app/*/*.c: include gimp-intl.h instead of libgimp/gimpintl.h.
      
      	* plug-ins/script-fu/scripts/test-sphere.scm: fixed typos.
      28fddfd5
  6. 26 Feb, 2003 1 commit
    • Sven Neumann's avatar
      added a writeable field to GimpData and set it from · 0ceeeb02
      Sven Neumann authored
      2003-02-26  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdata.[ch]: added a writeable field to GimpData and
      	set it from gimp_data_set_filename().
      
      	* app/gui/brushes-menu.c
      	* app/gui/gradients-menu.c
      	* app/gui/palettes-menu.c
      	* app/gui/patterns-menu.c
      	* app/widgets/gimpbrushfactoryview.c
      	* app/widgets/gimpdatafactoryview.c
      	* app/widgets/gimpgradienteditor.c: look at data->writeable when
      	setting widgets sensitivity.
      
      	* app/gui/user-install-dialog.c (user_install_dialog_create): reduce
      	some of the dialog clutter by not showing the directories created for
      	plug-ins.
      
      	* app/core/gimpviewable.[ch]: added a default_stock_id to
      	GimpViewableClass so we don't need to hold a copy in each instance.
      	Added accessor functions to set and get the stock_id.
      
      	* app/core/gimptoolinfo.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/image-menu.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpcellrendererviewable.c
      	* app/widgets/gimppreview.c
      	* app/widgets/gimptoolbox.c: use gimp_viewable_get_stock_id().
      
      	* app/text/gimptextlayer.c: set a text icon as default stock_id.
      0ceeeb02
  7. 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
  8. 12 Jun, 2002 1 commit
    • Michael Natterer's avatar
      added a boolean "internal" which indicates that the data object is an · 91cfa783
      Michael Natterer authored
      2002-06-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdata.[ch]: added a boolean "internal" which
      	indicates that the data object is an automatically created
      	internal object. Changed the code to refuse saving to deleting
      	internal objects.
      
      	* app/core/Makefile.am
      	* app/core/gimp-gradients.[ch]: new files implementing internal
      	gradients (FG -> BG in RGB and HSV and FG -> transparent).
      
      	* app/core/gimp.c: call gimp_gradients_init().
      
      	* app/core/gimpdatafactory.c (gimp_data_factory_data_free): don't
      	free internal objects so they stay there on "Refresh".
      
      	* app/core/gimpdatalist.c: sort internal objects to the beginning
      	of the list.
      
      	* app/widgets/gimpdataeditor.c: refuse to change the name of
      	internal objects.
      
      	* app/widgets/gimpdatafactoryview.c: set the "Delete" button
      	insensitive for internal objects.
      
      	* app/widgets/gimpgradienteditor.c: refuse to edit internal
      	gradients, just display them so color picking works.
      
      	* app/gui/brushes-commands.c
      	* app/gui/gradients-commands.c
      	* app/gui/palettes-commands.c
      	* app/gui/patterns-commands.c: set the "Delete" menu item
      	insensitive for internal objects.
      
      	* app/gui/gui.c: need to call render_setup() earlier because of
      	you-dont-want-to-know-why. Will change it back once the previews
      	have their own render buffers.
      
      	* app/tools/gimpblendtool.c: Replaced the "Type" menu by a preview
      	showing the active gradient. Clicking the preview pops up the
      	gradient selection. Renamed the "Gradient" menu to "Shape". Removed
      	"blend_mode" from the BlendOptions struct because we always use
      	"custom" mode now.
      91cfa783
  9. 03 May, 2002 1 commit
    • Michael Natterer's avatar
      devel-docs/Makefile.am new file documenting the core's include policy. · a74a8997
      Michael Natterer authored
      2002-05-03  Michael Natterer  <mitch@gimp.org>
      
      	* devel-docs/Makefile.am
      	* devel-docs/includes.txt: new file documenting the core's
      	include policy.
      
      	* HACKING: mention it here.
      
      	* libgimptool/gimptooltypes.h: removed GimpToolOptions here.
      
      	* app/core/core-types.h: and added it here. This is a temp hack
      	needed because GimpToolInfo needs to know the GimpToolOptions
      	type.
      
      	* libgimpproxy/gimpproxytypes.h: regenerated.
      
      	* libgimptool/gimptoolmodule.h: don't include gimptooltypes.h here...
      	* libgimptool/gimptoolmodule.c: ...but here.
      
      	* app/config/gimpconfig-params.c: include "libgimpbase/gimpbase.h"
      	entirely, not single files from it.
      
      	* app/core/gimp.c
      	* app/core/gimpcontext.c
      	* app/core/gimpcoreconfig.c
      	* app/core/gimpdatafactory.c
      	* app/core/gimpdocuments.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-guides.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage.c
      	* app/core/gimpitem.c
      	* app/core/gimpmodules.c
      	* app/core/gimppaintinfo.c
      	* app/core/gimpparasite.c
      	* app/core/gimppreviewcache.c
      	* app/core/gimptoolinfo.c
      	* app/core/gimpunit.c: include "core-types.h" and no other types file.
      
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell.c: include "tools/tools-types.h"
      	instead of "libgimptool/gimptooltypes.h", warn about inclusion
      	on "gui/gui-types.h"
      
      	* app/file/file-open.c
      	* app/file/file-save.c: don't include "libgimptool/gimptooltypes.h".
      
      	* app/gui/about-dialog.c
      	* app/gui/brush-select.c
      	* app/gui/brushes-commands.c
      	* app/gui/color-select.c
      	* app/gui/data-commands.c
      	* app/gui/device-status-dialog.c
      	* app/gui/dialogs.c
      	* app/gui/gradients-commands.c
      	* app/gui/help-commands.c
      	* app/gui/info-window.c
      	* app/gui/palettes-commands.c
      	* app/gui/patterns-commands.c
      	* app/gui/resize-dialog.c
      	* app/gui/tips-dialog.c
      	* app/gui/tool-options-dialog.c: include "gui-types.h" and no
      	other types file.
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore-stroke.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimppaintoptions.c
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c
      	* app/paint/paint.c: include "paint-types.h" and no other types file.
      
      	* app/pdb/pdb-types.h: don't include "libgimptool/gimptooltypes.h".
      
      	* app/plug-in/plug-in-progress.c: warn about inclusion of
      	"display/display-types.h"
      
      	* app/tools/tools-types.h: include "libgimptool/gimptooltypes.h".
      
      	* 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/gimpdrawtool.c
      	* app/tools/gimpeditselectiontool.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/gimplevelstool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppaintbrushtool.c
      	* app/tools/gimppainttool.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/gimpselectiontool.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimpsmudgetool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimpthresholdtool.c
      	* app/tools/gimptoolcontrol.c
      	* app/tools/gimptoolcontrol.h
      	* app/tools/gimptransformtool.c
      	* app/tools/gimpvectortool.c
      	* app/tools/tools.c: include "tools-types.h" and no other types file,
      	warn about inclusion of "gui/gui-types.h".
      
      	* app/widgets/gimpcolorpanel.c
      	* app/widgets/gimptoolbox-color-area.c: warn about inclusion of
      	"gui/gui-types.h".
      
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf.c: don't include "libgimptool/gimptooltypes.h".
      
      	Split tool-safe-mode up in two files, one including libgimpproxy,
      	one libgimp.
      
      	* plug-ins/tools/Makefile.am
      	* plug-ins/tools/tool-safe-mode-plug-in.[ch]: new files including
      	libgimp/ stuff only.
      
      	* plug-ins/tools/tool-safe-mode.[ch]: include libgimpproxy/ and
      	libgimptool/ but don't include libgimp/ because of conflicting
      	declarations.
      
      	Unrelated:
      
      	* app/tools/gimpclonetool.c: create the clone core so we don't crash.
      
      	* app/gui/file-open-dialog.c: changed the way we create previews
      	so that only out-of-date previews are created on a click in the
      	preview area. Unconditional creation can still be forced by
      	<Ctrl>+click. Changed the tooltip to document this.
      a74a8997
  10. 26 Feb, 2002 1 commit
    • Michael Natterer's avatar
      make absolute paths out of relative ones passed on the commandline so the · d9c23318
      Michael Natterer authored
      2002-02-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/app_procs.c: make absolute paths out of relative ones
      	passed on the commandline so the GimpImagefiles can generate
      	previews.
      
      	* app/gui/Makefile.am
      	* app/gui/drawable-commands.[ch]: new files implementing menu
      	callbacks which work not just on layers.
      
      	* app/gui/layers-commands.[ch]: removed them here. Cleanup.
      
      	* app/gui/menus.c: changed accordingly.
      
      	* app/gui/brushes-commands.c
      	* app/gui/channels-commands.c
      	* app/gui/vectors-commands.c: cleanup. Added macros to get
      	rid of code duplication.
      d9c23318
  11. 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
  12. 27 Nov, 2001 1 commit
    • Michael Natterer's avatar
      app/widgets/Makefile.am put the whole generic stuff from gui/menus.[ch] · 653f6999
      Michael Natterer authored
      2001-11-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimpitemfactory.[ch]: put the whole generic stuff
      	from gui/menus.[ch] here (where generic == less_evil because it at
      	least does not depend on particular menu entries).
      
      	* app/gui/menus.[ch]: removed the stuff here. Only the global menu
      	definitions and bad hacks to adjust them to our needs left.
      	Removed all menus_get_foobar_factory() functions because we can
      	use gtk_item_factory_from_path("<FooBar>") all over the place.
      
      	* app/plug_in.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/brushes-commands.c
      	* app/gui/buffers-commands.c
      	* app/gui/channels-commands.c
      	* app/gui/dialogs.c
      	* app/gui/documents-commands.c
      	* app/gui/file-dialog-utils.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/gradient-editor-commands.c
      	* app/gui/gradients-commands.c
      	* app/gui/gui.c
      	* app/gui/layers-commands.c
      	* app/gui/palettes-commands.c
      	* app/gui/paths-dialog.c
      	* app/gui/patterns-commands.c
      	* app/gui/toolbox.c: changed accordingly. None of these files
      	except gui/gui.c includes gui/menus.h any more.
      653f6999
  13. 04 Aug, 2001 1 commit
    • Michael Natterer's avatar
      register the button icons with GTK_ICON_SIZE_BUTTON, but set them as · d128e989
      Michael Natterer authored
      2001-08-05  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpwidgets/gimpstock.[ch]: register the button icons with
      	GTK_ICON_SIZE_BUTTON, but set them as scalable fallbacks for
      	themselves so they get scaled for menus.
      
      	* app/gui/menus.c: set stock icons for much more menu entries.
      
      	* app/widgets/gimpwidgets-utils.[ch]: new utility function
      	gimp_item_factory_popup_with_data().
      
      	* app/disp_callbacks.[ch]
      	* app/gui/brushes-commands.c
      	* app/gui/channels-commands.c
      	* app/gui/gradients-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/palettes-commands.c
      	* app/gui/paths-dialog.c
      	* app/gui/patterns-commands.c: use the new function.
      
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpposterizetool.c: s/_("Reset")/GIMP_STOCK_RESET/
      
      	* app/widgets/gimpcontainereditor.[ch]
      	* app/widgets/gimpcontainerview.[ch]: moved the button_box utility
      	functions from the container editor to GimpContainerView itself.
      
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpcomponentlistitem.c
      	* app/widgets/gimpcontainergridview.[ch]
      	* app/widgets/gimpdatafactoryview.c
      	* app/widgets/gimpdrawablelistitem.c
      	* app/widgets/gimpdrawablelistview.[ch]
      	* app/widgets/gimplayerlistitem.c
      	* app/widgets/gimplayerlistview.c: changed accordingly. Removed
      	lots of duplicated code and use stock images instead of pixmaps.
      
      	* libgimpwidgets/gimpfileselection.[ch]
      	* libgimpwidgets/gimppatheditor.c: use stock images instead of
      	pixmaps.
      
      	* pixmaps/Makefile.am: removed "yes" and "no", added "stroke".
      
      	* pixmaps/anchor.xpm
      	* pixmaps/delete.xpm
      	* pixmaps/lower.xpm
      	* pixmaps/new.xpm
      	* pixmaps/paste-as-new.xpm
      	* pixmaps/paste-into.xpm
      	* pixmaps/paste.xpm
      	* pixmaps/raise.xpm
      	* pixmaps/refresh.xpm
      	* pixmaps/toselection.xpm: made them all 16x16 so they are scaled
      	nicely in menus. Should probably be 18x18.
      d128e989
  14. 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
      	fix.
      06b16890
  15. 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