1. 06 May, 2001 6 commits
    • Sven Neumann's avatar
      removed a few unused variables · 1a4e7860
      Sven Neumann authored
    • Sven Neumann's avatar
      libgimpwidgets/Makefile.am libgimpwidgets/gimpwidgets.h · 163b18cd
      Sven Neumann authored
      2001-05-06  Sven Neumann  <sven@gimp.org>
      	* libgimpwidgets/Makefile.am
      	* libgimpwidgets/gimpwidgets.h
      	* libgimpwidgets/gimpwidgetstypes.h
      	* libgimpwidgets/gimpoffsetarea.c
      	* libgimpwidgets/gimpoffsetarea.h: new widget GimpOffsetArea cut
      	of the resize dialog, allows to interactively specify offsets when
      	resizing images or drawables.
      	* libgimpwidgets/gimppixmap.c: removed empty destroy method.
      	* app/resize.c: use new GimpOffsetArea.
    • Michael Natterer's avatar
      libgimpwidgets/Makefile.am new widget derived from GtkButton. It adds an · 10afaf8d
      Michael Natterer authored
      2001-05-06  Michael Natterer  <mitch@gimp.org>
      	* libgimpwidgets/Makefile.am
      	* libgimpwidgets/gimpbutton.[ch]: new widget derived from
      	GtkButton.  It adds an "extended_clicked" signal which is emitted
      	instead of "clicked" if a modifier was pressed.
      	* libgimpwidgets/gimpchainbutton.[ch]
      	* libgimpwidgets/gimppixmap.[ch]: removed the opaque typedefs.
      	* libgimpwidgets/gimpwidgets.h
      	* libgimpwidgets/gimpwidgetstypes.h: and added them here. Added
      	* app/widgets/gimpdrawablelistview.c: use GimpButtons for "Raise"
      	and "Lower" and raise/lower to top/bottom on shift-click.
    • Michael Natterer's avatar
      renamed "restructure" to "alpha_changed" and only emit it in flatten(), · 5e2480d7
      Michael Natterer authored
      2001-05-06  Michael Natterer  <mitch@gimp.org>
      	* app/gimpimage.[ch]: renamed "restructure" to "alpha_changed" and
      	only emit it in flatten(), not in merge_layers().
      	* app/gimage.c
      	* app/gimplayer.c: changed accordingly.
      	* app/widgets/gimpcontainerlistview.c: set both scrollbar policies
      	to automatic.
    • Michael Natterer's avatar
      renamed the "resize" signal to "size_changed". · 950e35d5
      Michael Natterer authored
      2001-05-06  Michael Natterer  <mitch@gimp.org>
      	* app/gimpimage.[ch]: renamed the "resize" signal to "size_changed".
      	* app/gimage.c: changed accordingly.
      	* app/undo.c: renamed the "shrink_wrap" to "size_changed", call
      	gimp_image_size_changed() and let the handlers do the work.
      	* app/widgets/gimplistitem.[ch]: added a virtual set_preview_size()
      	method and a default implementation.
      	* app/widgets/gimplayerlistitem.c: added an inplementation of
      	set_preview_size() which set's the size of the mask preview.
      	* app/widgets/gimpchannellistview.c: implement set_preview_size()
      	and set the size of the component previews.
      	* app/widgets/gimpcontainerlistview.c: call
      	gimp_list_item_set_preview_size() instead of resizing the preview
      	* app/widgets/gimpcontainerview.c: emit "set_preview_size" even if
      	the size has not changed so we can use it to re-calculate the
      	preview size on image size change.
      	* app/widgets/gimpdrawablelistview.c: connect to the image's
      	"size_changed" signal and trigger preview size re-calculation in
      	the callback.
    • Michael Natterer's avatar
      added GimpDropMode... ...removed from here. · 59b06707
      Michael Natterer authored
      2001-05-06  Michael Natterer  <mitch@gimp.org>
      	* app/appenums.h: added GimpDropMode...
      	* app/gimpdnd.h: ...removed from here.
      	* app/gimpimage.[ch]:
      	- New signal "mode_changed".
      	- removed "const GimpImage*" from gimp_image_colormap_changed()
      	  because a signal emission is never "const" for the object
      	  which emits the signal.
      	- Fixed gimp_image_[set|get]_component_[active|visible]():
      	  ALPHA_CHANNEL maps to ALPHA_PIX only in RGB mode, use
      	* app/gimpimage-convert.c
      	* app/undo.c: call gimp_image_mode_changed().
      	* app/gimpviewable.c: added an implementation of
      	"invalidate_preview" which frees the preview temp_buf which may be
      	attached to the viewable. Subclasses need to chain up now.
      	* app/gimpdrawable.c
      	* app/gimpimage.c: chain up in invalidate_preview().
      	* app/widgets/gimpchannellistview.c: connect to the image's
      	"mode_changed" signal and rebuild the channel list in the
      	* app/widgets/gimpcontainerview.h: indentation.
      	* app/widgets/gimpdockbook.c: set the dockable's context to NULL
      	in gimp_dockbook_remove()
      	* app/widgets/gimpimagedock.c: forgot to actually set the dock's
      	image in gimp_image_dock_new().
      	* app/gui/dialogs-constructors.c: added a get_name_func() for tool
      	views which returns the tool's "blurb". It's safe to assume now
      	that a dockable's context will exist as long as the dockable
      	exists unless it's explicitely set to NULL, so remove ugly hacks
      	handling context destruction.
      	* app/tools/gimptool.c: removed COMPAT_CRUFT and useless #include's.
  2. 04 May, 2001 1 commit
    • Michael Natterer's avatar
      configure.in devel-docs/Makefile.am devel-docs/libgimpcolor/* · b4ad2ab0
      Michael Natterer authored
      2001-05-04  Michael Natterer  <mitch@gimp.org>
      	* configure.in
      	* devel-docs/Makefile.am
      	* devel-docs/libgimpcolor/*
      	* devel-docs/libgimpmath/*
      	* devel-docs/libgimpwidgets/*: added new gtk-doc modules for
      	libgimpcolor, libgimpmath and libgimpwidgets. Moved existing
      	documentation from the old files to the new templates.
      	* devel-docs/libgimp/*: regenerated all files and removed the
      	stuff which is in the new modules now.
      	* libgimpwidgets/gimpcolorarea.c
      	* libgimpwidgets/gimpcolorbutton.[ch]: some documentation fixes.
      	* po-libgimp/Makefile.in.in
      	* po-plug-ins/Makefile.in.in
      	* po-script-fu/Makefile.in.in: updated.
  3. 03 May, 2001 2 commits
    • Michael Natterer's avatar
      removed typedefs from the widgets/ subdir. · f5f8acf3
      Michael Natterer authored
      2001-05-03  Michael Natterer  <mitch@gimp.org>
      	* app/apptypes.h: removed typedefs from the widgets/ subdir.
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h: new file.
      	* app/widgets/gimpcontainermenu.[ch]
      	* app/widgets/gimpcontainerview.[ch]: synced them again and added a
      	* app/widgets/gimplistitem.[ch]
      	* app/widgets/gimpmenuitem.[ch]: add a "get_name_func" and use it
      	to get the item's name.
      	* app/widgets/gimpcontainerlistview.c
      	* app/widgets/gimpcontainermenuimpl.c: pass the get_name_func to
      	the created items.
      	* app/widgets/gimpchannellistview.c: gtk_widget_queue_resize() the
      	component frame after changing the image.
      	* app/widgets/gimpcomponentlistitem.c: set a custom
      	get_name_func() so the components are named Red, Green, ... again.
      	* app/widgets/gimpimagedock.c: set a custom get_name_func() which
      	returns names like in the old L&C dialog's image menu.
      	* tools/pdbgen/Makefile.am: don't scan apptypes.h for enums.
    • Michael Natterer's avatar
      don't #include "gui/color-select.h" · 07b8ffd4
      Michael Natterer authored
      2001-05-03  Michael Natterer  <mitch@gimp.org>
      	* app/app_procs.c: don't #include "gui/color-select.h"
      	* app/disp_callbacks.[ch]: renamed gdisplay_drop_viewable() to
      	* app/gimpimage.[ch]: added new signals
      	"component_visibility_changed" and "component_active_changed" and
      	emit them in the resp. accessors.
      	* app/interface.c: removed old GimpPreview test code.
      	* app/widgets/Makefile.am
      	* app/apptypes.h
      	* app/widgets/gimpchannellistview.[ch]
      	* app/widgets/gimpcomponentlistitem.[ch]: new (unfinished) widgets.
      	* app/widgets/gimpdockbook.c: switch to the right-clicked notebook
      	page before showing the menu.
      	* app/widgets/gimpdrawablelistitem.[ch]: removed the protected
      	functions which make the toggle buttons look nicer...
      	* app/widgets/gimplistitem.[ch]: ...and added them here.
      	* app/widgets/gimpdrawablelistview.[ch]: virtualized set_image()
      	so subclasses can properly (dis)connect on image change.
      	* app/widgets/gimpdrawablepreview.c
      	* app/widgets/gimpimagepreview.[ch]: removed the calc_size()
      	functions which calculate the preview's aspect ratio...
      	* app/widgets/gimppreview.[ch]: ...and added then here as
      	protected functions.
      	* app/widgets/gimplayerlistitem.c: flush displays after changing
      	the layer mask's "apply" or "show" state.
  4. 01 May, 2001 3 commits
    • Michael Natterer's avatar
      removed prototype of function which doesn't exist. · 7b7081b7
      Michael Natterer authored
      2001-05-01  Michael Natterer  <mitch@gimp.org>
      	* app/gimpimage.h: removed prototype of function which doesn't
      	* app/widgets/gimppreview.[ch]: new signal "extended_clicked"
      	which is emitted instead of "clicked" if the user pressed shift,
      	control or mod1 on button_press.
      	* app/widgets/gimplayerlistitem.c: use the "extended_clicked"
      	signal to toggle the layer mask's "show" and "apply" states.
    • Michael Natterer's avatar
      Made file/url DND work like the other DND types. The drop callback gets · a2530f59
      Michael Natterer authored
      2001-05-01  Michael Natterer  <mitch@gimp.org>
      	* app/gimpdnd.[ch]: Made file/url DND work like the other DND types.
      	The drop callback gets passed a GList of filenames.
      	Provide a default callback which calls file_open_with_display()
      	for each filename.
      	* app/docindex.c: changed accordingly.
      	* app/gui/toolbox.c: same file DND changes and made dropping
      	drawables work again with the new DND system.
      	* app/widgets/gimpdrawablelistview.c: properly disconnect from the
      	image in "destroy".
      	* app/widgets/gimplayerlistitem.c: gtk_signal_connect_while_alive()
      	to the layer's "mask_changed" signal.
    • Michael Natterer's avatar
      removed more GUI initialisation code. · d010bb5f
      Michael Natterer authored
      2001-05-01  Michael Natterer  <mitch@gimp.org>
      	* app/app_procs.c: removed more GUI initialisation code.
      	* app/color_transfer.c: removed useless includes.
      	* app/gui/brush-editor.[ch]
      	* app/gui/dialogs-constructors.c:
      	s/BrushEditGeneratedWindow/BrushEditor/, s/begw/brush_editor/, made
      	the brush preview of the editor autoresizing.
      	* app/gui/dialogs.h: removed "extern" declaration of non-existant
      	* app/gui/gui.[ch]: new function gui_post_init() which shows the
      	tips dialog.
      	* app/gui/tips-dialog.c: made signal handling nicer (clean up in a
      	"destroy" handler).
      	* app/gui/toolbox.[ch]: removed toolbox_raise(), removed the help
      	system (de)initialisation code which is now in gui.c, cleanup.
  5. 30 Apr, 2001 3 commits
  6. 29 Apr, 2001 2 commits
    • Michael Natterer's avatar
      added a "linked_changed" signal and emit it in gimp_layer_set_linked(). · 28a35366
      Michael Natterer authored
      2001-04-29  Michael Natterer  <mitch@gimp.org>
      	* app/gimplayer.[ch]: added a "linked_changed" signal and emit it
      	in gimp_layer_set_linked().
      	* app/gui/layers-dialog.c: use the accessor when setting "linked".
      	* app/widgets/gimpdrawablelistitem.[ch]: made the hacks which make
      	the buttons look nice inside list items available to subclasses.
      	* app/widgets/gimplayerlistitem.[ch]: added a "linked" button.
    • Michael Natterer's avatar
      added virtual method context_item() which works like select_item() and · 29fc0026
      Michael Natterer authored
      2001-04-29  Michael Natterer  <mitch@gimp.org>
      	* app/widgets/gimpcontainerview.[ch]: added virtual method
      	context_item() which works like select_item() and activate_item()
      	and a function to trigger the signal from subclasses (marked as
      	* app/widgets/gimpcontainerlistview.c: invoke context_item() on
      	right click.
      	* app/widgets/gimpdrawablelistview.[ch]: implement context_item()
      	and show a context menu. The functions to show the menu as well as
      	functions to create a new drawable and to edit it's attriutes must
      	be passed to the constructor now.
      	* app/gui/channels-commands.[ch]
      	* app/gui/layers-commands.[ch]: added functions which show the
      	layers and channels context menus. No accelerators supported yet.
      	Auto-destroy all dialogs when their drawable is removed from the
      	* app/gui/dialogs-constructors.c: changed the calls to
      	gimp_drawable_list_view_new() accordingly.
      	* app/gui/menus.c
      	* app/gui/test-commands.[ch]: removed some test dialogs.
  7. 28 Apr, 2001 3 commits
    • David Neary's avatar
      This got missed in the last commit. · f4f40a20
      David Neary authored
      This got missed in the last commit.
    • David Neary's avatar
      Separated the transform options stuff from the gimptransformtool files so · 8676c6ac
      David Neary authored
        * app/tools/transform_options.[ch]: Separated the transform
          options stuff from the gimptransformtool files so that each
          of the transform tools to make is available to the other transform
        * app/tools/gimptransformtool.c
        * app/tools/gimpscaletool.c
        * app/tools/gimpsheartool.c
        * app/tools/gimprotatetool.c
        * app/tools/gimpperspectivetool.c
        * app/tools/Makefile.am: Changed accordingly
    • Michael Natterer's avatar
      added RunModeType. removed RunModeType. don't scan app/plug_in.h for · 06f63a44
      Michael Natterer authored
      2001-04-28  Michael Natterer  <mitch@gimp.org>
      	* app/appenums.h: added RunModeType.
      	* app/plug_in.h: removed RunModeType.
      	* tools/pdbgen/Makefile.am: don't scan app/plug_in.h for enums.
      	* tools/pdbgen/enums.pl: regenerated.
      	* app/file-open.[ch]
      	* app/file-save.[ch]
      	* app/file-utils.[ch]: removed all GUI specific code.
      	* app/gui/Makefile.am
      	* app/gui/file-dialog-utils.[ch]
      	* app/gui/file-open-dialog.[ch]
      	* app/gui/file-save-dialog.[ch]: new files.
      	Renamed file_open() to 	file_open_with_display().
      	* app/app_procs.c
      	* app/docindex.c
      	* app/gimpdnd.c
      	* app/gui/commands.c
      	* app/gui/gui.c
      	* app/gui/menus.c: changed accordingly.
  8. 27 Apr, 2001 1 commit
    • Michael Natterer's avatar
      removed stuff which now lives in gui/gui.c, removed global variable · 3aec2256
      Michael Natterer authored
      2001-04-27  Michael Natterer  <mitch@gimp.org>
      	* app/app_procs.[ch]: removed stuff which now lives in gui/gui.c,
      	removed global variable "we_are_exiting", made app_init() static.
      	* app/appenv.h: removed "we_are_exiting".
      	* app/colormaps.c: don't #include "app_procs.h"
      	* app/file-open.[ch]
      	* app/file-save.[ch]: removed the *_pre_init() functions and
      	renamed the *_post_init() functions to *_menu_init().
      	* app/gui/gui.c: added more GUI init and shutdown code from
  9. 26 Apr, 2001 1 commit
    • Michael Natterer's avatar
      only work around option menu reference problems if the removed item was · bcfeb4ac
      Michael Natterer authored
      2001-04-26  Michael Natterer  <mitch@gimp.org>
      	* app/widgets/gimpcontainermenuimpl.c: only work around option
      	menu reference problems if the removed item was the active one.
      	* app/widgets/gimpimagedock.c: don't try to avoid a recursive
      	signal emission in gimp_image_dock_image_changed() but work around
      	it. This makes the image menu work finally.
      	* app/gui/dialogs-constructors.c: removed debugging output.
  10. 25 Apr, 2001 1 commit
  11. 24 Apr, 2001 8 commits
  12. 23 Apr, 2001 5 commits
    • 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.
    • Sven Neumann's avatar
      Merged Yosh's changes from stable branch: · 2c89973c
      Sven Neumann authored
      2001-04-23  Sven Neumann  <sven@gimp.org>
      	Merged Yosh's changes from stable branch:
      	* acinclude.m4: updated libtool stuff
              * configure.in: more #undefs so jpeglib.h test works
              * plug-ins/common/bumpmap.c: speedup patch from Ernst Lippe
              <ernstl@planet.nl> (tile cache size optimization)
    • Valek Frob's avatar
      Updated russian translation. · 57293f35
      Valek Frob authored
    • Valek Frob's avatar
      Updated russian translatuion. · 5881e059
      Valek Frob authored
    • Sven Neumann's avatar
      Merged changes from stable branch: · 8ad6b346
      Sven Neumann authored
      2001-04-23  Sven Neumann  <sven@gimp.org>
              Merged changes from stable branch:
              * plug-ins/perl/examples/terral_text: fixed typo.
              * plug-ins/perl/examples/image_tile
              * plug-ins/perl/examples/yinyang:
              applied gimp-kirchgessner-010422-0.patch which fixes problems with
              invalid number of parameters passed to some functions.
              * plug-ins/script-fu/interp_sliba.c: fixed problems with strbreakup
              reported by Mike Kelly <mike@csuchico.edu> (bugs #52383 and #52385)
  13. 22 Apr, 2001 2 commits
    • Keld Jørn Simonsen's avatar
      Translations from Keld · f1d19734
      Keld Jørn Simonsen authored
      evolution/po/da.po galeon/po/da.po gb/po/da.po gernel/po/da.po
      gimp/po/da.po glade/po/da.po gnome-applets/po/da.po
      gnome-core/po/da.po gnome-db/po/da.po gnome-pim/po/da.po
      gnomeicu/po/da.po gnumeric/po/da.po gtk+/po/da.po
      gtranslator/po/da.po nautilus/po/da.po pong/po/da.po
      sodipodi/po/da.po ximian-setup-tools/po/da.po
    • Michael Natterer's avatar
      cleanup. · 90e8b4d7
      Michael Natterer authored
      2001-04-22  Michael Natterer  <mitch@gimp.org>
      	* app/Makefile.am: cleanup.
      	* app/interface.c: #include "gimpui.h"
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs.c
      	* app/gui/menus.c
      	* app/gui/test-commands.[ch]: changes for the image menu below.
      	* app/apptypes.h
      	* app/widgets/Makefile.am
      	* app/widgets/gimpcontainermenu.[ch]
      	* app/widgets/gimpcontainermenuimpl.[ch]: new widgets. The actual
      	implemtation lives in a separate file because
      	gimpcontainermenu.c's code is identical to gimpcontainerview.c's
      	except for the base class. This will become an interface with Gtk 2.0.
      	* app/widgets/gimpimagedock.[ch]: a dock with an image menu. The
      	pages still don't follow the context correctly.
      	* app/widgets/gimpmenuitem.[ch]: a menu item with a preview.
      	* app/widgets/gimpdialogfactory.[ch]: pass a dock constructor to
      	the constructor and provide a method to create a new dock within
      	this factory's context.
      	* app/widgets/gimpdock.[ch]: removed the constructor because we
      	create only image docks now. Put the vbox into a main_vbox (which
      	also contains the image menu).
      	* app/widgets/gimpdockbook.[ch]: create new docks with the dialog
      	* app/gimpcontainer.[ch]
      	* app/gimpdata.[ch]
      	* app/gimpdatafactory.[ch]
      	* app/gimpdatalist.[ch]
      	* app/gimplist.[ch]
      	* app/gimpviewable.[ch]
      	* app/widgets/gimpbrushpreview.[ch]
      	* app/widgets/gimpcontainergridview.[ch]
      	* app/widgets/gimpcontainerlistview.[ch]
      	* app/widgets/gimpcontainerview.[ch]
      	* app/widgets/gimpdatafactoryview.[ch]
      	* app/widgets/gimpdockable.[ch]
      	* app/widgets/gimpdrawablelistitem.[ch]
      	* app/widgets/gimpdrawablelistview.[ch]
      	* app/widgets/gimpdrawablepreview.[ch]
      	* app/widgets/gimplayerlistitem.[ch]
      	* app/widgets/gimplayerlistview.[ch]
      	* app/widgets/gimplistitem.[ch]
      	* app/widgets/gimppalettepreview.[ch]
      	* app/widgets/gimppatternpreview.[ch]
      	* app/widgets/gimppreview.[ch]: ass-sign some copyrights.
  14. 21 Apr, 2001 2 commits
    • Kenneth Christiansen's avatar
      Translations from keld · 7b877f77
      Kenneth Christiansen authored
      control-center/po/da.po eog/po/da.po gb/po/da.po
      gernel/po/da.po gimp/po/da.po gnome-db/po/da.po
      gnome-libs/po/da.po gnome-lokkit/po/da.po gnome-print/po/da.po
      gnomeicu/po/da.po gphoto/po/da.po gtk+/po/da.po
      gtranslator/po/da.po libgda/po/da.po mc/po/da.po pan/po/da.po
      pong/po/da.po sodipodi/po/da.po ximian-setup-tools/po/da.po
    • Michael Natterer's avatar
      app/Makefile.am app/lc_dialogP.h removed stuff that will go away anyway · 44d41e8e
      Michael Natterer authored
      2001-04-21  Michael Natterer  <mitch@gimp.org>
      	* app/Makefile.am
      	* app/lc_dialogP.h
      	* app/paths_dialogP.h: removed stuff that will go away anyway (put
      	the declarations to the public headers).
      	* app/gimpui.[ch]: new function gimp_widget_get_callback_context()
      	which may only be called from a *_cmd_callback() and returns the
      	data we attached with weird methods.
      	* app/gui/Makefile.am
      	* app/gui/channels-commands.[ch]: callbacks independent from the
      	channels dialog and the "new" and "edit channel" dialogs.
      	* app/gui/channels-dialog.[ch]
      	* app/gui/layers-commands.c
      	* app/gui/layers-dialog.[ch]
      	* app/lc_dialog.[ch]
      	* app/gui/menus.c
      	* app/gui/paths-dialog.[ch]
      	* app/tools/gimpbezierselecttool.c
      	* po/POTFILES.in: changed accordingly.