1. 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
  2. 04 Jun, 2005 2 commits
    • Sven Neumann's avatar
      use the viewable's description in the drag icon. Use a larger preview. · 8404a9e4
      Sven Neumann authored
      2005-06-04  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpdnd.c (gimp_dnd_get_viewable_icon): use the
      	viewable's description in the drag icon. Use a larger preview.
      
      	* app/widgets/gimpdockbook.c: tweak spacing and border-width of
      	the tab widget if it is being used as drag icon.
      8404a9e4
    • Sven Neumann's avatar
      reduced the number of characters to show before ellipsizing the label. · be3a1dcc
      Sven Neumann authored
      2005-06-04  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpdnd.c (gimp_dnd_get_viewable_icon): reduced the
      	number of characters to show before ellipsizing the label.
      
      	* libgimpwidgets/gimpcolorarea.c: added a "draw-border" property.
      
      	* app/widgets/gimpcolorframe.c: draw a border around the color area.
      be3a1dcc
  3. 03 Jun, 2005 1 commit
  4. 29 May, 2005 1 commit
    • Sven Neumann's avatar
      pass GIMP_COLOR_AREA_CHECKS_SMALL instead of TRUE for the type of the · 101c5a2d
      Sven Neumann authored
      2005-05-29  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpdnd.c (gimp_dnd_get_color_icon): pass
      	GIMP_COLOR_AREA_CHECKS_SMALL instead of TRUE for the type of the
      	GimpColorArea.
      
      	* app/widgets/gimpcoloreditor.c: added a "context" property.
      
      	* libgimpwidgets/gimpcolorarea.c (gimp_color_area_set_color):
      	always use gimp_rgba_distance(), regardless of the area's type.
      101c5a2d
  5. 25 May, 2005 1 commit
    • Michael Natterer's avatar
      added virtual function GimpViewable::get_size() and public API · 7abaab62
      Michael Natterer authored
      2005-05-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpviewable.[ch]: added virtual function
      	GimpViewable::get_size() and public API gimp_viewable_get_size()
      	which return width and height and a boolean indicating if the
      	viewable has a size at all.
      	Added default implementation of GimpViewable::get_popup_size()
      	using the new get_size() API.
      
      	* app/core/gimpbrush.c
      	* app/core/gimpbuffer.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpimage.c
      	* app/core/gimppattern.c: implement GimpViewable::get_size().
      
      	* app/core/gimpbrush.c
      	* app/core/gimppattern.c: removed GimpViewable::get_popup_size()
      	implementations, the default one is good enough.
      
      	* app/core/gimpbrushpipe.c (gimp_brush_pipe_get_popup_size):
      	redirect to gimp_viewable_get_size() instead of duplicating its
      	return values.
      
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimpview.c: allow pixbuf dragging out of any
      	viewable that has a size.
      
      	* app/widgets/gimpdrawabletreeview.c: removed pixbuf dragging code
      	here.
      
      	* app/widgets/gimpdnd.c: set gimp busy around encoding/decoding
      	pixbufs into/from GtkSelectionData, because it can be a time
      	consuming operation.
      7abaab62
  6. 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
  7. 26 Mar, 2005 1 commit
  8. 25 Mar, 2005 2 commits
    • Sven Neumann's avatar
      virtualized GimpView::set_viewable. · 7684721c
      Sven Neumann authored
      2005-03-25  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpview.[ch]: virtualized GimpView::set_viewable.
      
      	* app/widgets/gimptoolbox-image-area.c: hook into "set_viewable"
      	and add an XDS drag source.
      
      	* app/widgets/gimpdnd-xds.c
      	* app/widgets/gimpdnd.c: unset the XdndDirectSave0 property when
      	the drag ends, minor cleanups.
      7684721c
    • Sven Neumann's avatar
      app/widgets/Makefile.am new files. · 0bc3233b
      Sven Neumann authored
      2005-03-25  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimpdnd-xds.[ch]: new files.
      
      	* app/widgets/gimpdnd.[ch]
      	* app/widgets/widgets-enums.h: added a basic XDS (Direct Save
      	Protocol) implementation.
      
      	* app/widgets/gimpimageview.c: allow to save images by dragging
      	them from the Images dialog to an XDS capable file manager.
      0bc3233b
  9. 15 Jan, 2005 2 commits
    • Michael Natterer's avatar
      added gimp_dnd_get_component_icon(). · bfa73356
      Michael Natterer authored
      2005-01-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdnd.c: added gimp_dnd_get_component_icon().
      
      	* app/widgets/gimpcomponenteditor.c: allow to drag
      	components. They can't be dropped anywhere yet.
      bfa73356
    • 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
  10. 31 Dec, 2004 1 commit
    • Michael Natterer's avatar
      Applied modified patch from Ben Campbell which adds drop coordinates to · e0f25134
      Michael Natterer authored
      2004-12-31  Michael Natterer  <mitch@gimp.org>
      
      	Applied modified patch from Ben Campbell which adds drop
      	coordinates to the color drop callback and uses it to insert
      	colors in the palette editor. Extended the patch to add drop
      	coordinates to all drop callbacks.
      
      	* app/core/gimppalette.[ch]: added gimp_palette_insert_entry().
      
      	* app/display/gimpdisplayshell-dnd.[ch]: added drop coordinates
      	to all drop callbacks.
      
      	* app/dialogs/palette-import-dialog.c
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpcontainerview.c
      	* app/widgets/gimpdnd.[ch]
      	* app/widgets/gimpdrawabletreeview.c
      	* app/widgets/gimpfgbgeditor.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimppaletteeditor.c
      	* app/widgets/gimppropwidgets.c
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimptoolbox-dnd.c
      	* app/widgets/gimptoolbox-image-area.c
      	* app/widgets/gimptoolbox-indicator-area.c
      	* app/widgets/gimptooloptionseditor.c
      	* libgimpwidgets/gimpcolorselect.c: changed accordingly. The passed
      	drop coordiantes are so far unused.
      
      	* app/widgets/gimppaletteeditor.c: use the drop coordinates to
      	insert the new color into the palette at the right place instead
      	of always appending. Fixes bug #150030.
      e0f25134
  11. 06 Oct, 2004 1 commit
    • Michael Natterer's avatar
      remember for which GdkDragContext the icon_widget was made. · da1a2de8
      Michael Natterer authored
      2004-10-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdnd.c (gimp_dnd_data_drag_begin): remember for
      	which GdkDragContext the icon_widget was made.
      
      	(gimp_dnd_data_drag_end): destroy the icon_widget only if it was
      	created for this GdkDragContext. Fixes broken DND icon_widgets
      	when dragging the same source again while the old icon_widget is
      	still floating back from an unsuccessful drop. Fixes bug #139337.
      da1a2de8
  12. 16 Sep, 2004 1 commit
  13. 24 Aug, 2004 1 commit
    • David Odin's avatar
      app/widgets/gimppreview.c renamed these two files to... · cddf61a3
      David Odin authored
      * app/widgets/gimppreview.c
      * app/widgets/gimppreview.h: renamed these two files to...
      
      * app/widgets/gimpview.c
      * app/widgets/gimpview.h: ... these files.
      
      Also renamed GimpPreview to GimpView.
      This is the first step of the great Preview->View renaming process.
      
      * app/actions/palettes-commands.c
      
      * app/display/gimpdisplayshell-layer-select.c
      * app/display/gimpnavigationview.c
      
      * app/gui/palette-import-dialog.c
      
      * app/tools/gimppaintoptions-gui.c
      
      * app/widgets/Makefile.am
      * app/widgets/gimpaction.c
      * app/widgets/gimpactiongroup.c
      * app/widgets/gimpbrusheditor.c
      * app/widgets/gimpbufferview.c
      * app/widgets/gimpcontainerbox.c
      * app/widgets/gimpcontainergridview.c
      * app/widgets/gimpcontainergridview.h
      * app/widgets/gimpdevicestatus.c
      * app/widgets/gimpdnd.c
      * app/widgets/gimpdockbook.c
      * app/widgets/gimpfiledialog.c
      * app/widgets/gimpgradienteditor.c
      * app/widgets/gimpnavigationpreview.c
      * app/widgets/gimpnavigationpreview.h
      * app/widgets/gimppaletteeditor.c
      * app/widgets/gimppreview-popup.c
      * app/widgets/gimppropwidgets.c
      * app/widgets/gimpselectioneditor.c
      * app/widgets/gimpthumbbox.c
      * app/widgets/gimptoolbox-image-area.c
      * app/widgets/gimptoolbox-indicator-area.c
      * app/widgets/gimptooloptionseditor.c
      * app/widgets/gimpviewabledialog.c
      * app/widgets/widgets-types.h: changed accordingly.
      cddf61a3
  14. 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
  15. 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
  16. 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
  17. 02 Jun, 2004 2 commits
    • Michael Natterer's avatar
      removed utility funtion gimp_dnd_open_files(). · 61116ebb
      Michael Natterer authored
      2004-06-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdnd.[ch]: removed utility funtion
      	gimp_dnd_open_files().
      
      	* app/widgets/gimptoolbox-dnd.c: added gimp_toolbox_drop_files()
      	instead.
      
      	* app/display/gimpdisplayshell-dnd.c (gimp_display_shell_drop_files):
      	show the error message if opening a dropped file fails.
      61116ebb
    • Michael Natterer's avatar
      removed enum GimpDndType... · b6beebcc
      Michael Natterer authored
      2004-06-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdnd.h: removed enum GimpDndType...
      
      	* app/widgets/widgets-enums.h: ...and added it here.
      
      	* app/widgets/gimpdnd.c: added more g_return_if_fail(). Allow
      	all gimp_dnd_foo_dest_add() functions to be called without
      	callback (just add the target if callback is NULL).
      
      	(gimp_dnd_open_files): removed the checks for validity of the
      	passed filenames/uris...
      
      	(gimp_dnd_set_file_data): ...and added it here so all callbacks
      	get an already sanitized list of strings.
      b6beebcc
  18. 28 May, 2004 1 commit
  19. 15 Apr, 2004 1 commit
    • Michael Natterer's avatar
      use the new dynamic GtkTargetList based API for changing the widget's drag · 957190d7
      Michael Natterer authored
      2004-04-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdnd.c (gimp_dnd_data_source_add)
      	(gimp_dnd_data_source_remove): use the new dynamic GtkTargetList
      	based API for changing the widget's drag source types.
      
      	* app/widgets/gimpdocumentview.c (gimp_document_view_new): simply
      	call gimp_dnd_file_source_add() instead of duplicating the whole
      	GtkTargetEntry array insanity just for adding one source type.
      957190d7
  20. 14 Apr, 2004 1 commit
    • Michael Natterer's avatar
      Get rid of the "current_context" which was in fact just a bunch of global · 18d9161e
      Michael Natterer authored
      2004-04-15  Michael Natterer  <mitch@gimp.org>
      
      	Get rid of the "current_context" which was in fact just a bunch of
      	global variables. Instead, pass the needed context all the way
      	from the GUI and the PDB to the core. This is a prerequisite for
      	macro recording and generally helps separating the various
      	subsystems from each other. Work in progress...
      
      	* app/core/gimp.[ch]: removed member "current_context" and
      	gimp_[get|set]_current_context().
      
      	* app/core/gimp-edit.[ch]
      	* app/core/gimpdrawable-blend.[ch]
      	* app/core/gimpdrawable-bucket-fill.[ch]
      	* app/core/gimpdrawable-offset.[ch]
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpimage-crop.[ch]
      	* app/core/gimpimage-flip.[ch]
      	* app/core/gimpimage-merge.[ch]
      	* app/core/gimpimage-resize.[ch]
      	* app/core/gimpimage-rotate.[ch]
      	* app/core/gimpimage.[ch]
      	* app/core/gimpimagefile.[ch]
      	* app/core/gimpitem-linked.[ch]
      	* app/core/gimpitem.[ch]
      	* app/core/gimplayer.[ch]
      	* app/core/gimpselection.[ch]
      	* app/core/gimptemplate.[ch]
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/pdb/procedural_db.[ch]
      	* app/text/gimptext-compat.[ch]
      	* app/text/gimptextlayer-transform.[ch]
      	* app/gui/brush-select.[ch]
      	* app/gui/font-select.[ch]
      	* app/gui/gradient-select.[ch]
      	* app/gui/palette-select.[ch]
      	* app/gui/pattern-select.[ch]: added tons of "GimpContext *context"
      	parameters and use the passed context instead of
      	gimp_get_current_context().
      
      	* app/app_procs.c
      	* app/batch.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-ins.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimptransformtool.c
      	* app/vectors/gimpvectors.c
      	* app/gui/convert-dialog.c
      	* app/gui/drawable-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/offset-dialog.c
      	* app/gui/select-commands.c
      	* app/gui/vectors-commands.c
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpthumbbox.c: pass gimp_get_user_context() or
      	GIMP_CONTEXT(tool_options) or whatever is the right context
      	to the changed core functions.
      
      	* tools/pdbgen/app.pl: pass "GimpContext *context" to all
      	generated PDB invokers.
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/font_select.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/paint_tools.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/palette_select.pdb
      	* tools/pdbgen/pdb/palettes.pdb
      	* tools/pdbgen/pdb/paths.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/text_tool.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: pass the new context
      	parameter to the changed core functions.
      
      	* app/pdb/*_cmds.c: regenerated.
      18d9161e
  21. 10 Mar, 2004 1 commit
  22. 21 Dec, 2003 2 commits
  23. 20 Dec, 2003 2 commits
  24. 22 Nov, 2003 1 commit
  25. 20 Nov, 2003 2 commits
    • Michael Natterer's avatar
      changed drag source stuff to allow multiple data types. Changed DND source · c5865e49
      Michael Natterer authored
      2003-11-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdnd.[ch]: changed drag source stuff to allow
      	multiple data types. Changed DND source API to speak in terms of
      	add()/remove() instead of set()/unset(). Added GimpDndDragFileFunc
      	typedef and gimp_dnd_file_source_add().
      
      	Unfortunately GTK+'s DND API lacks symmetry here (no GtkTargetList
      	based API for drag sources), so we cannot really change drag
      	sources on-the-fly and need to set GtkTargetEntry arrays manually.
      
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimpmenuitem.c
      	* app/widgets/gimppaletteeditor.c
      	* app/widgets/gimppreview.c
      	* app/widgets/gimptoolbox-color-area.c: changed accordingly.
      
      	* app/widgets/gimpdocumentview.c: ditto. Additionally offer
      	"text/uri-list" so it's possible to drag images from the document
      	history to the file manager or browser.
      c5865e49
    • Michael Natterer's avatar
      cleanup before doing real changes. · de98d7af
      Michael Natterer authored
      2003-11-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdnd.c: cleanup before doing real changes.
      de98d7af
  26. 19 Nov, 2003 2 commits
  27. 03 Nov, 2003 1 commit
    • Michael Natterer's avatar
      added static "the_dnd_gimp" variable and don't use the global "the_gimp" · 481d42d5
      Michael Natterer authored
      2003-11-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdnd.[ch]: added static "the_dnd_gimp" variable
      	and don't use the global "the_gimp" any more.
      	Added gimp_dnd_init() to let the DND system know about the GUI's
      	Gimp instance.
      
      	* app/gui/gui.c (gui_init): call gimp_dnd_init().
      
      	* app/app_procs.h: changed the #warning about including
      	"app_procs.h" to an #error, like the other headers in app/ do.
      481d42d5
  28. 17 Oct, 2003 2 commits
  29. 16 Oct, 2003 1 commit