1. 30 Jul, 2005 1 commit
    • Sven Neumann's avatar
      loop unrolling. · 26eecddb
      Sven Neumann authored
      2005-07-30  Sven Neumann  <sven@gimp.org>
      
      	* app/base/gimphistogram.c (gimp_histogram_calculate_sub_region):
      	loop unrolling.
      
      	* app/dialogs/about-dialog.c
      	* app/widgets/gimpselectiondata.c
      	* plug-ins/bmp/bmpread.c (ReadBMP)
      	* plug-ins/gfig/gfig.c (gfig_load)
      	* plug-ins/imagemap/imap_preview.c
      	* plug-ins/imagemap/imap_selection.c
      	* plug-ins/jpeg/jpeg-exif.c
      	* plug-ins/common/dicom.c: fixed signedness warnings.
      26eecddb
  2. 25 Jul, 2005 1 commit
    • Michael Natterer's avatar
      Some DND fixes / cleanup: · c1c876a9
      Michael Natterer authored
      2005-07-25  Michael Natterer  <mitch@gimp.org>
      
      	Some DND fixes / cleanup:
      
      	* app/widgets/widgets-enums.h: renamed GIMP_DND_TYPE_TOOL to
      	GIMP_DND_TYPE_TOOL_INFO.
      
      	* app/widgets/gimpselectiondata.[ch]: s/tool/tool_info/g. Moved
      	private functions to the end of the file. Include GIMP's PID in
      	all GtkSelectionData strings which are used to pass around stuff
      	by reference. For things which are referenced by name, also encode
      	the object's address in the GtkSelectionData so having a brush
      	called "Standard" or a named buffer called "Global Buffer" will
      	work together with DND.
      
      	* app/widgets/gimpdnd.[ch]: s/tool/tool_info/g. Renamed
      	gimp_dnd_get_data_data() to gimp_dnd_get_object_data() since it's
      	not limited to GimpData objects. Follow above selection data API
      	changes. Cleanup.
      
      	* libgimp/gimpbrushmenu.c
      	* libgimp/gimpdrawablecombobox.c
      	* libgimp/gimpfontselectbutton.c
      	* libgimp/gimpgradientmenu.c
      	* libgimp/gimpimagecombobox.c
      	* libgimp/gimppalettemenu.c
      	* libgimp/gimppatternmenu.c: follow GtkSelectionData format change
      	and check the dropped things' PID against the return value of
      	gimp_getpid().
      c1c876a9
  3. 23 Jul, 2005 1 commit
  4. 09 Apr, 2005 1 commit
    • Michael Natterer's avatar
      Implement dragging and dropping in any GdkPixbuf supported format. Fixes · 76096459
      Michael Natterer authored
      2005-04-09  Michael Natterer  <mitch@gimp.org>
      
      	Implement dragging and dropping in any GdkPixbuf supported
      	format. Fixes bug #172794 and bug #172795.
      
      	* app/core/gimplayer.[ch] (gimp_layer_new_from_region): new
      	function which contains all stuff that was in
      	gimp_layer_new_from_tiles().
      
      	(gimp_layer_new_from_tiles): use above function.
      	(gimp_layer_new_from_pixbuf): new function.
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimppixbuf.[ch]: new files containing GdkPixbuf
      	utility functions for clipboard and DnD.
      
      	* app/widgets/gimpselectiondata.[ch]: removed
      	gimp_selection_data_set,get_pixbuf(), GTK+ provides the same API.
      	Also removed GdkAtom parameters all over the place because it's
      	always the same as selection_data->target.
      
      	* app/widgets/gimpclipboard.c: use the new pixbuf utility
      	functions and gtk_selection_data_set,get_pixbuf().
      
      	* app/widgets/widgets-enums.h
      	* app/widgets/gimpdnd.[ch]: removed never-implemented
      	GIMP_DND_TYPE_PNG and added a generic GIMP_DND_TYPE_PIXBUF
      	instead. Added API to drag and drop GdkPixbufs which transparently
      	converts from/to and GdkPixbuf-supported image format. Removed
      	passing around of GdkAtoms, since they were always the same
      	as selection_data->target.
      
      	* app/widgets/gimpdnd-xds.[ch]: follow GdkAtom parameter removal.
      
      	* app/widgets/gimpcontainertreeview.[ch]: added virtual function
      	GimpContainerTreeView::drop_pixbuf().
      
      	* app/widgets/gimpcontainertreeview-dnd.c: dispatch drop_pixbuf().
      
      	* app/widgets/gimplayertreeview.c: implement drop_pixbuf().
      
      	* app/widgets/gimpdrawabletreeview.c: allow to drag all drawables
      	as pixbufs.
      
      	* app/display/gimpdisplayshell-dnd.c: allow dropping of pixbufs.
      76096459
  5. 23 Mar, 2005 3 commits
  6. 07 Feb, 2005 2 commits
  7. 22 Jan, 2005 1 commit
  8. 15 Jan, 2005 1 commit
    • Michael Natterer's avatar
      reordered so COMPONENT is after IMAGE. · 6dda0d82
      Michael Natterer authored
      2005-01-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/widgets-enums.h (enum GimpDndType): reordered so
      	COMPONENT is after IMAGE.
      
      	* app/widgets/gimpdnd.[ch]
      	* app/widgets/gimpselectiondata.[ch]: added API for passing
      	components around via DND. Speaks in terms of a
      	(GimpImage,GimpChannelType) tuple.
      6dda0d82
  9. 14 Nov, 2004 1 commit
    • Manish Singh's avatar
      Fix a bunch of warnings from Sparse: · 5d015810
      Manish Singh authored
      2004-11-13  Manish Singh  <yosh@gimp.org>
      
              Fix a bunch of warnings from Sparse:
      
              * app/actions/dockable-commands.c
              * app/actions/layers-actions.c
              * app/actions/view-commands.c
              * app/base/pixel-surround.c
              * app/config/gimpconfig-utils.c
              * app/config/gimpscanner.c
              * app/core/gimpbrushgenerated.c
              * app/core/gimpcontainer.c
              * app/core/gimpimage.c
              * app/dialogs/palette-import-dialog.c
              * app/file/gimprecentlist.c
              * app/plug-in/plug-in-params.c
              * app/text/gimptext-compat.c
              * app/text/gimptext-parasite.c
              * app/vectors/gimpbezierstroke.c
              * app/vectors/gimpstroke.c
              * app/widgets/gimpcellrendereraccel.c
              * app/widgets/gimpselectiondata.c
              * app/xcf/xcf.c
              * libgimp/gimp.c
              * libgimpthumb/gimpthumb-utils.c
              * libgimpthumb/gimpthumbnail.c
              * modules/cdisplay_proof.c
              * plug-ins/Lighting/lighting_ui.c
              * plug-ins/common/csource.c
              * plug-ins/common/glasstile.c
              * plug-ins/common/nova.c
              * plug-ins/common/pcx.c
              * plug-ins/common/pnm.c
              * plug-ins/common/randomize.c
              * plug-ins/common/screenshot.c
              * plug-ins/common/sel_gauss.c
              * plug-ins/common/spheredesigner.c
              * plug-ins/common/wind.c
              * plug-ins/gfig/gfig-dialog.c
              * plug-ins/gfig/gfig-dobject.c
              * plug-ins/gimpressionist/gimpressionist.c
              * plug-ins/ifscompose/ifscompose.c
              * plug-ins/print/gimp_main_window.c
              * plug-ins/print/print.c: Cleanup integer vs. pointer confusion.
      
              * app/base/temp-buf.c
              * app/dialogs/about-dialog.c
              * plug-ins/common/bumpmap.c
              * plug-ins/common/jigsaw.c
              * plug-ins/gfig/gfig-dobject.c: Cosmetic cleanups.
      
              * app/config/gimpconfig-deserialize.c
              * app/config/gimpconfig-path.c
              * app/config/gimpconfigwriter.c
              * app/core/gimpgradient.c
              * app/tools/gimpdrawtool.c
              * plug-ins/common/nlfilt.c
              * plug-ins/common/unsharp.c
              * plug-ins/common/zealouscrop.c: Define inline functions before they
              are used.
      
              * app/core/gimpdrawable-blend.c: PixelRegion definition was changed
              some time ago, but the initialization here didn't change. Fix it.
      
              * app/plug-in/plug-in-rc.c (plug_in_extra_deserialize): No need to
              assign token twice in a row.
      
              * libgimpbase/gimpdatafiles.c (gimp_datafiles_read_directories): No
              need to initialize file_data, since the code fills out all the fields.
      
              * plug-ins/common/CML_explorer.c
              * plug-ins/common/vpropagate.c: Declare function pointers fully.
      
              * plug-ins/common/grid.c (pix_composite): G_INLINE_FUNC isn't needed,
              we assume we can use the "inline" keyword always.
      
              * plug-ins/common/psd_save.c
              * plug-ins/common/vinvert.c
              * plug-ins/gfig/gfig-arc.c
              * plug-ins/gfig/gfig-bezier.c
              * plug-ins/gfig/gfig-circle.c
              * plug-ins/gfig/gfig-dialog.c
              * plug-ins/gfig/gfig-dobject.c
              * plug-ins/gfig/gfig-ellipse.c
              * plug-ins/gfig/gfig-line.c
              * plug-ins/gfig/gfig-poly.c
              * plug-ins/gfig/gfig-spiral.c
              * plug-ins/gfig/gfig-star.c
              * plug-ins/gfig/gfig.c
              * plug-ins/gimpressionist/orientmap.c
              * plug-ins/gimpressionist/placement.c
              * plug-ins/gimpressionist/sizemap.c
              * plug-ins/imagemap/imap_grid.c
              * plug-ins/imagemap/imap_main.c
              * plug-ins/imagemap/imap_preferences.c
              * plug-ins/imagemap/imap_settings.c
              * plug-ins/maze/maze.c
              * plug-ins/sel2path/curve.c
              * plug-ins/sel2path/fit.c
              * plug-ins/sel2path/pxl-outline.c
              * plug-ins/sel2path/spline.c
              * plug-ins/xjt/xjt.c: Functions with no args should be declared
              with (void).
      
              * plug-ins/common/retinex.c (MSRCR): Initialize max_preview to quiet
              the compiler.
      5d015810
  10. 16 Sep, 2004 1 commit
    • Michael Natterer's avatar
      depend on GLib >= 2.4.5 and GTK+ >= 2.4.4. · 357dc2d7
      Michael Natterer authored
      2004-09-16  Michael Natterer  <mitch@gimp.org>
      
      	* configure.in: depend on GLib >= 2.4.5 and GTK+ >= 2.4.4.
      
      	* app/gui/gui.c: changed accordingly.
      
      	* app/sanity.c: ditto. Added check for GLib and put each check
      	into its own utility function. Enabled #if 0'ed check for
      	FreeType >= 6.2.7.
      
      	* app/widgets/gimpactiongroup.c
      	* app/widgets/gimpcursor.c
      	* app/widgets/gimpselectiondata.c
      	* app/widgets/gimpuimanager.c
      	* app/widgets/gimpwidgets-utils.c: removed workarounds for library
      	versions we refuse to start with.
      357dc2d7
  11. 04 Aug, 2004 1 commit
    • Michael Natterer's avatar
      Allow URI drops from apps linked against GLib < 2.4.4 to GIMP linked · fd1a0e14
      Michael Natterer authored
      2004-08-04  Michael Natterer  <mitch@gimp.org>
      
      	Allow URI drops from apps linked against GLib < 2.4.4 to GIMP
      	linked against GLib >= 2.4.5. Fixes bug #148140.
      
      	* app/core/gimp-utils.[ch]: added gimp_check_glib_version().
      
      	* app/widgets/gimpselectiondata.c: added runtime check for GLib
      	versions that encode file:// URIs correctly (>= 2.4.5). For older
      	(broken) GLibs, leave the code path as is, for newer (fixed) ones,
      	perform an additional check if the dropped URI is in the (broken)
      	escaped-UTF-8 format and convert it to local filename encoding.
      
      	* app/gui/gui.c: warn the user that non-ASCII filenames can't
      	be used when linked against GLib 2.4.4.
      fd1a0e14
  12. 08 Jul, 2004 1 commit
    • Michael Natterer's avatar
      added a "const gchar *format" parameter to · d1809702
      Michael Natterer authored
      2004-07-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpselectiondata.[ch]: added a "const gchar *format"
      	parameter to gimp_selection_data_set_pixbuf() which selects the
      	format in which to encode the pixbuf (was defaulting to "png"
      	before).
      
      	* app/widgets/gimpclipboard.c: when copying, offer all formats which
      	are savable with GdkPixbuf. Added a GimpClipboard struct which is
      	attached to the Gimp and which stores all the persistent data
      	needed by the clipboard. Renamed some private functions.
      
      	(unfortunately this change breaks pasting to AbiWord:
      	 http://bugzilla.abisource.com/show_bug.cgi?id=7068)
      d1809702
  13. 02 Jul, 2004 1 commit
    • Sven Neumann's avatar
      app/gui/Makefile.am new files implementing a clipboard for image data · 6423529b
      Sven Neumann authored
      2004-07-02  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/Makefile.am
      	* app/gui/clipboard.[ch]: new files implementing a clipboard for
      	image data based on GDK_SELECTION_CLIPBOARD (bug #133247).
      
      	* app/actions/edit-actions.c
      	* app/actions/edit-commands.c: use the new clipboard API.
      
      	* app/gui/gui.c: initialize and shutdown the clipboard.
      
      	* app/core/gimpbuffer.c: cosmetics.
      
      	* app/actions/actions.c
      	* app/menus/menus.c: added sanity checks to exit functions.
      
      	* app/display/gimpdisplayshell-dnd.[ch]: let
      	gimp_display_shell_drop_svg() take a guchar * buffer.
      
      	* app/widgets/gimpselectiondata.c (gimp_selection_data_get_pixbuf):
      	fixed the implementation.
      6423529b
  14. 01 Jul, 2004 1 commit
  15. 30 Jun, 2004 2 commits
    • Michael Natterer's avatar
      app/widgets/gimpdnd.[ch] app/widgets/gimpselectiondata.[ch] changed · cc6aa186
      Michael Natterer authored
      2004-06-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdnd.[ch]
      	* app/widgets/gimpselectiondata.[ch]
      	* app/widgets/gimpcontainertreeview.[ch]: changed "files" and "uris"
      	to "uri_list" in all function names, parameters and typedefs.
      
      	* app/widgets/gimpcontainertreeview-dnd.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptoolbox-dnd.c
      	* app/display/gimpdisplayshell-dnd.[ch]
      	* app/display/gimpdisplayshell.c: changed accordingly.
      cc6aa186
    • Sven Neumann's avatar
      renamed the SVG related functions so that they deal with an anonymous data · 114f747f
      Sven Neumann authored
      2004-06-30  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpselectiondata.[ch]: renamed the SVG related
      	functions so that they deal with an anonymous data stream that
      	could as well be a PNG image.
      
      	* app/widgets/gimpdnd.[ch]
      	* app/widgets/gimpcontainertreeview-dnd.c: changed accordingly.
      
      	* app/display/gimpdisplayshell-dnd.[ch]
      	* app/vectors/gimpvectors-import.[ch]
      	* app/widgets/gimpcontainertreeview-dnd.c
      	* app/widgets/gimpvectorstreeview.c: use gsize for the length of
      	the buffer.
      
      	* app/widgets/gimpdnd.[ch]
      	* app/widgets/widgets-enums.[ch]: added GIMP_DND_TYPE_PNG which isn't
      	used yet.
      114f747f
  16. 29 Jun, 2004 2 commits
    • Michael Natterer's avatar
      changed return value from gchar* to const gchar*. Renamed parameters to be · 425fd699
      Michael Natterer authored
      2004-06-30  Michael Natterer  <mitch@gimp.org>
      
      	* widgets/gimpselectiondata.[ch] (gimp_selection_data_get_svg):
      	changed return value from gchar* to const gchar*. Renamed
      	parameters to be consistent with other SVG functions.
      
      	* widgets/gimpcontainertreeview-dnd.c
      	* widgets/gimpdnd.c: changed accordingly.
      425fd699
    • Michael Natterer's avatar
      use gtk_target_list_add() instead of gtk_target_list_add_table() because · 3f5e10c1
      Michael Natterer authored
      2004-06-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdnd.c: use gtk_target_list_add() instead of
      	gtk_target_list_add_table() because the latter prepends the
      	targets to the internal list which screws the order (== priority)
      	of DND targets.
      
      	* app/widgets/gimpselectiondata.c: added some more checks for
      	failed drops (selection_data->length < 0).
      3f5e10c1
  17. 28 Jun, 2004 1 commit
    • Michael Natterer's avatar
      app/widgets/Makefile.am new files containing the code which · 667de3c9
      Michael Natterer authored
      2004-06-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimpselectiondata.[ch]: new files containing the
      	code which encodes/decodes all sorts of stuff to/from its
      	GtkSelectionData representation. Used to live in gimpdnd.c
      
      	* app/widgets/gimpdnd.c: use the new functions (unclutters the
      	file quite a bit), converted tabs to spaces.
      667de3c9