Commit Graph

1964 Commits

Author SHA1 Message Date
Michael Natterer 50fe2885ad new prefs. page "Help System" because there will soon be more widgets
1999-11-20  Michael Natterer  <mitch@gimp.org>

	* app/preferences_dialog.c: new prefs. page "Help System" because
	there will soon be more widgets there (browser selection etc.)
	Cleaned up the "Display" and "Interface" pages a bit.

	* app/menus.c
	* plug-ins/common/plugindetails.c: add "...".

	* libgimp/gimpfileselection.c
	* libgimp/gimppatheditor.c: a widget shouldn't connect to it's own
	"realize" signal. Set widget_class->realize = <widget>_realize
	instead.
1999-11-20 14:27:07 +00:00
Sven Neumann 2ab36b085f include config.h to enable NLS
--Sven
1999-11-20 01:01:25 +00:00
Marc Lehmann df8b445be6 *** empty log message *** 1999-11-17 21:13:50 +00:00
Sven Neumann 51269ffffa some more work on the gimpcolorbutton and its usage
--Sven
1999-11-16 23:19:04 +00:00
Michael Natterer aec8918889 the chainbutton's parent_class is a GtkTable, not a GtkWidget. Code
1999-11-16  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimpchainbutton.c: the chainbutton's parent_class is a
	GtkTable, not a GtkWidget. Code formating paranoia.
1999-11-16 18:53:49 +00:00
Sven Neumann 148ef7b28e libgimp/gimpcolorbutton.c libgimp/gimpcolorbutton.h added dnd and a popup
* libgimp/gimpcolorbutton.c
        * libgimp/gimpcolorbutton.h
        * po/POTFILES.in: added dnd and a popup window on right-click that
        allows to load the current fg and bg colors.

        * po-plug-ins/POTFILES.in
        * plug-ins/common/Makefile.am
        * plug-ins/common/colortoalpha.c
        * plug-ins/common/plugin-defs.pl
        * plug-ins/script-fu/script-fu-scripts.c: made script-fu and the new
        colortoalpha plug-in use gimp_color_button

        * plug-ins/common/rotate.c: add " degrees" to the menu entries

--Sven
1999-11-15 18:37:03 +00:00
Sven Neumann a265c91c65 plugged more memleaks
--Sven
1999-11-06 18:19:41 +00:00
Michael Natterer 0302ed0a10 app/brush_select.[ch] app/gradient.c app/gradient_select.[ch]
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.
1999-11-03 09:58:46 +00:00
Sven Neumann 35cb0fa47e libgimp/Makefile.am new widget which provides a simple button with a color
* libgimp/Makefile.am
        * libgimp/gimpcolorbutton.[ch]: new widget which provides a simple
        button with a color preview together with a completely wired
        gtk_color_select_dialog. Color dnd will be added next.

        * libgimp/gimpchainbutton.c
        * libgimp/gimpchainbutton.h: cleaned up the code a bit and provided
        a destroy function which takes care of freeing the memory allocated
        for the pixmaps/bitmaps (well at least I hope it does).

        * libgimp/gimpunit.c: some cases were handled wrong in
        gimp_unit_get_digits().

        * plug-ins/megawidget/megawidget.c: follow the GUI conventions when
        building the action_area and internationalized the code.

        * plug-ins/common/CML_explorer.c: fixed a typo

--Sven
1999-10-31 21:00:32 +00:00
Michael Natterer 79e27e984a More context & dnd stuff... 1999-10-28 15:05:49 +00:00
Manish Singh d0519fd33d use G_OS_WIN32 and G_HAVE_CYGWIN #defines
* app/app_procs.c
* app/gdisplay_color.[ch]
* app/gdisplay_color_ui.c: make the ui usable

* app/gdisplay.c: enable cdisplay support

* modules/Makefile.am
* modules/cdisplay_gamma.c: moved gamma functionality to separate

