- 21 Nov, 2001 3 commits
-
-
Michael Natterer authored
2001-11-21 Michael Natterer <mitch@gimp.org> * app/display/gimpdisplayshell-callbacks.c: key press and release events were sent swapped to tools. * app/tools/selection_options.[ch]: added radio buttons for the selection operation (REPLACE, ADD, ...). Partly fixes #51108. * app/tools/gimpselectiontool.[ch]: honor the new tool options stuff. Do evil things in gimp_selection_tool_modifier_key(). * app/tools/gimpbycolorselecttool.[ch]: removed most of the widgets from the by_color_select window because they are all in the selection_options now. * libgimpwidgets/gimpstock.[ch]: added new stock items for the buttons. * themes/Default/Makefile.am * themes/Default/images/Makefile.am * themes/Default/images/stock-button-selection-add.png * themes/Default/images/stock-button-selection-intersect.png * themes/Default/images/stock-button-selection-replace.png * themes/Default/images/stock-button-selection-subtract.png: new stock images.
-
Michael Natterer authored
2001-11-21 Michael Natterer <mitch@gimp.org> * app/tools/selection_options.c: added "reset" code for the new auto_shrink tool options.
-
Marc Lehmann authored
-
- 20 Nov, 2001 10 commits
-
-
Michael Natterer authored
2001-11-21 Michael Natterer <mitch@gimp.org> * pixmaps/Makefile.am * pixmaps/anchor.xpm * pixmaps/edit.xpm * pixmaps/eye.xpm * pixmaps/linked.xpm * pixmaps/paste-as-new.xpm * pixmaps/paste-into.xpm * pixmaps/refresh.xpm: felt like i had to remove some cruft, so these unused pixmaps had to go to the Attic.
-
Michael Natterer authored
2001-11-21 Michael Natterer <mitch@gimp.org> * RELEASE-TO-CVS.patch: regenerated after the text tool changes.
-
Michael Natterer authored
2001-11-20 Michael Natterer <mitch@gimp.org> * app/tools/tools-types.h: added GimpToolRegisterFunc, GimpToolRegisterCallback and GimpToolOptionsNewFunc typedefs which are used to register tools. * app/tools/tools.c: put the register funcs in an array of GimpToolRegisterFuncs. Pass a Gimp pointer *plus* a GimpToolRegisterCallback (which is tool_manager_register_tool()) to the tools' register functions. * app/tools/tool_manager.[ch]: added a GimpToolOptionsNewFunc to the parameters of tool_manager_register_tool(). Create the tool options here, not in each tool. * app/tools/paint_options.[ch] * app/tools/selection_options.[ch] * app/tools/tool_options.[ch] * app/tools/transform_options.[ch]: all _init() and _new() functions take a GimpToolInfo pointer now. The _reset() func needs to be set manually now. * app/tools/[all_tools].[ch]: changed accordingly: - pass GimpToolOptionsNewFuncs to the register callback. - don't create the tool options in the tools' _init() function. - removed all static tool options variables. - get the options from the tool system in the cases i missed in my last commit. - added minor hacks to get rid of the static options pointer in some pathological cases :) (i.e. the ink tool).
-
David Neary authored
2001-11-20 David Neary <dneary@eircom.net> * app/core/gimppalette.c: Included errno,h
-
Rebecca Walter authored
2001-11-20 Rebecca Walter <rjp@mail.tele.dk> * app/core/gimpedit.c * app/core/gimpimagefile.c * app/core/gimpmoduleinfo.c * app/core/gimpmodules.c * app/core/gimppalette.c * app/core/gimppattern.c: More of the extensive proofing. Fun fun fun!
-
Sven Neumann authored
-
Sven Neumann authored
2001-11-20 Sven Neumann <sven@gimp.org> * app/gui/preferences-dialog.c * plug-ins/common/gif.c * plug-ins/common/jpeg.c * plug-ins/common/mail.c: don't strip last character off when retrieving text from a GtkTextBuffer. There used to be a bug in GTK+ that made this necessary. It has been fixed in the meantime. * plug-ins/gimpressionist/size.c: merged string fix from stable branch.
-
Michael Natterer authored
2001-11-20 Michael Natterer <mitch@gimp.org> * app/tools/gimpdrawtool.[ch] * app/tools/gimppainttool.[ch] * app/tools/gimprectselecttool.[ch] * app/tools/gimptool.[ch] * app/tools/gimptransformtool.[ch]: use simple virtual functions instead of signals for all tools because they are much faster and don't need to be signals at all.
-
Michael Natterer authored
2001-11-20 Michael Natterer <mitch@gimp.org> * app/core/gimp.c: put a g_object_ref() on a different line. * app/core/gimpdrawable-bucket-fill.c * app/core/gimpmodules.c: ne need to #include "core/..." here. * app/display/gimpdisplay-handlers.c: added debugging output because we have an image refcounting problem :( * app/display/gimpdisplayshell-handlers.c: fixed a signal disconnection. * app/tools/gimpbezierselecttool.[ch] * app/tools/gimpblendtool.c * app/tools/gimpbucketfilltool.c * app/tools/gimpbycolorselecttool.c * app/tools/gimpclonetool.c * app/tools/gimpcolorpickertool.c * app/tools/gimpcroptool.c * app/tools/gimpellipseselecttool.c * app/tools/gimpfreeselecttool.c * app/tools/gimpfuzzyselecttool.c * app/tools/gimpinktool.c * app/tools/gimpiscissorstool.c * app/tools/gimpmagnifytool.c * app/tools/gimpmeasuretool.c * app/tools/gimprectselecttool.c * app/tools/gimpsmudgetool.c: get the tool's options via tool->tool_info->tool_options, not from the local statis pointer. Some minor cleanups & function reordering. * app/widgets/gimpdockbook.c: return TRUE from the notebook tabs' "button_press" handler, connect DND before cnnecting to "button_press" because we now stop it's emission.
-
Marc Lehmann authored
-
- 19 Nov, 2001 9 commits
-
-
Daniel Egger authored
2001-11-19 Daniel Egger <degger@fhm.edu> * app/paint-funcs/paint-funcs.h: Added magic comment to prevent enums from being exported.
-
Daniel Egger authored
2001-11-19 Daniel Egger <degger@fhm.edu> * app/paint-funcs/paint-funcs-mmx.h * app/paint-funcs/paint-funcs.c: Fixed typoes and brought the code back to compileland. Now the code IS tested. :)
-
Michael Natterer authored
2001-11-19 Michael Natterer <mitch@gimp.org> Some moving of unused files so they don't clutter app/... * app/gdisplay_color.[ch] * app/gdisplay_color_ui.[ch]: removed... * app/display/gimpdisplayshell-filter.[ch] * app/display/gimpdisplayshell-filter-dialog.[ch]: ...added here.
-
Michael Natterer authored
-
Michael Natterer authored
2001-11-19 Michael Natterer <mitch@gimp.org> * app/display/gimpdisplay-foreach.c: forgot to commit last time. Transform stuff cleanup: * app/core/Makefile.am * app/core/core-types.h * app/core/gimpdrawable-transform.[ch]: new files implementing the actual transform functions cut from tools/gimptransformtool.*. * app/core/gimpdrawable-transform-utils.[ch]: new files implementing transform matrix assembly utility functions. * app/tools/gimptransformtool.[ch]: removed the stuff here. cleanup. * app/tools/transform_options.[ch]: removed all stuff which does not belong here, e.g. the transform_tool_* functions and the global "transform_options" variable. Works like all other tool options now. * app/tools/gimpfliptool.[ch] * app/tools/gimpperspectivetool.[ch] * app/tools/gimprotatetool.[ch] * app/tools/gimpscaletool.[ch] * app/tools/gimpsheartool.[ch]: massive code removal because we can use core/gimpdrawable-fransform* functions now. cleanup. * tools/pdbgen/Makefile.am * tools/pdbgen/groups.pl: added new PDB group "transform_tools". * tools/pdbgen/pdb/tools.pdb: removed the transform stuff here... * tools/pdbgen/pdb/transform_tools.pdb: and added *much* simplified versions which use the new core/gimpdrawable-transform* utilities. * app/pdb/Makefile.am * app/pdb/transform_tools_cmds.c: new file. * app/pdb/internal_procs.c * app/pdb/tools_cmds.c: regenerated. * libgimp/Makefile.am * libgimp/gimp_pdb.h * libgimp/gimptransformtools_pdb.[ch]: new files. * libgimp/gimptools_pdb.[ch]: regenerated.
-
Daniel Egger authored
2001-11-19 Daniel Egger <degger@fhm.edu> * app/paint-funcs/paint-funcs.c * app/paint-funcs/paint-funcs-generic.h * app/paint-funcs/paint-funcs.h: - Statified a few functions so they can be inlined. - Simplified function calls. - Unsignified variables and parameters where possible. - Reduced lookuptable size for add_pixels from 256*256*4 bytes to 2*256-1 bytes and O(n*n) function in paint_funcs_setup to O(n). Should reduce memory consumption by almost 1/4 Mb. This needs much more cleanup....
-
Daniel Egger authored
2001-11-19 Daniel Egger <degger@fhm.edu> * app/paint-funcs/paint-funcs-mmx.h: New file. Added glue code for the assembly MMX functions. * app/paint-funcs/paint-funcs-generic.h: Moved MMX code from here ... * app/paint-funcs/paint-funcs-mmx.h: ... to here. Cleaned up a bit and don't check for use_mmx on every single call but ... * app/paint-funcs/paint-funcs.c: (paint_funcs_setup): ... here and register MMX functions if CPU has those capabilities. Code is untested for the MMX case due no available Intel-Machine right now but should't be to far away from a working state.
-
Sven Neumann authored
2001-11-19 Sven Neumann <sven@gimp.org> * RELEASE-TO-CVS.patch: changes to the text tool to make it compile with the new PangoFT2 API.
-
Daniel Egger authored
2001-11-19 Daniel Egger <degger@fhm.edu> * app/paint-funcs/paint-funcs.c * app/paint-funcs/paint-funcs-generic.h: Split generic (read: C) code for pixelmanipulation and most of the code that belongs to it into new file. (apply_layer_funcs): Gone. The correct layer function is now dispatched from the layer_mode_funcs table and the table is per default initialised with the generic functions. Arguments will be passed by a struct apply_layer_mode_struct instead of directly per stack to avoid parameter typying madness. It's now cleanly possible to check for availabilty of MMX/AltiVec/(insert your favourite brew here) in paint_funcs_setup () and change the table to use faster routines. The old MMX cruft which is temporaribly in paint-funcs-generic.h will soon be gone but I'm to tired now. * app/paint-funcs/paint-funcs.c: Braind dead code for temporary buffer (which never shrunk only grew) gone and replaced by straightforward code. * app/paint-funcs/paint-funcs-generic.h: Applied a bunch of obvious optimisations to reduce code size and avoid parameter madness. * paint-funcs-[gray|graya|indexed|rga|rgba].[c|h]: Gone. I lost several days of work on these files and came to the conclusion that there has to be an easier way anyway. :) Everything well tested on PPC and producing exactly the same results as the code before so this has good odds to be the first major change that won't break GIMP. :)
-
- 18 Nov, 2001 3 commits
-
-
Michael Natterer authored
2001-11-18 Michael Natterer <mitch@gimp.org> * app/display/gimpdisplay-foreach.c: fixed a comment. * app/gui/file-open-dialog.c: no need to declare "extern GSList *display_list;". * app/gui/brush-select.c * tools/pdbgen/pdb/brush_select.pdb: pass opacity as [0.0..100.0] through the PDB and as [0.0..1.0] to the app. * app/pdb/brush_select_cmds.c: regenerated. * plug-ins/gfig/gfig.c: full opacity is 100.0, not 1.0. (GFig and script-fu may still be broken after this change).
-
Valek Frob authored
-
Valek Frob authored
-
- 17 Nov, 2001 3 commits
-
-
Fatih Demir authored
-
Michael Natterer authored
2001-11-17 Michael Natterer <mitch@gimp.org> Made --no-interface not calling gtk_init() (and thus not contacting the X server) any more. (Fixes #58961). * app/core/gimp.[ch]: added two new function pointers "gui_main_loop_func" and "gui_main_loop_quit_func" and an own stack of GMainLoops which is used if they are not set. * app/gui/gui.[ch]: added main loop functions here and set them as pointers in the Gimp instance. Separated gui_libs_init() from gui_themes_init() so it can be used as replacement for gtk_init() and be called before command line parsing. * app/main.c: check for "--no-interface" before initializing anything. Added a "--g-fatal-warnings" option (cut'n'paste from gtkmain.c). Added a check for "--" (end of options). * app/app_procs.c: call the new gimp_main_loop() functions, call gui_themes_init(). * app/devices.[ch]: reduce usage of "the_gimp" by passing "Gimp" pointers to some functions. * app/plug_in.c: some ugly checks for the_gimp->no_interface which will go away once this file is core/ui chopped. Call gimp_main_loop() stuff instead of gtk_main(). * app/core/gimptoolinfo.c: allow passing a NUL GdkPixbuf pointer.
-
Wang Jian authored
-
- 16 Nov, 2001 6 commits
-
-
Daniel Egger authored
2001-11-17 Daniel Egger <egger@fhm.edu> * app/base/base.c: Prevent from crash if swap_path == NULL.
-
Michael Natterer authored
2001-11-16 Michael Natterer <mitch@gimp.org> Wishlist item #57812: * app/core/gimpimage.[ch]: added a progress_callback to gimp_image_scale(). * app/gui/gui.c * app/gui/image-commands.c * app/gui/resize-dialog.h * tools/pdbgen/pdb/image.pdb: changed accordingly. * app/core/gimp.[ch]: found that gimp->busy needs to be a counter, not a boolean, so nested calls work. * app/pdb/image_cmds.c: regenerated.
-
Michael Natterer authored
2001-11-16 Michael Natterer <mitch@gimp.org> Wishlist item #57669: * app/gimprc.[ch]: replaced gimprc option "allow-resize-windows" by "resize-windows-on-zoom" and "resize-windows-on-resize". * app/gui/preferences-dialog.c: added a toggle for "resize-windows-on-resize". * app/display/gimpdisplayshell-handlers.c * app/display/gimpdisplayshell-scale.c * app/tools/gimpmagnifytool.c * docs/gimprc.5.in * etc/gimprc.in * etc/gimprc.win32: changed accordingly. * app/display/gimpdisplay-area.[ch]: added gimp_area_new(). * app/display/gimpdisplay.c: cleanup usage of GimpArea. * app/display/gimpdisplayshell.[ch]: added configurable canvas padding color and a small color_panel to change it in the upper right corner of the window. * app/display/gimpdisplayshell-callbacks.[ch]: added a callback for the color_panel, initialize the color in the "realize" callback. Wishlist item #51548. * app/display/gimpdisplayshell-selection.[ch] * app/gui/menus.c * app/gui/view-commands.[ch]: made the layer boundary toggleable separately from the selection. * app/gui/color-notebook.c: #if 0'ed a debugging g_print().
-
Sven Neumann authored
2001-11-16 Sven Neumann <sven@gimp.org> * libgimpwidgets/gimpcolorbutton.[ch]: added Black and White to popup menu. Take widget->allocation into account when calculation popup position since GtkButton is a NO_WINDOW widget now.
-
Sven Neumann authored
2001-11-16 Sven Neumann <sven@gimp.org> * app/core/gimpimage.c: s/G_GNUC_PRETTY_FUNC/G_GNUC_PRETTY_FUNCTION/
-
Rebecca Walter authored
2001-11-16 Rebecca Walter <rjp@mail.tele.dk> * app/core/gimpcontext.c * app/core/gimpdatafactory.c * app/core/gimpdrawable-bucket-fill.c * app/core/gimpdrawable.c * app/core/gimpgradient.c * app/core/gimpimage-convert.c * app/core/gimpimage-mask.c * app/core/gimpimage.c: Extensive proofreading of messages and warnings. Improved standardization of string format and content.
-
- 15 Nov, 2001 6 commits
-
-
Michael Natterer authored
2001-11-15 Michael Natterer <mitch@gimp.org> Gimp's opacity values are a pain... the core actually *should* only accept and expose values in a [0.0..1.0] range. * app/core/gimpdrawable-blend.c * app/core/gimpdrawable-bucket-fill.c: take 0.0 <= opacity <= 1.0, *not* 0.0 < opacity <= 100.0. * app/tools/gimpblendtool.c: don't (opacity * 100.0) before passing. * tools/pdbgen/pdb/tools.pdb: (opacity / 100.0) before passing. * app/display/gimpdisplayshell-dnd.c: paint_mode and opacity were swapped in the call to gimp_drawable_bucket_fill_full(). * app/pdb/tools_cmds.c: regenerated.
-
Michael Natterer authored
2001-11-15 Michael Natterer <mitch@gimp.org> * app/gui/layers-commands.c: fixed the layers dialog's "New Layer" button by checking for a floating selection in layers_new_layer_query() instead of layers_new_layer_cmd_callback().
-
Michael Natterer authored
2001-11-15 Michael Natterer <mitch@gimp.org> * app/tools/gimpdrawtool.[ch]: restructured the new draw utility functions and added gimp_draw_tool_draw_handle() and gimp_draw_tool_on_handle(). * app/tools/gimpbezierselecttool.c * app/tools/gimpblendtool.c * app/tools/gimpcroptool.[ch] * app/tools/gimpiscissorstool.c * app/tools/gimpmeasuretool.c * app/tools/gimppainttool.c * app/tools/gimppathtool.c * app/tools/gimptransformtool.c: use the new functions all over the place so handle drawing and mouse_over detection work the same for all tools.
-
Michael Natterer authored
2001-11-15 Michael Natterer <mitch@gimp.org> * Makefile.am: removed antique Makefile targets, including the "files" hack (which was some automatic EXTRA_DIST voodoo), added missing stuff to EXTRA_DIST. * app/plug-in/Makefile.am * devel-docs/Makefile.am * docs/Makefile.am * plug-ins/Makefile.am * plug-ins/FractalExplorer/Makefile.am * plug-ins/FractalExplorer/fractalexplorer-examples/Makefile.am * plug-ins/Lighting/Makefile.am * plug-ins/MapObject/Makefile.am * plug-ins/bmp/Makefile.am * plug-ins/dbbrowser/Makefile.am * plug-ins/faxg3/Makefile.am * plug-ins/fits/Makefile.am * plug-ins/flame/Makefile.am * plug-ins/gap/Makefile.am * plug-ins/gdyntext/Makefile.am * plug-ins/gflare/Makefile.am * plug-ins/gflare/gflares/Makefile.am * plug-ins/gfli/Makefile.am * plug-ins/gimpressionist/Makefile.am * plug-ins/gimpressionist/Brushes/Makefile.am * plug-ins/gimpressionist/Paper/Makefile.am * plug-ins/gimpressionist/Presets/Makefile.am * plug-ins/ifscompose/Makefile.am * plug-ins/imagemap/Makefile.am * plug-ins/libgck/Makefile.am * plug-ins/libgck/gck/Makefile.am * plug-ins/maze/Makefile.am * plug-ins/mosaic/Makefile.am * plug-ins/pagecurl/Makefile.am * plug-ins/plugin-helper/Makefile.am * plug-ins/print/Makefile.am * plug-ins/rcm/Makefile.am * plug-ins/script-fu/Makefile.am * plug-ins/script-fu/scripts/Makefile.am * plug-ins/sel2path/Makefile.am * plug-ins/sgi/Makefile.am * plug-ins/webbrowser/Makefile.am * plug-ins/xjt/Makefile.am * tips/Makefile.am: removed "files" too, some minor cleanups.
-
Rebecca Walter authored
2001-11-15 Rebecca Walter <rjp@mail.tele.dk> * app/core/gimpbrush.c * app/core/gimpbrushpipe.c * app/core/gimpchannel.c: Proofreading to strings, approved by Sven
-
Sven Neumann authored
2001-11-15 Sven Neumann <sven@gimp.org> * RELEASE-TO-CVS.patch: recreated from toplevel dir so it applies as advertised in HACKING.
-