1. 02 Sep, 2002 5 commits
    • Michael Natterer's avatar
      DND cleanup part 1: · c5d4b702
      Michael Natterer authored
      2002-09-02  Michael Natterer  <mitch@gimp.org>
      
      	DND cleanup part 1:
      
      	* app/widgets/gimpdnd.[ch]: changed all gimp_dnd_*_dest_set() and
      	_unset() functions to _dest_add() and _dest_remove(). Switch from
      	using static arrays of GtkTargetEntries to dynamic GtkTargetLists.
      	The _add() and _remove() functions configure the drag dest
      	automatically if not already done, so there is no need to call
      	gtk_drag_dest_set() on the widget any more. Drag source cleanup
      	will follow...
      
      	Renamed silly function names gimp_gtk_* to gimp_dnd_*
      
      	* app/display/gimpdisplayshell.c
      	* app/tools/gimpblendtool.c
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpcontainerview.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimplistitem.c
      	* app/widgets/gimpmenuitem.c
      	* app/widgets/gimppreview.c
      	* app/widgets/gimppaletteeditor.c
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimptoolbox-color-area.c
      	* app/widgets/gimptoolbox-indicator-area.c
      	* app/widgets/gimptoolbox.c
      	* app/gui/about-dialog.c
      	* app/gui/color-select.c
      	* app/gui/device-status-dialog.c
      	* app/gui/tool-options-dialog.c: changed accordingly. Removed
      	all calls to gtk_drag_dest_set() and their GtkTargetEntry tables.
      
      	* app/widgets/gimpchannellistitem.c: enabled some commented out
      	dnd code (which will not work since dnd needs more love...)
      
      	* app/widgets/gimpitemlistview.[ch]: added a third
      	"gboolean interactive" parameter to GimpItemNewFunc.
      
      	* app/gui/channels-commands.[ch]
      	* app/gui/layers-commands.[ch]
      	* app/gui/vectors-commands.[ch]: if the new_item_func is called
      	with "interactive == FALSE", don't pop up a dialog but silently
      	create a new item of the image's size.
      
      	* app/widgets/gimpdrawablelistview.c: use the new feature to allow
      	color and pattern drops to the "New" button, which creates a new
      	layer/channel filled with the color/pattern.
      	(special feature for drc ;-)
      
      	* app/widgets/gimppaletteeditor.c: fixed event handling so we see
      	the context menu again. Also, don't redraw on "expose", since
      	GtkPreview does that for us.
      c5d4b702
    • Michael Natterer's avatar
      use GimpContainerView's get_name_func utility stuff instead of reinventing · e6a9cc4d
      Michael Natterer authored
      2002-09-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpviewabledialog.c: use GimpContainerView's
      	get_name_func utility stuff instead of reinventing the wheel.
      	(They should probably be renamed because they are not at all
      	GimpContainerView related).
      e6a9cc4d
    • Michael Natterer's avatar
      don't display Alpha twice, more cleanup. · ca078457
      Michael Natterer authored
      2002-09-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/info-window.c: don't display Alpha twice, more cleanup.
      ca078457
    • Michael Natterer's avatar
      manually add the src_drawable's offsets instead of implicitly using the · 8ab7bfb3
      Michael Natterer authored
      2002-09-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpclonetool.c (gimp_clone_tool_draw): manually add
      	the src_drawable's offsets instead of implicitly using the
      	offsets of the active_drawable (fixes #92311).
      8ab7bfb3
    • Christian Neumair's avatar
      Updated German translation. · d8fed540
      Christian Neumair authored
      d8fed540
  2. 01 Sep, 2002 5 commits
    • Michael Natterer's avatar
      GimpViewableDialogs everywhere, cleanup: · ce956702
      Michael Natterer authored
      2002-09-01  Michael Natterer  <mitch@gimp.org>
      
      	GimpViewableDialogs everywhere, cleanup:
      
      	* libgimpwidgets/gimpstock.c: added texts for the RESIZE, SCALE
      	and CROP stock items.
      
      	* app/widgets/gimpviewabledialog.c: update the title when the
      	viewable's name changes.
      
      	* app/gui/color-notebook.[ch]: added color_notebook_viewable_new()
      	which creates a GimpViewableDialog.
      
      	* app/widgets/gimpgradienteditor.[ch]
      	* app/gui/colormap-editor-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/gradient-editor-commands.c
      	* app/gui/palette-editor-commands.c
      	* app/undo_history.c: use GimpViewableDialogs and the new
      	color_notebook constructor.
      
      	* app/gui/convert-dialog.c: #include "widgets/gimpviewabledialog.h"
      
      	* app/gui/image-commands.c
      	* app/gui/info-dialog.c
      	* app/gui/resize-dialog.c: minor cleanups.
      
      	* app/gui/info-window.c: cleaned up the whole thing, esp. the
      	"Extended" page. Added HSV color display to the color picker
      	frame.  Set the icons as frame titles, stuff...
      
      	* app/tools/gimpimagemaptool.[ch]: removed "shell_title",
      	"shell_name" and "stock_id" from the GimpImageMapTool struct
      	because they can be obtained from the tool's GimpToolInfo object.
      
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpthresholdtool.c: changed accordingly.
      
      	* app/tools/gimphistogramtool.c: same here: take values from
      	tool->tool_info instead of hardcoding them.
      
      	* app/tools/gimpcroptool.[ch]: removed the static crop dialog
      	variables and added them to the GimpCropTool struct. Feels safer
      	and makes the callback code much simpler. Use stock items for the
      	dialog's "Resize" and "Crop" buttons.
      
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimprotatetool.c: for consistency don't name the tools
      	"Blah Tool", also the dialog titles need to match the menu
      	entries.
      
      	Unrelated:
      
      	* libgimpwidgets/gimpwidgets.c: the recently changed, gtk-doc
      	comment was correct, as gtk-doc takes the parameter names from
      	the header, not the .c file.
      
      	* app/tools/gimptransformtool.c: set the transform tool's state to
      	TRANSFORM_CREATING after changing displays, so the initial matrix
      	components are saved correctly for the "Reset" function.
      ce956702
    • Manish Singh's avatar
      use AM_CPPFLAGS instead of CPPFLAGS · 97427f3f
      Manish Singh authored
      2002-09-01  Manish Singh  <yosh@gimp.org>
      
              * modules/Makefile.am: use AM_CPPFLAGS instead of CPPFLAGS
      
              * modules/cdisplay_gamma.c
              * modules/cdisplay_highcontrast.c: changed deprecated calls
      
              * modules/colorsel_triangle.c: #undef GTK_DISABLE_DEPRECATED,
              still needs to be fixed for use of GtkPreview
      97427f3f
    • Michael Natterer's avatar
      oops, the callback's name has changed too :) · f81c1362
      Michael Natterer authored
      2002-09-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/file-commands.[ch]: oops, the callback's name has
      	changed too :)
      f81c1362
    • Michael Natterer's avatar
      HIG compliance: changed "Save a Copy as..." to "Save a Copy...". · 003062de
      Michael Natterer authored
      2002-09-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/menus.c: HIG compliance: changed "Save a Copy as..."
      	to "Save a Copy...".
      
      	* app/gui/file-dialog-utils.c
      	* app/display/gimpdisplayshell.c: changed accordingly.
      003062de
    • Michael Natterer's avatar
      Refcount layer masks correctly. Fixes layer mask undo. · f4e1ec97
      Michael Natterer authored
      2002-09-01  Michael Natterer  <mitch@gimp.org>
      
      	Refcount layer masks correctly. Fixes layer mask undo.
      
      	* app/core/gimplayer.c (gimp_layer_add_mask): ref the mask.
      
      	* app/xcf/xcf-load.c
      	* app/gui/layers-commands.c
      	* tools/pdbgen/pdb/image.pdb: unref layer masks after adding them.
      
      	* app/pdb/image_cmds.c: regenerated.
      f4e1ec97
  3. 31 Aug, 2002 3 commits
  4. 30 Aug, 2002 8 commits
    • Michael Natterer's avatar
      app/widgets/Makefile.am app/widgets/widgets-types.h new dialog widget · cc3bdec2
      Michael Natterer authored
      2002-08-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpviewabledialog.[ch]: new dialog widget featuring
      	a title bar containing a stock icon, a description, the viewable's
      	name and a preview. Will be used for all viewable related dialogs
      	and serves as a common place to control their look & feel.
      
      	* app/tools/gimpimagemaptool.[ch]: removed the code which did
      	almost the same and use GimpViewableDialog.
      
      	* app/gui/info-dialog.[ch]: extended the API so it has enough
      	information to create a GimpViewableDialog.
      
      	* app/gui/channels-commands.c
      	* app/gui/convert-dialog.c
      	* app/gui/gradient-editor-commands.c
      	* app/gui/image-commands.c
      	* app/gui/info-window.c
      	* app/gui/layers-commands.c
      	* app/gui/offset-dialog.c
      	* app/gui/qmask-commands.c
      	* app/gui/resize-dialog.c
      	* app/gui/vectors-commands.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c: use GimpViewableDialogs
      
      	* themes/Default/gtkrc: apply the dialog style to "*Gimp*Dialog*",
      	not only "*GimpDialog*" so it covers GimpViewableDialog.
      cc3bdec2
    • James Henstridge's avatar
    • James Henstridge's avatar
      add PF_RADIO support to gimpfu based on Yosh's patch. · d6b394e1
      James Henstridge authored
      2002-08-31  James Henstridge  <james@daa.com.au>
      
          * gimpfu.py (RadioEntry): add PF_RADIO support to gimpfu based on
          Yosh's patch.
      d6b394e1
    • James Henstridge's avatar
      handle GIMP_PDB_COLOR correctly. This fixes · dd87d9f1
      James Henstridge authored
      2002-08-31  James Henstridge  <james@daa.com.au>
      
          * libgimp/gimp.c (gimp_run_procedure): handle GIMP_PDB_COLOR
          correctly.  This fixes gimp_palette_set_{back,fore}ground.
      dd87d9f1
    • James Henstridge's avatar
      some plugin fixes. · fe65e90a
      James Henstridge authored
      fe65e90a
    • James Henstridge's avatar
      update to list all methods. Convert no arg functions to METH_NOARG (slight · e7d1c4fa
      James Henstridge authored
      2002-08-30  James Henstridge  <james@daa.com.au>
      
          * pygimp-*.c: update to list all methods.  Convert no arg
          functions to METH_NOARG (slight code size reduction).
      e7d1c4fa
    • James Henstridge's avatar
      add getsets for common drawable attributes. (PyGimpLayer_Type): convert · 29aa6f50
      James Henstridge authored
      2002-08-30  James Henstridge  <james@daa.com.au>
      
          * pygimp-drawable.c (PyGimpDrawable_Type): add getsets for common
          drawable attributes.
          (PyGimpLayer_Type): convert getattr and setattr to getsets.
          (PyGimpChannel_Type): convert to getsets.
      
          * gimpmodule.c (new_parasite): remove.  Superceded by
          gimp.Parasite constructor.
          (pygimp_image_list): rename to match actual API.
      
          * pygimp-parasite.c (PyGimpParasite_Type): switch to getsets.
          (para_init): add constructor.
      29aa6f50
    • James Henstridge's avatar
      convert to use getsets. (PyGimpTile_Type): convert to use getsets. · 430a9f5d
      James Henstridge authored
      2002-08-30  James Henstridge  <james@daa.com.au>
      
          * pygimp-tile.c (PyGimpPixelRgn_Type): convert to use getsets.
          (PyGimpTile_Type): convert to use getsets.
      
          * pygimp-image.c (PyGimpImage_Type): convert getattr and setattr
          routines into getsets.
      430a9f5d
  5. 29 Aug, 2002 10 commits
  6. 28 Aug, 2002 9 commits
    • Christian Neumair's avatar
      Updated German translation. · 336b9d58
      Christian Neumair authored
      336b9d58
    • Michael Natterer's avatar
      removed unused #define cruft. · d3b0f964
      Michael Natterer authored
      2002-08-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimphistogramview.c: removed unused #define cruft.
      d3b0f964
    • Michael Natterer's avatar
      added a tool icon and descriptive string to the dialog's title box. Create · 14e0d073
      Michael Natterer authored
      2002-08-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpimagemaptool.[ch]: added a tool icon and
      	descriptive string to the dialog's title box. Create the
      	drawable preview with is_popup == TRUE so it doesn't show
      	layers in the image context. Still not perfect...
      
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpthresholdtool.c: Chain up early in initialize()
      	and return if gdisp == NULL. Set stock_id and desc_text so
      	GimpImageMapTool can display them. Added lots of mnemonics
      	(#80804). Use gimp_size_entry_new() instead of manually creating
      	the slider+spinbutton stuff.
      
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimplevelstool.c: changed widgets packing to make them
      	resizable without strange effects. Put the "Load", "Save" and
      	"Auto" buttons into a frame.
      
      	* app/tools/gimphuesaturationtool.c: use GimpColorAreas instead of
      	deprecated GtkPreviews. Arranged the color previews and their
      	radio buttons as a color wheel. Not the best solution maybe but
      	IMHO better than the old GUI.
      14e0d073
    • Michael Natterer's avatar
      look at drawable->offset_[xy] != 0 when deciding whether to offset the · 3f4d4d21
      Michael Natterer authored
      2002-08-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdrawablepreview.c (gimp_drawable_preview_render):
      	look at drawable->offset_[xy] != 0 when deciding whether to offset
      	the preview. Fixes bug where layers of the size of the image were
      	previewed with offset (0,0), regardless of their real offset.
      3f4d4d21
    • Michael Natterer's avatar
      removed all component item signal handling code, which is cool... · 9d0bfc51
      Michael Natterer authored
      2002-08-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpchannellistview.c: removed all component item
      	signal handling code, which is cool...
      
      	* app/widgets/gimpcomponentlistitem.c: ...and added it here, which
      	is not so cool because it adds Extra Ugliness (TM). At least it
      	fixes part one of #90967.
      9d0bfc51
    • James Henstridge's avatar
      some more updates · 698bd613
      James Henstridge authored
      698bd613
    • James Henstridge's avatar
      split module into multiple files, and convert types to Python 2.2 style · dc70b17a
      James Henstridge authored
      2002-08-28  James Henstridge  <james@daa.com.au>
      
          * *.c, pygimp.h: split module into multiple files, and convert
          types to Python 2.2 style types.  Still need to fix some of the
          getattr routines.
      dc70b17a
    • Michael Natterer's avatar
      app/undo.c (undo_pop_layer) emit "alpha_changed" from the image if we · 9c416076
      Michael Natterer authored
      2002-08-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/undo.c (undo_pop_layer)
      	* app/core/gimpimage.c (gimp_image_[add|remove]_layer): emit
      	"alpha_changed" from the image if we started (or ended up)
      	with an image containing one layer without alpha.
      
      	* app/core/gimplayer.c: use gimp_container_num_children() instead
      	of accessing container->num_children manually.
      9c416076
    • He Qiangqiang's avatar
      Updated Simplified Chinese translation by Xie Yuheng · 60959463
      He Qiangqiang authored
      2002-08-28  He Qiangqiang  <carton@linux.net.cn>
      
      	* zh_CN.po: Updated Simplified Chinese translation
      		    by Xie Yuheng <elephant@linux.net.cn>.
      60959463