-Yosh
1999-10-04 19:26:07 +00:00
Michael Natterer a11f33345d The GIMP Help System part II: press "F1" while browsing a menu to show the
1999-10-03  Michael Natterer  <mitch@gimp.org>

	The GIMP Help System part II: press "F1" while browsing a menu
	to show the help page for the menu entry you're currently over
	with the mouse.

	* app/color_notebook.c: all color selectors have to register with
	a help page now.

	* app/color_select.[ch]: register with a help string. Removed
	the dialog part of the files because it's use was deprecated
	anyway (use color notebooks instead).

	* app/colormap_dialog.i.c
	* app/colormap_dialog.p.h
	* app/palette.c
	* app/palette_select.c: use a color notebook instead of a color
	selector.

	* app/gimphelp.c
	* app/gimpui.c: minor changes.

	* app/gimprc.c: "use help" defaults to TRUE now.

	* app/lc_dialog.c
	* app/lc_dialogP.h: a special help function which shows the help
	for the currently selected notebook page.

	* app/menus.c: some weird code which catches "key_press_event"
	in all menu shells and pops up the corresp. help page for the
	selected item. Embedded the GtkItemFactoryEntry in a new
	GimpItemFactoryEntry to allow a help path to be stored.
	Will be partially exported and moved to gimphelp.[ch] later to
	catch key_press for plug-in menu items (don't try this now ;-)

	* app/app_procs.c
	* app/brush_edit.c
	* app/brush_select.c
	* app/channel_ops.c
	* app/channels_dialog.c
	* app/commands.c
	* app/convert.c
	* app/devices.c
	* app/file_new_dialog.c
	* app/fileops.c
	* app/gdisplay.c
	* app/gdisplay_color.c
	* app/gdisplay_color_ui.c
	* app/gdisplay_ops.c
	* app/global_edit.c
	* app/gradient.c
	* app/gradient_select.c
	* app/interface.c
	* app/layers_dialog.c
	* app/module_db.c
	* app/paths_dialog.c
	* app/pattern_select.c
	* app/preferences_dialog.c
	* app/qmask.c
	* app/resize.c
	* app/undo_history.c: changed all dialog constructors to point
	to the right place in the new help file structure.

	* configure.in
	* help/*: the basic new help file structure.

	* modules/colorsel_gtk.c
	* modules/colorsel_triangle.c
	* modules/colorsel_water.c: register a help page.

	* plug-ins/helpbrowser/helpbrowser.c: load the help files
	according to the new help file structure.
1999-10-03 13:50:19 +00:00
Michael Natterer 002aa905db app/Makefile.am app/gimphelp.[ch] new files
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).
1999-09-27 17:58:10 +00:00
Manish Singh 4a9ae94655 user_install added gimpressionist, levels, and curves dirs
* user_install
* user_install.bat: added gimpressionist, levels, and curves dirs

* app/color_panel.c
* app/color_select.c
* app/colormaps.[ch]
* app/palette.c
* app/selection.c: remove vestigal colormap code; use get_color
directly now

* libgimp/color_display.h
* app/gdisplay_color.c: bugfixes, added state load/save hooks,
redid the interface to work on blocks, removed dummy default
handler, work on gamma correction stuff

* app/gimpbrushpipe.c: #include <stdlib.h>

* app/gximage.c: minor cleanups

* app/levels.c: default to ~/.gimp-1.1/levels for load/save; minor
gui prettification

* app/main.c
* app/menus.c: plug-in menu translation patch from SHIRASAKI Yasuhiro
<yasuhiro@awa.tohoku.ac.jp>

* libgimp/stdplugins-intl.h: add INIT_I18N_UI() for calling
gtk_set_locale()

* plug-ins/Lighting/lightin_main.c: use INIT_I18N_UI()

-Yosh
1999-08-27 21:06:00 +00:00
Michael Natterer bb0447f165 app/channels_dialog.c app/color_area.c app/color_panel.c
1999-08-24  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* app/channels_dialog.c
	* app/color_area.c
	* app/color_panel.c
	* app/color_select.c
	* app/disp_callbacks.[ch]
	* app/gimpdnd.[ch]: pass the widget to the color dnd callbacks.

	* app/palette.c: color dnd for the palette dialog. Shift+click
	toggles setting the FG/BG color now.
1999-08-24 00:36:57 +00:00
Michael Natterer 90178ccb3a color dnd for the standard color selection widget (the "GIMP" color
1999-08-24  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* app/color_select.[ch]: color dnd for the standard color
	selection widget (the "GIMP" color notebook page).
1999-08-23 23:05:46 +00:00
Manish Singh 7cb07a90bf add sample_colorize and curve_bend defs
* plug-ins/common/plugin-defs.pl: add sample_colorize and
curve_bend defs

* libgimp/color_selector.h: minor consistency cleanup

* libgimp/gimpchainbutton.[ch]: use new style gtk object helper macros

* libgimp/gimpfileselection.c
* libgimp/gimpmatrix.h: minor cleanup

* libgimp/gimpintl.h: resync with gnome-i18n.h


* libgimp/color_display.h
* app/gimp.sym
* app/gdisplay_color.[ch]
* app/app_procs.c
* app/gdisplay.h
* app/image_render.c: color display transformation code. Still
unfinished, so it's not activated yet.

* app/buildmenu.h: remove unused defines (PULLDOWN, POPUP, OPTION)

* app/colormaps.[ch]
* app/image_render.c: remove vestigal dithering stuff

* app/convolve.h
* app/gimpdrawable.h
* app/gimpimage.h
* app/lut_funcs.h
* app/paint_funcs.h
* app/plug_in.h: enum nick changes from Marc

* app/channel_ops.c
* app/crop.c
* app/gdisplay.c
* app/gimpimage.[ch]
* app/move.c: s/([A-Z]+)_GUIDE/ORIENTATION_$1/

* app/flip_tool.[ch]
* app/shear_tool.[ch]: use ORIENTATION_* constants instead of our own

* app/disp_callbacks.c: remove HORIZONTAL and VERTICAL #defines

* app/general.h: enumified TOKEN_* symbols

* app/lc_dialog.c
* app/paint_funcs.c: remove unused variables

* tools/pdbgen/lib.pl: autogen gimpenums.h (unfinished)

* tools/pdbgen/stddefs.pdb: new std_orientation_enum, remove
layer_mode shortcut since we've skipped it in app/

* tools/pdbgen/pdb/brush_select.pdb
* tools/pdbgen/pdb/brushes.pdb
* tools/pdbgen/pdb/drawable.pdb
* tools/pdbgen/pdb/gimage.pdb
* tools/pdbgen/pdb/guides.pdb
* tools/pdbgen/pdb/layer.pdb
* tools/pdbgen/pdb/tools.pdb: reflect above enum changes, whitespace
cleanups

* tools/pdbgen/enums.pl
* app/brush_select_cmds.c
* app/brushes_cmds.c
* app/color_cmds.c
* app/drawable_cmds.c
* app/gimage_cmds.c
* app/layer_cmds.c
* app/procedural_db_cmds.c
* app/tools_cmds.c: reflect pdb and enum nick changes above

-Yosh
1999-07-28 23:00:08 +00:00
Michael Natterer a4c1e8a557 new ui for the "Layer Offset" dialog.
1999-07-22  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* app/channel_ops.[ch]: new ui for the "Layer Offset" dialog.

	* app/channels_dialog.c
	* app/layers_dialog.c: major code cleanup: Folded some callbacks
	into common ones, "widget" instead of "w", indentation, ...

	* app/commands.c
	* app/interface.[ch]
	* app/global_edit.c: the query boxes must be shown by the caller
	now. There's no need to split up the string for the message box
	manually as the Gtk 1.2 label widget handles newlines corectly.
	Added the "edge_lock" toggle to the "Shrink Selection" dialog.
	Nicer spacings for the query and message boxes.

	* app/ink.c: tried to grab the pointer in the blob preview but
	failed. Left the code there as a reminder (commented out).

	* app/menus.c: reordered <Image>/Select.

	I was bored and grep-ed the sources for ancient or deprecated stuff:

	* app/about_dialog.[ch]
	* app/actionarea.[ch]
	* app/app_procs.c
	* app/brush_edit.c
	* app/brush_select.c
	* app/color_select.c
	* app/convert.c
	* app/devices.c
	* app/gdisplay.c
	* app/gdisplay_ops.c
	* app/histogram_tool.[ch]
	* app/info_window.c
	* app/install.c
	* app/ops_buttons.c
	* app/palette.c
	* app/palette_select.c
	* app/paths_dialog.c
	* app/pattern_select.c
	* app/resize.c
	* app/scale_toolc.c
	* app/text_tool.c:
	s/container_border_width/container_set_border_width/g,
	s/sprintf/g_snprintf/g, replaced some constant string lengths with
	strlen(x).

	* app/bezier_select.c
	* app/blend.c
	* app/boundary.c
	* app/errors.[ch]
	* app/free_select.c
	* app/gimpbrushlist.c
	* app/gimprc.c
	* app/iscissors.c
	* app/main.c
	* app/patterns.[ch]
	* app/text_tool.c: namespace fanaticism: prefixed all gimp error
	functions with "gimp_" and formated the messages more uniformly.

	* app/gradient.c
	* app/gradient_select.c: same stuff as above for the ui
	code. There are still some sub-dialogs which need cleanup.

	Did some cleanup in most of these files: prototypes, removed tons
	of #include's, i18n fixes, s/w/widget/ as above, indentation, ...
1999-07-22 16:21:10 +00:00
Tomas Ogren adf422b263 Fixed some tyops
1999-07-22  Tomas Ogren  <stric@ing.umu.se>

* plug-ins/common/gifload.c:
* libgimp/gimpunitmenu.c: Fixed some tyops
1999-07-22 02:58:26 +00:00
Michael Natterer aaa3ef2161 app/Makefile.am new files. Does nothing yet. Checked in because I found
1999-06-17  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* app/Makefile.am
	* app/gimpcontext.[ch]: new files. Does nothing yet. Checked in
	because I found some bugs while hacking it:

	* libgimp/gimpchainbutton.[ch]
	* libgimp/gimpfileselection.[ch]
	* libgimp/gimppatheditor.[ch]
	* libgimp/gimpsizeentry.[ch]
	* libgimp/gimpunitmenu.[ch]: fixed some cut & paste bugs and some
	gtk 1.0 artefacts in the object class initialisation code.
1999-06-17 19:13:08 +00:00
Tomas Ogren 79be4895ec Misc l10n fixes
1999-06-06  Tomas Ogren  <stric@ing.umu.se>

* app/{color_notebook.c,color_select.c,lc_dialog.c,temp_buf.c,tool_options.c,tools.c}:
  Misc l10n fixes
1999-06-06 19:44:36 +00:00
Manish Singh f2622e5420 configure.in removed tips files, AC_SUBST GIMP_PLUGINS and GIMP_MODULES so
* configure.in
* Makefile.am: removed tips files, AC_SUBST GIMP_PLUGINS and
GIMP_MODULES so you can easily skip those parts of the build

* acinclude.m4
* config.sub
* config.guess
* ltconfig
* ltmain.sh: libtool 1.3.2

* app/fileops.c: shuffle #includes to avoid warning about MIN and
MAX

[ The following is a big i18n patch from David Monniaux
  <david.monniaux@ens.fr> ]

* tips/gimp_conseils.fr.txt
* tips/gimp_tips.txt
* tips/Makefile.am
* configure.in: moved tips to separate dir

* po-plugins: new dir for plug-in translation files

* configure.in: add po-plugins dir and POTFILES processing

* app/boundary.c
* app/brightness_contrast.c
* app/by_color_select.c
* app/color_balance.c
* app/convert.c
* app/curves.c
* app/free_select.c
* app/gdisplay.c
* app/gimpimage.c
* app/gimpunit.c
* app/gradient.c
* app/gradient_select.c
* app/install.c
* app/session.c: various i18n tweaks

* app/tips_dialog.c: localize tips filename

* libgimp/gimpunit.c
* libgimp/gimpunitmenu.c: #include "config.h"

* plug-ins/CEL
* plug-ins/CML_explorer
* plug-ins/Lighting
* plug-ins/apply_lens
* plug-ins/autostretch_hsv
* plug-ins/blur
* plug-ins/bmp
* plug-ins/borderaverage
* plug-ins/bumpmap
* plug-ins/bz2
* plug-ins/checkerboard
* plug-ins/colorify
* plug-ins/compose
* plug-ins/convmatrix
* plug-ins/cubism
* plug-ins/depthmerge
* plug-ins/destripe
* plug-ins/gif
* plug-ins/gifload
* plug-ins/jpeg
* plug-ins/mail
* plug-ins/oilify
* plug-ins/png
* plug-ins/print
* plug-ins/ps
* plug-ins/xbm
* plug-ins/xpm
* plug-ins/xwd: plug-in i18n stuff

-Yosh
1999-05-29 16:35:47 +00:00
Tor Lillqvist b6021023ee No need for <io.h> on Win32.
* libgimp/gimp.c: No need for <io.h> on Win32.

	* libgimp/{gimp,gimpui}.def: Add two entry points.

	* libgimp/gimp.h: Can't use __declspec(dllexport) for PLUG_IN_INFO
	when compiling with gcc on Win32. Also handle __argc, __argv and
	_stdcall differently with gcc on Win32

	* libgimp/gimpenv.c: Include <string.h>.

	* libgimp/gimpfeatures.h.in: Remove lots of extraneous trailing blanks.

	* libgimp/gimpfileselection.c: Include <glib.h> early, see above.

	* libgimp/{gimpwire,parasite}.c: Test for NATIVE_WIN32, not
	_MSC_VER.

	* libgimp/makefile.msc: Miscellaneous updates. The gimpi library
 	is now built as a static library.
1999-05-28 21:56:04 +00:00
Michael Natterer dcfb450b25 app/[all files with resolution info] libgimp/gimp.h libgimp/gimpimage.c
1999-05-22  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* app/[all files with resolution info]
	* libgimp/gimp.h
	* libgimp/gimpimage.c
	* libgimp/gimpsizeentry.[ch]
	* libgimp/gimpunit.[ch]
	* plug-ins/newsprint/newsprint.c
	* plug-ins/pgn/png.c
	* plug-ins/tiff/tiff.c: double instead of float for all resolution
	and unit-factor variables.

	* app/commands.c
	* app/crop.c
	* app/interface.c
	* app/layers_dialog.c
	* app/move_tool.c
	* app/resize.c
	* app/rotate_tool.c
	* app/scale_tool.c: pass the image's unit *and* gdisp->dot_for_dot
	to all functions which create sizeentries. Never create a
	sizeentry with UNIT_PIXEL but with the image's unit and set it's
	unit to UNIT_PIXEL after creation if dot_for_dot is on.
	This way the image's unit can always be picked from the menu
	without selecting "More...".

	* app/interface.c: made the query_*_box() functions use the
	ActionArea.

	* plug-ins/gimpunitmenu.c: GTK_WIN_POS_MOUSE for the unit
	selection dialog.
1999-05-22 17:56:35 +00:00
Michael Natterer e494bbd557 store resolution values as doubles, not floats.
1999-05-18  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* app/app_procs.c (and many of the files below): store resolution
	values as doubles, not floats.

	* app/brush_select.c
	* app/pattern_select.c: hide the "refresh" button in client
	dialogs. Don't know if this is desired but it fixes a SEGV.

	* app/file_new_dialog.c: New ui using code/ideas from Austin,
	Marco and Nick. The "size" frame is still a bit bloated but I
	didn't want to reduce it's functionality right now. It's closer to
	the result of the last discussion but not perfect yet...
	Added a dialog to confirm image sizes larger than the new
	max_new_image_size value.
	The new "reset" button uses the values from gimprc.
	Removed some #include's, added the copyright header.

	* app/gimprc.[ch]: new rc variable max_new_image_size.

	* app/preferences_dialog.c: added the "max image size"
	option. Generalized the mem size unit code.

	* app/resize.c: an additional box lets the offset widget always
	shrink correctly.

	* app/text_tool.c: fixed a minor memory leak.

	* libgimp/Makefile.am: add all widgets to libgimpui.*

	* libgimp/gimpfileselection.c: cosmetic changes.

	* libgimp/gimplimits.h: a maximum image size which should satisfy
	everybody ;)

	* libgimp/gimpsizeentry.c: allow the creation of sizeentries
	without fields. This (finally) enables arbitrary layout of the
	spinbuttons.

	* plug-ins/script-fu/script-fu-scripts.c: use the fileselection
	widget for script parameter SF_FILENAME.
1999-05-18 17:33:39 +00:00
Tor Lillqvist 1dea4958bb Win32 portability changes:
* config.h.win32, README.win32: Small changes.

	* tools/pdbgen/pdb/*.pdb: Include <string.h>.

	* app/*_cmds.c: Autogenerated files reflect above changes.

	* libgimp/makefile.msc app/makefile.msc: Various updates,
 	including new object files. Gtk+ directory now should be called
 	gtk+ (not gtk-plus). Use win32-specific gdk subdir. Glib directory
 	now should be called just glib.

	* libgimp/gimp.def: Updates.

	* libgimp/gimpfeatures.h.win32: Made current with
 	gimpfeatures.h.in.

	* libgimp/gimpfileselection.c: Define S_ISDIR and S_ISREG if
 	necessary.

	* tools/pdbgen/pdb/fileops.pdb: Must have a
 	statement (even an empty one) after a label.

	* app/fileops_cmds.c: Autogenerated file reflects above changes.

	* app/crop.c: Include <string.h>.

	* app/{app_procs,batch,fileops,datafiles,errorconsole,general,
 	plug_in,temp_buf,tile_swap}.c: Test NATIVE_WIN32, not
 	_MSC_VER. (NATIVE_WIN32 means we are using the Microsoft C
 	runtime, even if we might be compiling with gcc.)

	* app/fileops.c: Don't include <process.h> here.

	* app/fileops.h: Do include <process.h> here.

	* app/gimpparasite.c: Include config.h, guard inclusion of
 	<unistd.h>. (Is the inclusion of unistd.h in source files all over
 	the place really necessary?)

	* app/ink.c: MSC doesn't handle conversion from unsigned __int64
 	to double, so cast to signed.

	* app/lut_funcs.c: Include config.h, and define rint() if necessary.

	* app/pixel_processor.c: Include config.h without "..", like in
 	all the other places. Include <string.h>

	* app/text_tool.c: Guard the "POINTS" identifier that clashes with
 	<windows.h>, sigh.
1999-05-04 21:32:17 +00:00
Michael Natterer e7c8de57ae call gdisplays_resize_cursor_label(gimage) after changing the image's
1999-05-02  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* app/commands.c: call gdisplays_resize_cursor_label(gimage)
	after changing the image's unit.

	* app/gdisplay.c: update the cursor label after resizing it's
	frame, so the old (wrong) value gets overwritten.

	* app/resize.c: it makes more sense to take the image's unit from
	the "print size" frame rather than from "pixel dimensions".
	Set reasonable boundaries to avoid over/underflows with crazy
	resolutions. Code and gui cleanup.
	The constants for min/max image size/resolution should probably go
	to a central place.

	* app/text_tool.c: set the resolution in the X font spec only if
	the size is specified in points (reported by Austin).

	* libgimp/gimpsizeentry.c: fixed a bad bug in the boundary and
	resolution setting code (was not noticable before the new
	resize/scale ui).

	* plug-ins/gdyntext/*: version 1.4.3

	* plug-ins/png/png.c: gcc suggested parentheses.
1999-05-04 17:20:05 +00:00
Michael Natterer 26b9002cd1 app/commands.c app/layers_dialog.c new scale/resize ui: Use size entries
1999-05-02  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* app/commands.c
	* app/layers_dialog.c
	* app/resize.[ch]: new scale/resize ui:
	Use size entries instead of text entries, chainbuttons instead of
	check buttons. Put the stuff into frames. Added labels for the
	original width and height.
	It's possible to change resolution/unit now, please test if it
	does the right thing.

	* libgimp/gimpsizeentry.c: allow lower == upper when checking
	boundaries.
1999-05-02 14:24:54 +00:00
Asbjørn Pettersen 2bd871d7b4 Add <sys/types.h> 1999-04-22 06:50:29 +00:00
Sven Neumann b1d55510ca Cosmetic stuff...
--Sven
1999-04-20 11:13:33 +00:00
Michael Natterer 16e7aadaf3 app/gimpunit.c libgimp/gimpunit.[ch] libgimp/gimpunitmenu.c enabled
1999-04-06  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* app/gimpunit.c
	* libgimp/gimpunit.[ch]
	* libgimp/gimpunitmenu.c
	* libgimp/gimpsizeentry.[ch]: enabled "percent" pseudo-unit.
	New function gimp_size_entry_set_size() to set the values which
	will be treated as 0% and 100%.

	* app/crop.c
	* app/rotate_tool.c
	* app/scale_tool.c: enable "percent".

	* app/rect_select.c fixed size selections can be made in units and
	percent now, table layout, label adjustment.
1999-04-06 12:13:54 +00:00
Michael Natterer 24ffa60f1b #include <gtk/gtk.h>.
1999-04-05  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* app/action_area.h: #include <gtk/gtk.h>.

	* app/devices.c: made the "Input Devices" dialog follow the action
	area conventions. Grab pointer in the pattern/brush preview popups.

	* app/errorconsole.c: use the actionarea functions.

	* app/gimpunit.c: had the wrong copyright header.

	* app/info_dialog.c: correctly set the spinbuttons' digits.

	* app/perspectice_tool.c: removed #include <stdio.h> again but
	didn't forget to s/sprintf/g_snprintf/ this time.

	* app/preferences_dialog.c: unified order of varible definitions,
	removed some unused variables.

	* app/crop.c
	* app/file_new_dialog.c
	* app/info_dialog.[ch]
	* app/interface.c
	* app/preferences_dialog.c
	* app/rotate_tool.c
	* app/scale_tool.c
	* libgimp/gimpsizeentry.[ch]
	* libgimp/gimpunitmenu.[ch]: prepared for "percent" in size
	entries.
1999-04-05 12:48:48 +00:00
Michael Natterer f70fc7d307 made function headers ansi compliant.
1999-04-02  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* app/gimage_mask.[ch]: made function headers ansi compliant.

	* app/file_new_dialog.c
	* app/preferences_dialog.c: minor GUI and signal handling
	changes. Added a WM hint pixmap to the prefs dialog but commented
	it out because it looked ugly. If someone has a nice pixmap,
	please try it and tell me ;)

	* app/color_picker.c
	* app/crop.c
	* app/info_window.c
	* app/perspective_tool.c
	* app/rotate_tool.c
	* app/scale_tool.c
	* app/info_dialog.[ch]: the info_dialog allows scales, spinbuttons
	and sizeentries now. Made some dialogs use these widgets and
	added unit support. Sprinkled some g_snprintf's, removed
	#include's, ansi issues, ...

	* app/session.c: don't call a NULL callback.

	* libgimp/gimpsizeentry.[ch]: new function
	gimp_size_entry_add_field() which allows a more flexible GUI
	layout. More intelligent signal handling.
1999-04-02 19:46:59 +00:00
Michael Natterer 2f34216a2a app/brush_select.c app/channels_dialog.c app/color_select.c app/devices.c
1999-03-27  Michael Natterer  <mitschel@cs.tu-berlin.de>

        * app/brush_select.c
        * app/channels_dialog.c
        * app/color_select.c
        * app/devices.c
        * app/file_new_dialog.c
        * app/gradient_select.c
        * app/palette_select.c
        * app/pattern_select.c: applied a patch from Marco Lamberto
        <lm@geocities.com> which unifies actionareas ("Cancel" rightmost
        and default). Did the same in some more dialogs.

        * libgimp/gimpfileselection.c
        * libgimp/gimppatheditor.c
        * app/preferences_dialog.[ch]: completely reworked the preferences
        dialog:

        - select the notebook's pages with a tree.
        - reordered the categories. Please give me feedback, this really
          needs to be intuitive.
        - removed lots of unused #include's.
        - turned the prefs. dialog into a test site for new convenience
          constructors. These changes are however not visible. Flame me
          until they're perfect ;) When finished, this stuff can save
          *many* lines of gtk+ code.

        * modules/colorsel_gtk.c: made it circular.
1999-03-27 18:16:30 +00:00
Michael Natterer 737aa1a0de corrected a typo
1999-03-25  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* unitrc: corrected a typo

	* app/commands.c
	* app/global_edit.c
	* app/gradient.c
	* app/interface.[ch]
	* app/palette.c
	* app/paths_dialog.c: the query_[string|..]_boxes connect their
	close callback to a user provided signal now.

	* libgimp/gimpimage.c: gimp_image_get_unit() doesn't need a
	g_return_if_fail()

	* libgimp/gimpunitmenu.c: memory leak & compiler warning

	* configure.in
	* gimprc.in
	* user_install
	* user_install.bat
	* plug-ins/Makefile.am
	* plug-ins/FractalExplorer/*: added the FractalExplorer plugin.

	* app/install.c: ditto and made the install help text more
	editable by moving it to an array.
1999-03-25 23:14:36 +00:00
Michael Natterer 5e8ee554a2 This implements the rest of the unit system (unitrc loading and saving and
1999-03-16  Michael Natterer  <mitschel@cs.tu-berlin.de>

        This implements the rest of the unit system (unitrc loading and
        saving and full PDB interface)

        * Makefile.am
        * gimp.1
        * user_install
        * user_install.bat
        * unitrc: new file (default unit database) and some documentation

        * app/Makefile.am
        * app/gimpunit.c
        * app/gimpunit_cmds.h
        * app/unitrc.h: new files enabling the unit database and PDB
        access to the unit system

        * app/app_procs.c: parse and save unitrc
        * app/gimprc.[ch]: enable unit parsing. New function
        init_parse_buffers() to enable unitrc to be loaded before gimprc

        * app/gimage_cmds.[ch]: new PDB procedures which set/return an
        image's unit

        * app/install.c: mention unitrc installation

        * app/xcf.c: new xcf property for user defined units. An image's
        unit is saved as either an integer ID (built in units) or as
        a full unit definition without any ID

        * libgimp/Makefile.am: moved gimpunit.o from libgimpi.a to
        libgimp.a

        * libgimp/gimp.h
        * libgimp/gimpimage.c: get/set an image's unit with PDB calls

        * libgimp/gimpunit.h: this file is now the header for both
        app/gimpunit.c and libgimp/gimpunit.c

        * libgimp/gimpunit.c: does the unit calls as PDB calls now

        * libgimp/gimpunitmenu.[ch]: enable user unit functionality and a
        unit selection dialog

        * libgimp/gimpsizeentry.c: disble hilighting on focus_in_event and
        minor bugfixes

        * plug-ins/tiff/tiff.c: set image unit to "mm" if tiff unit is
        "cm", save "cm" if image unit is metric
1999-03-16 20:14:07 +00:00
Michael Natterer 844a73d33f removed two unused directories from plug-in-path.
1999-03-14  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* gimprc.in: removed two unused directories from plug-in-path.

	* app/file_new_dialog.c: make the first spinbutton grab the focus
	and one more unit initialisation bugfix

	* app/interface.c: grab focus in query_[string|int|..]_box()
	This still needs to be done in many dialogs to be consistent.

	* app/preferences_dialog.c: made the module-path configurable

	* libgimp/gimppatheditor.[ch]: change the order of the buttons to
	match the order in the L&C dialog

	* libgimp/gimpsizeentry.[ch]: enabled highlighting of the
	spinbuttons' contents on focus_in_event.
	Ugly new function gimp_size_entry_grab_focus() because it seems
	impossible to implement gtk_widget_grab_focus(sizeentry).
1999-03-14 18:03:58 +00:00
Michael Natterer 0be21f78bd checked in a buggy version before ;)
1999-03-14  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* libgimp/gimppatheditor.c: checked in a buggy version before ;)
1999-03-13 23:35:26 +00:00
Michael Natterer 98f9e4e4c8 only save sessionrc if the corresponding preferences option is enabled
1999-03-14  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* app/app_procs.c: only save sessionrc if the corresponding
	preferences option is enabled

	* app/preferences_dialog.c: preferences renovation part I: the
	directories page uses the new widgets from libgimp

	* libgimp/Makefile.am
	* ligbimp/gimpi.def
	* libgimp/gimpfileselection.[ch]
	* libgimp/gimppatheditor.[ch]: new widgets which enable a more
	comfortable file and searchpath selection

	* Makefile.am
	* pixmaps/no.xpm
	* pixmaps/yes.xpm: pixmaps used by the new widgets
1999-03-13 23:03:11 +00:00
Michael Natterer 3faf83af86 Moved all pixmaps and bitmaps from app/ and libgimp/ to pixmaps/
1999-03-12  Michael Natterer  <mitschel@cs.tu-berlin.de>

        Moved all pixmaps and bitmaps from app/ and libgimp/ to pixmaps/

	* app/tools/*
	* libgimp/chain.xpm: removed these files

	* pixmaps/*.[xpm|xbm]: new directory containing all pixmaps

	* app/Makefile.am
	* libgimp/Makefile.am
	* Makefile.am: changed list of EXTRA_DIST files accordingly

	* app/channels_dialog.c
	* app/layers_dialog.c
	* app/paths_dialog.c
	* app/palette.c
	* libgimp/gimpchainbutton.c: adjusted some #include's
1999-03-12 22:43:12 +00:00
Michael Natterer f3d1c7ef7d correct resolution size_entry initialisation.
1999-03-12  Michael Natterer  <mitschel@cs.tu-berlin.de>

        * app/preferences_dialog.c: correct resolution size_entry
        initialisation.

        * libgimp/gimpsizeentry.c: fixed the update bug reported by Marc.
        Works now but still needs discussion...
1999-03-12 20:00:48 +00:00
Michael Natterer 7fd5b7c18e This is mostly unit stuff and code cleanup
1999-03-12  Michael Natterer  <mitschel@cs.tu-berlin.de>

        This is mostly unit stuff and code cleanup

        * libgimp/gimpi.def: add some functions

        * libgimp/gimpsizeentry.[ch]: new function
        gimp_size_entry_set_refval_digits() which allows for float pixel
        input. SIGFPE bugfix from Yasuhiro Shirasaki
        <yasuhiro@awa.tohoku.ac.jp>, minor bugfixes.

        * libgimp/gimpunitmenu.[ch]: add a separator after "pixels",
        bugfixes.

        * app/interface.[ch]: split up the old query_string_box() into
        query_[string|int|float|size]_box(). All functions take an
        optional GtkObject* parameter and connect to that object's
        "destroy" signal, this fixes some segfaults. And a global
        s/container_border_width/container_set_border_width/

        * app/commands.s: grow, shrink, border, feather now use the
        query_size_box. Used MIN(xres,yres) for now for the pixel<->unit
        calculations. Fixed some memory leaks.

        * app/global_edit.c
        * app/gradient.c
        * app/palette.c
        * app/paths_dialog.c: changed the query_string_box() calls
1999-03-12 03:44:59 +00:00
Sven Neumann 151c624be1 There were a few changes from Michael left, that I didn't knew of.
--Sven
1999-03-03 17:10:50 +00:00
Sven Neumann 39f9e9ae3d Thanks to Michael who sent a patch that inspired me, the chain-button now
looks much better.


--Sven
1999-03-03 15:00:56 +00:00
Sven Neumann 984d90a5a5 Hacking away on the file_new_dilaog.
--Sven
1999-03-02 00:31:39 +00:00
Sven Neumann 764d88274b Applied the patch to the gimpsizeentry Michael Natterer sent me.
--Sven
1999-02-24 18:30:58 +00:00
Sven Neumann f2e351cc5b Moved the gimpentry stuff to gimpsizeentry and made it use the new
gimpunit functionality.


--Sven
1999-02-21 21:45:50 +00:00
Sven Neumann f37c368371 Added the gimpunitmenu-widget Michael Natterer contributed.
--Sven
1999-02-21 19:50:37 +00:00
Tor Lillqvist a27cedc001 First batch of changes to merge the Win32 version. This will be
done in pieces, don't expect to be able to compile on Win32 from
these sources yet.  Ans of course, the official version of GTk+
doesn't include the Win32 stuff yet.
1999-02-20 23:20:54 +00:00
GMT 1999 Austin Donnelly d40b66ac1d don't try and gdk_window_get_size() when we haven't been realised yet.
Sat Jan 23 20:36:06 GMT 1999  Austin Donnelly  <austin@gimp.org>

	* app/color_select.c: don't try and gdk_window_get_size() when we
	    haven't been realised yet.

	* app/gimpset.[ch]: allow the use of GTK_TYPE_NONE for storing
	    sets of things that aren't GTK_OBJECTs.  Set can also emit new
	    signal "member_modified" when gimp_set_member_modified (set,
	    ob) is called.

	* app/layers_dialog.c: show main dialog shell last, to avoid ugly
 	    window manager interaction.

	* app/module_db.c: can now handle not having any modules at all
	    without segfaulting, plus proper updates on changes.  Also now
	    has refresh button to re-scan the filesystem for modules.

	* modules/colorsel_triangle.c: added module_unload() function.
  	    Still needs someone to spruce up the UI.  Volunteers?

	* plug-ins/script-fu/scripts/select_to_image.scm: create display
 	    for newly duplicated image, otherwise you don't see anything.
1999-01-23 21:07:57 +00:00
GMT 1999 Austin Donnelly d8be79f036 Bit of a large checkin this - it's basically three things: 1 - GimpModules
Sun Jan 11 00:24:21 GMT 1999  Austin Donnelly  <austin@greenend.org.uk>

	Bit of a large checkin this - it's basically three things:
	  1 - GimpModules using gmodules to dynamically load and
	       initialise modules at gimp start of day.
	  2 - Color selectors now register themselves with a color
	       notebook.
	  3 - progress bars have been cleaned up a bit, so now have
	       progress indictations on all transform tool and gradient
	       fill operations.  Not done bucket fill, but that seems to
	       be the next candidate.

	New directories:
	* modules/: new directory for dynamically loadable modules.

	New files:
	* modules/.cvsignore
	* modules/Makefile.am
	* modules/colorsel_gtk.c: GTK color selector wrapped up as a
	    color selector the gimp can use.

	* app/gimpprogress.[ch]: progress bars within gimp core, either as
	    popups, or in the status bar.  This is mainly code moved out
	    of plug-in.c

	* app/color_notebook.[ch]: color selector notebook, implementing
	    very similar interface to color_select.h so it can be used as
	    a drop-in replacement for it.

	* libgimp/color_selector.h: API color selectors need to implement
	    to become a page in the color_notebook.

	* libgimp/gimpmodule.h: API gimp modules need to implement to be
	    initialised by gimp at start of day.

	Modified files:
	* Makefile.am: add modules/ to SUBDIRS
	* libgimp/Makefile.am: install gimpmodule.h and color_selector.h
	* app/gimprc.[ch]: recognise module-path variable.
	* gimprc.in: set module-path variable to something sensible
	    (currently "${gimp_dir}/modules:${gimp_plugin_dir}/modules").
	* app/Makefile.am: build color notebook and gimpprogress
	* app/app_procs.c: register internal GIMP color selector with
	    color notebook.
	* app/asupsample.c: call progress function less frequently for
	    better performance.
	* app/asupsample.h: progress_func_t typedef moved to gimpprogress.h
	* app/blend.c: make callbacks to a progress function
	* app/color_area.c: use a color notebook rather than a color selector
	* app/color_panel.c: ditto
	* app/color_select.c: export color selector interface for notebook
	* app/color_select.h: color_select_init() prototype
	* app/flip_tool.c: flip the image every time, rather than every
	    second click.
	* app/interface.c: move progress bar stuff out to
	    gimpprogress.c.  Make the code actually work while we're at it.
	* app/interface.h: move prototypes for progress functions out to
	    gimpprogress.h
	* app/plug_in.c: load and initialise modules (if possible). Move
	    progress bar handling code out to gimpprogress.c
	* app/plug_in.h: keep only a gimp_progress * for each plugin, not
	    a whole bunch of GtkWidgets.
	* app/scale_tool.c
	* app/rotate_tool.c
	* app/shear_tool.c
	* app/perspective_tool.c: progress bar during operation.
	    De-sensitise the dialog to discourage the user from running
	    two transforms in parallel.
	* app/transform_core.c: recalculate grid coords when bounding box
	    changes.  Only initialise the action area of the dialog once,
	    to avoid multiple "ok" / "reset" buttons appearing.  Undraw
	    transform tool with correct matrix to get rid of handle
	    remains on screen.  Call a progress function as we apply the
	    transform matrix.  A few new i18n markups.  Invalidate
	    floating selection marching ants after applying matrix.
	* app/transform_core.h: transform_core_do() takes an optional
	    progress callback argument (and data).
	* plug-ins/oilify/oilify.c: send progress bar updates after every
	    pixel region, not only if they processed a multiple of 5
	    pixels (which was quite unlikely, and therefore gave a jerky
	    progress indication).
1999-01-11 00:57:33 +00:00
CST 1998 Shawn T. Amundson b556943f2c app/channel_ops.c app/color_balance.c app/color_select.c app/commands.c
Thu Dec  3 16:51:42 CST 1998 Shawn T. Amundson <amundson@gtk.org>

        * app/channel_ops.c
        * app/color_balance.c
        * app/color_select.c
        * app/commands.c
        * app/convert.c
        * app/curves.c
        * app/docindex.c
        * app/errorconsole.c
        * app/file_new_dialog.c
        * app/fileops.c
        * app/gdisplay_ops.c
        * app/histogram_tool.c
        * app/info_dialog.c
        * app/layer_select.c
        * app/levels.c
        * app/pattern_select.c
        * app/plug_in.c
        * app/posterize.c
        * app/resize.c
        * app/threshold.c
        * app/tips_dialog.c: use gtk_container_set_border_width and
          gtk_window_set_position instead of deprecated versions
1998-12-03 23:01:44 +00:00
EDT 1998 Adrian Likins 25721826d0 Lots of ii8n stuff here and some additions to the de.po. Applied
Wed Oct 14 17:46:15 EDT 1998 Adrian Likins <adrian@gimp.org>

        * app/*, po/de.po, de/POTFILES.in, libgimp/gimpintl.h:
        Lots of ii8n stuff here and some additions to the de.po.
        Applied gimp-egger-981005-1 ,gimp-egger-981006-1,
        gimp-egger-981007-1, gimp-egger-981008-1,
        gimp-egger-981009-1.patch, gimp-egger-981010-1.patch

        * plug-in/guillotine/guillotine.c: added the coordinates
        of the split images from the original image to the title.
        ie foo.jpg (0,0) for the image in the topleft.

        * plug-in/script-fu/scripts/neon-logo.scm,
        perspective-shadow.scm, predator.scm,rendermap.scm,
        ripply-anim.scm, select_to_image.scm,swirltile.scm,
        xach-effect.scm: updated scripts to use new script-fu stuff

wooo boy! a big un!

	in testing this, it looks like some of the po files are busted.
but the code stuff seems okay.

-adrian
1998-10-14 23:23:52 +00:00
Austin Donnelly 48ebaf8beb app/color_select.c: fix silly bug with off-by-one error in
redraw of crosshair.
	A line of length x has pixels from 0 .. (x-1), not 0 .. x
1998-10-14 22:18:56 +00:00
Manish Singh 0c635a62c1 libgimp/gimp.h plug-ins/jpeg.c applied gimp-austin-981010-0, fixes
* libgimp/gimp.h
* plug-ins/jpeg.c
* plug-ins/tiff.c: applied gimp-austin-981010-0, fixes compilation
warnings for jpeg and tiff plugin

* plug-ins/tiff/tiff.c: applied gimp-austin-981011-0, adds comment
parasite support to tiff plugin

* app/color_select.c: applied gimp-austin-981011-1, fixes color
selector redraw bug

* app/layer.c: applied gimp-austin-981011-2, fixes marching ants
weirdness (doesn't move when selection moved)

-Yosh
1998-10-11 22:50:03 +00:00
Raph Levien fe6c43af7c Fixed up loose ends with the GdkRgb integration. Color selection areas are
dithered now, and dither patterns align correctly when scrolling.
1998-08-31 22:22:23 +00:00
Raph Levien 65ae5245d0 This is the integration of GdkRgb into Gimp. 1998-08-20 06:46:07 +00:00
Adrian Likins 7ee605514b just a minor fix up for sven.. in color_select.c and plug_in.c
just a minor fix up for sven.. in color_select.c and plug_in.c

-adrian
1998-06-22 20:28:48 +00:00
Manish Singh db8b85fdae added a hex triplet to the color selector. It updates on focus_leave for
* app/color_select.[ch]: added a hex triplet to the color selector. It
updates on focus_leave for now, so I bet there are some interface nits...

* app/fileops.c: add an #include to quell a warning

-Yosh
1998-06-09 00:25:28 +00:00
Manish Singh 84abd5d700 Have fun recompiling gimp everyone. It's the great FSF address change!
-Yosh
1998-04-13 05:44:11 +00:00
Tim Janik 2b52f8a864 fixed a lot of the destroy handlers and delete_event handlers, still
not everything perfect, though.
-timj
1998-03-12 22:01:43 +00:00
Manish Singh 3dab9dcc86 More changes for .18. Please see ChangeLog
-Yosh
1998-01-26 03:14:09 +00:00
Adrian Likins c62f70ab13 added a call to gtk_window_set_wmclass to most of the gimp
dialogs

-adrian
1998-01-25 22:13:00 +00:00
Elliot Lee 32cefec8f7 Initial revision 1997-11-24 22:05:25 +00:00