1. 01 Oct, 1999 1 commit
    • Austin Donnelly's avatar
      comment typo fix, plus add %D* to default image-title-format string, so · 11409e97
      Austin Donnelly authored
      Fri Oct  1 12:46:12 1999  Austin Donnelly  <austin@gimp.org>
      
      	* gimprc.in: comment typo fix, plus add %D* to default
      	    image-title-format string, so people get a '*' in the titlebar
      	    if their image is dirty.
      	* app/fileops.c: initialise filename before using it.
      	* app/gdisplay.c: empty parameter list () is K&R - should be
      	    stronger (void) in ANSI C.
      	* app/gimpdrawable.c: gimp_drawable_{dirty,clean} functions
      	    removed - no one uses them anyway.  Parasite undo type is
      	    proper parasite undo type, not MISC_UNDO.
      	* app/gimpdrawableP.h: drawable dirty bit removed.
      	* app/gimpimage.c: don't change the resolution if there's no
      	    difference from the old one.  Call gdisplay_shrink_wrap() to
      	    re-calculate scale factors and refresh the display on
      	    resolution change.  Layer undo doesn't have sub-types
      	    anymore, uses main UndoType instead.
      	* app/layer.h: Remove LayerUndoType
      	* app/qmask.c: fix qmask undo so it actually works.
      	* app/undo.h: new types for undo_push_layer{,_mask} and
      	    undo_push_qmask.
      	* app/undo.c: change way group boundaries are represented:
      	    each Undo has a group_boundary boolean set to TRUE if this is
      	    the start or the end of a group, and the type of the Undo is
      	    the group's type.  Within a group, each Undo keeps its own
      	    type.  This allows pop funcs and free funcs to do
      	    type-specific things (eg needed by layer and channel stuff).
      	    Don't maintain per-drawable dirty flags anymore.   Floating
      	    sel to layer and layer rename now uses meaningful undo types.
      	* app/undo_types.h: more specific undo types:
      	    LAYER_{ADD,REMOVE}_UNDO, LAYER_MASK_{ADD,REMOVE}_UNDO,
      	    LAYER_RENAME_UNDO, and PARASITE_{ATTACH,DETACH}_UNDO.
      	* app/undo_history.c: oops - undo stack was being placed into gtk
      	    list in wrong order.
      	* app/edit_selection.c: push more descriptive LAYER_DISPLACE_UNDO
      	    rather than MISC_UNDO.
      	* app/layers_dialog.c: better tagging of undo types
      11409e97
  2. 29 Sep, 1999 2 commits
  3. 28 Sep, 1999 1 commit
  4. 27 Sep, 1999 2 commits
    • Manish Singh's avatar
      revert that last set_locale change, it was bogus · dbc143a6
      Manish Singh authored
      * app/main.c: revert that last set_locale change, it was bogus
      
      * app/gdisplay.c: don't update menu sensitivities when flushing
      immediately, so that painting isn't slowed by it
      
      -Yosh
      dbc143a6
    • Michael Natterer's avatar
      app/Makefile.am app/gimphelp.[ch] new files · 002aa905
      Michael Natterer authored
      1999-09-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/gimphelp.[ch]
      	* app/gimpui.[ch]: new files
      
      	* app/interface.[ch]
      	* app/preferences_dialog.[ch]
      
      	The GIMP Help System part 1: Press "F1" in any dialog to pop up
      	the help page for this dialog.
      
      	Moved the widget constructors from preferences_dialog.[ch] and the
      	query boxes from interface.[ch] to gimpui.[ch].
      
      	The dialog constructors take a help_func and a help_data
      	parameter and install the "F1" accelerator which emits the new
      	"help" signal.
      
      	The "help" signal callback calls help_func(help_data) which finally
      	has to call gimp_help() which in turn invokes the help browser.
      
      	Still have to find a proper way to (1) prevent "F1" being assigned
      	to some menu item and (2) to catch "F1" while browsing the menu
      	trees in order to pop up the help for the selected item.
      
      	* app/menus.c: a <Toolbox>/File/Help... menu item.
      	* app/commands.[ch]: a command callback for the "Help..." menu item.
      
      	* app/gimprc.[ch]: new boolean gimprc variable "use_help".
      
      	* app/info_dialog.[ch]: pass a help function and data to the info
      	dialog constructor.
      
      	* app/tools.[ch]: store the tools help page names in the tool info
      	structure. Export a special tools_help_func() which shows the help
      	page for the active tool.
      
      	* app/[all files calling a dialog constructor]: pass the dialog's
      	help page to the constructor.
      
      	Most dialogs are now created by gimp_dialog_new() which also sets
      	up the action_area and the WM delete event callback, so I removed
      	the resp. code from these files.
      
      	Fixed some minor bugs and did some other stuff but didn't change
      	any logic except dialog creation.
      
      	* plug-ins/helpbrowser/helpbrowser.c: don't try to call a running
      	help browser and don't install any menu path (all done in
      	app/gimphelp.[ch] now).
      002aa905
  5. 26 Sep, 1999 1 commit
    • Sven Neumann's avatar
      Cleanups... · ae743e3f
      Sven Neumann authored
      Shame on the one who decided it would be good idea to load pixmap brushes
      as pipes, it destroys the whole purpose of the GIMP_IS_BRUSH_PIPE macro!!
      
      
      --Sven & Jtl
      ae743e3f
  6. 25 Sep, 1999 2 commits
  7. 23 Sep, 1999 2 commits
    • Manish Singh's avatar
      app/channel.h app/gimpimage.h app/gimpimageP.h app/layer.h app/undo.[ch] · 7d62a34e
      Manish Singh authored
      * app/channel.h
      * app/gimpimage.h
      * app/gimpimageP.h
      * app/layer.h
      * app/undo.[ch]
      * app/undo_types.h: use proper naming convention for undo enums,
      and hide them from the pdbgen stuff
      
      * app/procedural_db.h: don't skip PDB_END
      
      * app/undo_history.c: remove gccism from undo_history_append_special
      
      * libgimp/gimpintl.h: INIT_LOCALE should be defined in all cases
      
      * plug-ins/script-fu/Makefile.am: add script-fu-constants.[ch]
      
      * plug-ins/script-fu/script-fu.c: use init_generated_constants
      
      * plug-ins/script-fu/siod.h: #include <stdio.h> for FILE *
      
      * tools/pdbgen/script-fu.pl: new file
      
      * tools/pdbgen/Makefile.am: add rule for constant script-fu gen
      
      * tools/pdbgen/enumgen.pl: add enum skip feature
      
      * tools/pdbgen/lib.pl: use nicks for gimpenums.h
      
      * tools/pdbgen/pdb/procedural_db.pdb: ignore PDB_END
      
      -Yosh
      7d62a34e
    • Sven Neumann's avatar
      i18n patch from Daniel Egger · ba211f07
      Sven Neumann authored
      
      --Sven
      ba211f07
  8. 21 Sep, 1999 1 commit
  9. 20 Sep, 1999 1 commit
    • EDT 1999  Austin Donnelly's avatar
      Honest, guv, it's not a feature - it's a tightly integrated package of · bf8db4ad
      EDT 1999 Austin Donnelly authored
      Mon Sep 20 12:51:30 EDT 1999  Austin Donnelly  <austin@gimp.org>
      
      	Honest, guv, it's not a feature - it's a tightly integrated
      	package of undo system cleanups and fixes.
      
      	NEW FILES:
      	* app/undo_history.c: window showing recent undo (and redo) steps
      	    available.
      	* app/undo_types.h: broken out of undo.h to fix circular includes.
      
      	MODIFIED FILES:
      	* app/Makefile.am: compile undo_history.c
      	* app/channel.h: use enum for channel undo type, not just magic
      	    numbers.
      	* app/layer.h: same for layer undos.
      	* app/commands.c: edit_show_undo_history_cmd_callback() function to
      	    pull up undo history window.
      	* app/commands.h: prototype for above.
      	* app/gdisplay.c: make undo / redo menu items sensitive according
      	    to whether they would do anything.  Would be easy to change
      	    the text to say what would be undone/redone, but I don't know
      	    the GTK.
      	* app/gimpimage.c: new signal emitted by gimage:
      	    UNDO_EVENT. gimp_image_undo_event() function to emit it.
      	* app/gimpimage.h: prototype for above.
      	* app/gimpimageP.h: pushing_undo_group member is now an undo_type,
      	    not an int.  Keep undo history widget here too (if created).
      	* app/menus.c: add "Edit/Undo history..." to image menu.
      	* app/undo.c: new types: enums undo_type and undo_state rather than
      	    ints and magic numbers.  All undo_pop_* and undo_free_*
      	    functions made static.  New static function
      	    undo_type_to_name().  Issue undo event signals on various
      	    important events (eg undo pushed, undo popped etc).
      	    undo_push() now takes a "dirties_image" arg to say whether
      	    image should be dirtied.  Layer moves now dirty the image.  A
      	    couple of g_return_if_fails () on undo_pop and undo_redo to
      	    assert we're not in the middle of an undo group.
      	    undo_get_{undo,redo}_name() to peek at names of top items on
      	    undo and redo stacks resp.   undo_map_over_{undo,redo}_stack()
      	    to run a function for each item or group on stack.  Layer and
      	    channel undos use symbolic names rather than 0 or 1.  Array
      	    mapping undo types to names.
      	* app/undo.h: split out undo types to undo_types.h.  Prototypes
      	    for functions described above.  undo_event_t enum.
      	    undo_history_new() prototype lives here too.
      
      	Random other fixes:
      	* app/gimpdrawable.c
      	* app/image_render.c: default labels in switches to keep egcs happy.
      
      	* app/nav_window.c: some fixes to (sort of) cope with image res !=
      	    screen res.  Still needs work to handle non-square pixels
      	    properly.
      
      	* app/paths_dialog.c: bad idea to call gimp_image_dirty()
      	    directly.  Even though it's currently commented out.
      bf8db4ad
  10. 14 Sep, 1999 1 commit
  11. 11 Sep, 1999 1 commit
    • BST 1999 Andy Thomas's avatar
      app/nav_window.c app/floating_sel.c · d045b966
      BST 1999 Andy Thomas authored
      Sat Sep 11 22:45:12 BST 1999 Andy Thomas <alt@gimp.org>
      
      	* app/nav_window.c
      	* app/floating_sel.c
      
      	Hopefully fix for nav_popup when using tablets.
      	Also applied the patch supplied by Garry R. Osgood. Thanks.
      d045b966
  12. 09 Sep, 1999 2 commits
  13. 07 Sep, 1999 1 commit
  14. 06 Sep, 1999 1 commit
  15. 04 Sep, 1999 1 commit
  16. 02 Sep, 1999 4 commits
    • Manish Singh's avatar
      app/gtkhwrapbox.[ch] sync from gle · 52b52220
      Manish Singh authored
      * app/gtkhwrapbox.[ch]
      * app/gtkwrapbox.[ch]: sync from gle
      
      * app/inteface.c: set allow_shrink on the toolbox window, use
      gtk_hwrap_box_new
      
      * app/blend.c: use shift to constrain to 45 deg: XachCode (tm)
      
      -Yosh
      52b52220
    • jaycox's avatar
      free the brush dialog before freeing the brushes. · 2b5130f0
      jaycox authored
      
      	* app/app_procs.c: free the brush dialog before freeing the brushes.
      
      	* app/blend.c, app/bucket_fill.c: don't include brush_select.h
      
      	* app/brush_select.[ch]: add the ability to delete generated brushes.
      
      	* app/gimpbrushgenerated.c: save the brush parameters on seperate lines.
      
      	* app/gimpbrushlist.c: make sure we don't overwrite other brush
      	files when saving newly created brushes.
      2b5130f0
    • Manish Singh's avatar
      add gimpmath.h · 9fb081a7
      Manish Singh authored
      * libgimp/Makefile.am: add gimpmath.h
      
      * app/gtkwrapbox.[ch]
      * app/gtkhwrapbox.[ch]: wrapbox widget from gle
      
      * app/Makefile.am: added those files
      
      * app/interface.c: use an hwrapbox for the toolbar. Still not perfect
      yet, working on it.
      
      * app/gimpdrawable.c
      * app/about_dialog.c
      * app/airbrush.c
      * app/blend.c: some minor code cleanup
      
      -Yosh
      9fb081a7
    • Tor Lillqvist's avatar
      New files. Types and functions related to "standard" parasite types. Used · 5475ff08
      Tor Lillqvist authored
      1999-09-02  Tor Lillqvist  <tml@iki.fi>
      
      * libgimp/parasiteio.[ch]: New files. Types and functions related
      to "standard" parasite types. Used for the
      gimp-brush-pipe-parameters parasite that the gpb and psp plug-ins
      handle, and the value of which is stored in gih files, from
      which gimpbrushpipe.c parses it.
      
      * libgimp/{Makefile.am,makefile.{cygwin,msc}}: Add new files.
      
      * libgimp/gimp.def: Add its entry points.
      
      * libgimp/gimp.h: Fix cosmetic argument name error.
      
      * app/gimpbrushpipe.c: Remove code that previously
      was copied here, use functions from parasiteio.c.
      
      * plug-ins/common/gpb.c: Ditto. Add brush cell width and height
      fields to the gih save dialog. Add cleverness to update rows and
      columns as cell size is changes. (Still too easy for the user to
      get confused, though.) Display corresponding guide grid on the
      image. Unfortunately updating the guidelines doesn't seem to work.
      
      * plug-ins/common/psp.c: Use functions from parasiteio.c.
      5475ff08
  17. 01 Sep, 1999 4 commits
    • BST 1999 Andy Thomas's avatar
      app/gdisplay.c app/gdisplay.h app/interface.c app/nav_window.c · f380edd7
      BST 1999 Andy Thomas authored
      Wed Sep  1 23:18:21 BST 1999 Andy Thomas <alt@gimp.org>
      
      	* app/gdisplay.c
      	* app/gdisplay.h
      	* app/interface.c
      	* app/nav_window.c
      	* app/nav_window.h
      	* pixmap/navbutton.xpm (new)
      
      	New popup navigation window. press the icon that appears in
      	the bottom right-hand corner of the image display. A navigation
      	window will appear that will allow you to scroll around the image if
      	the area shown is smaller than the overall image size. Thanks to tml
              for the idea.
      f380edd7
    • Adam D. Moss's avatar
      ed Sep 1 21:27:27 BST 1999 Adam D. Moss <adam@gimp.org> · a437ece3
      Adam D. Moss authored
              * app/convert.c app/convert.h:
              Optional low-bleed FS dithering
      
              * app/fsdither.h: Tables are const
      
              * app/convert_cmds.c app/internal_procs.c tools/pdbgen/enums.pl
              tools/pdbgen/pdb/convert.pdb:
              Clean up 'convert' PDB interface cruft.
      a437ece3
    • Tor Lillqvist's avatar
      app/appenv.h New file. Includes <math.h>. Move G_PI, RINT(), ROUND() etc · 6ef23d98
      Tor Lillqvist authored
      1999-09-01  Tor Lillqvist  <tml@iki.fi>
      
      * app/appenv.h
      * libgimp/gimpmath.h: New file. Includes <math.h>. Move G_PI,
      RINT(), ROUND() etc from app/appenv.h here, so plug-ins can
      use them, too. Remove some commented-out old stuff in appenv.h.
      
      * libgimp/gimp.h: Include gimpmath.h.
      
      * libgimp/gimp.c (gimp_main): Win32: Don't install signal
      handlers, we can't do anything useful in the handler ourselves
      anyway (it would be nice to print out a backtrace, but that seems
      pretty hard to do, even if not impossible). Let Windows inform the
      user about the crash. If the plug-in was compiled with MSVC, and
      the user also has it, she is offered a chance to start the
      debugger automatically anyway.
      
      * app/*several*.c: Include gimpmath.h for G_PI etc. Don't include
      <math.h>, as gimpmath.h includes it.
      
      * plug-ins/*/*many*.c: Include config.h. Don't include <math.h>.
      Remove all the duplicated definitions of G_PI and rint(). Use
      RINT() instead of rint().
      
      * app/app_procs.[ch]: app_exit() takes a gboolean.
      
      * app/batch.c
      * app/commands.c
      * app/interface.c: Call app_exit() with FALSE or TRUE.
      
      * app/main.c (on_error): Call gimp_fatal_error. (main): Don't
      install any signal handler on Win32 here, either.
      
      * app/errors.c (gimp_fatal_error, gimp_terminate): Win32: Format
      the message and call MessageBox with it.  g_on_error_query doesn't
      do anything useful on Win32, and printf'ing a message to stdout or
      stderr doesn't do anything, either, in a windowing application.
      6ef23d98
    • EDT 1999 Adrian Likins's avatar
      app/gimpbrushpip.[ch] app/airbrush.c app/pencil.c fix pencil tool for use · 5e64804c
      EDT 1999 Adrian Likins authored
      Wed Sep  1 00:56:37 EDT 1999 Adrian Likins <adrian@gimp.org>
      
              * app/gimpbrushpip.[ch]
              * app/airbrush.c
              * app/pencil.c
              * app/paintbrush.c: fix pencil tool for use with
                 pixmaps again
      5e64804c
  18. 31 Aug, 1999 1 commit
  19. 30 Aug, 1999 2 commits
    • Tor Lillqvist's avatar
      Add a new method, gboolean want_null_motion(), that tells if the brush · 26b70edd
      Tor Lillqvist authored
      1999-08-30  Tor Lillqvist  <tml@iki.fi>
      
      * app/gimpbrush.h (GimpBrushClass): Add a new method, gboolean
      want_null_motion(), that tells if the brush wants to be painted
      when we don't know the direction yet. This is needed (so far) by
      brush pipes that select the brush based on direction.
      
      * app/gimpbrush.c: Implement above method returning always TRUE.
      
      * app/gimpbrushpipe.c: Here, implement it returning FALSE or TRUE
      on whether the brush pipe has any angular (direction) dependent
      dimension or not.
      
      * app/paint_core.c (paint_core_button_press): Call the method
      if current point == last point.
      26b70edd
    • Tor Lillqvist's avatar
      Save the name on a line of its own as it can contain spaces. Print spaces · c2ef7d78
      Tor Lillqvist authored
      1999-08-30  Tor Lillqvist  <tml@iki.fi>
      
      * app/gimpbrushgenerated.c (gimp_brush_generated_save): Save the
      name on a line of its own as it can contain spaces. Print spaces
      between the floating-point values. (gimp_brush_generated_load)
      Corrspondingly, read the name from a line of its own.
      
      * app/gimpbrushlist.c (brushes_free): Portability fixes. Use
      g_strconcat. Free allocated strings.
      c2ef7d78
  20. 29 Aug, 1999 1 commit
    • BST 1999 Adam D. Moss's avatar
      *->I: Deterministic colour dithering to arbitrary palettes. Ideal for · d0127d18
      BST 1999 Adam D. Moss authored
      Sun Aug 29 17:54:58 BST 1999 Adam D. Moss <adam@gimp.org>
      
      	* app/convert.c: *->I: Deterministic colour dithering
      	to arbitrary palettes.  Ideal for animations that are
      	going to be delta-optimized or simply don't want to look
      	'busy' in static areas.  Also a bunch of bugfixes and tweaks.
      	No PDB interface to the new features yet, although a
      	convert_image2() is ready and waiting.
      d0127d18
  21. 28 Aug, 1999 4 commits
    • BST 1999 Adam D. Moss's avatar
      app/convert.h *->I: Deterministic alpha dithering over layers, reduced · b2ffe7e0
      BST 1999 Adam D. Moss authored
      Sun Aug 29 00:40:20 BST 1999 Adam D. Moss <adam@gimp.org>
      
              * app/convert.h
              * app/convert.c: *->I: Deterministic alpha dithering over layers,
              reduced bleeding of transparent values into opaque values, added
              optional stage to remove duplicate or unused colour entries from final
              colourmap.
      b2ffe7e0
    • Manish Singh's avatar
      895b0e52
    • Tor Lillqvist's avatar
      In the case of angular selection, offset angle with G_PI/2 to be · 34f76ba3
      Tor Lillqvist authored
      1999-08-28  Tor Lillqvist  <tml@iki.fi>
      
      * app/gimpbrushpipe.c (gimp_brush_pixmap_select_brush): In the
      case of angular selection, offset angle with G_PI/2 to be
      compatible with PSP tubes. Restrict the index of each dimension
      separately to the appropriate range.
      
      * plug-ins/common/gpb.c (gih_save_dialog): Must not free the combo
      box string list, the strings are not strdup'ed by the combo box.
      34f76ba3
    • Tor Lillqvist's avatar
      Implement the selection of brush based on cursor direction, pressure, · 70fca093
      Tor Lillqvist authored
      1999-08-28  Tor Lillqvist  <tml@iki.fi>
      
      * app/gimpbrushpipe.c: Implement the selection of brush based on
      cursor direction, pressure, tilt, or a random value. (Hmm, forgot
      velocity, later.) (In addition to just incrementally stepping.)
      Read the brush pipe parameters from the gih file's second line.
      There is no way to tune the parameters in the GIMP, they must
      currently be set when saving the gih file (in the gpb plug-in).
      
      * app/gimpbrushpipe.h
      * app/gimpbrushpipeP.h: Move the PipeSelectModes enum to the
      "private" header. Add a stride array to GimpBrushPipe to make
      indexing easier.
      
      * plug-ins/common/gpb.c: Add selection mode fields to the dialog.
      Attach the pipe parameters entered as a parasite, too.
      
      * docs/parasites.txt
      * plug-ins/common/psp.c: Use "placement", not "spacing" (which
      means another thing).
      70fca093
  22. 27 Aug, 1999 3 commits
    • Manish Singh's avatar
      user_install added gimpressionist, levels, and curves dirs · 4a9ae946
      Manish Singh authored
      * 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
      4a9ae946
    • BST 1999 Andy Thomas's avatar
      app/nav_window.c app/nav_window.h app/gimppreviewcache.h app/layer.c · df7ad092
      BST 1999 Andy Thomas authored
      Fri Aug 27 18:57:50 BST 1999 Andy Thomas <alt@gimp.org>
      
      	* app/nav_window.c
      	* app/nav_window.h
      	* app/gimppreviewcache.h
      	* app/layer.c
      	* app/channel.c
      	* app/commands.c
      
      	Added some controls to the nav window. Yep. I know that the
      	buttons are toooo biGGG.
      
      	Preview cache changes. Now prime preview cache with a image
      	so that later we have a better chance of a hit. Still
      	needs to be more intelligent at doing this (needs to pick largest
      	out of the cache & use its size as the size to prime with).
      df7ad092
    • EDT 1999 Adrian Likins's avatar
      paint_line_pixmap_mask, finally composite alpha correctly, or at least · 1d7e543d
      EDT 1999 Adrian Likins authored
      Fri Aug 27 02:16:02 EDT 1999 Adrian Likins <alikins@redhat.com>
      
              * app/gimpbrushpipe.c: paint_line_pixmap_mask, finally
              composite alpha correctly, or at least closer. Should
              get rid of those annoying artifacts.
      1d7e543d
  23. 26 Aug, 1999 1 commit