1. 19 Jul, 2005 1 commit
    • Michael Natterer's avatar
      app/widgets/Makefile.am new files keeping the render acceleration check · 19ea2a9d
      Michael Natterer authored
      2005-07-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimprender.[ch]: new files keeping the render
      	acceleration check buffers.
      
      	* app/display/gimpdisplayshell-render.[ch]: removed them here.
      
      	* app/gui/gui.c: initialize/shutdown the new buffers.
      
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpviewrenderer.c
      	* app/widgets/gimpviewrenderergradient.c
      	* app/actions/view-actions.c
      	* app/display/gimpdisplayshell-appearance.c
      	* app/display/gimpdisplayshell-draw.c
      	* app/display/gimpdisplayshell.c: use the new stuff. Removes
      	lots of broken widgets -> display dependencies.
      19ea2a9d
  2. 24 Jun, 2005 1 commit
    • Tor Lillqvist's avatar
      Add new GimpCanvasStyle value, GIMP_CANVAS_STYLE_XOR_DOTTED. · de642dd1
      Tor Lillqvist authored
      2005-06-24  Tor Lillqvist  <tml@novell.com>
      
      	* app/display/gimpcanvas.h: Add new GimpCanvasStyle value,
      	GIMP_CANVAS_STYLE_XOR_DOTTED.
      
      	* app/display/gimpcanvas.c (gimp_canvas_gc_new): Implement it like
      	GIMP_CANVAS_STYLE_XOR_DASHED, except that we set the dash pattern
      	to a single-pixel on-off one.
      
      	* app/tools/gimpdrawtool.c (gimp_draw_tool_draw_boundary): Sort
      	the boundary so that we can draw each connected group of segments
      	using gimp_canvas_draw_lines(). (Even if we would still use
      	gimp_canvas_draw_segments(), the boundary would have to be sorted
      	so that the XOR drawing and GDK_CAP_NOT_LAST cooperate properly.)
      
      	Use GIMP_CANVAS_STYLE_XOR_DOTTED so the outline doesn't look too
      	heavy.
      
      	Remove the dubious code snippet that offset some segments by one
      	pixel. It didn't do what the comment claimed, and why one would
      	need to do what the comment said, or what it actually did, is
      	unclear.
      
      	Now brush outlines shouldn't have gaps any longer. (#308710)
      de642dd1
  3. 20 Jun, 2005 1 commit
  4. 15 Jun, 2005 1 commit
    • Sven Neumann's avatar
      capitalization. · 03c941a9
      Sven Neumann authored
      2005-06-16  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-close.c: capitalization.
      03c941a9
  5. 31 May, 2005 1 commit
  6. 27 May, 2005 2 commits
  7. 26 May, 2005 1 commit
    • Sven Neumann's avatar
      destroy the regions allocated here. · 8eeb831d
      Sven Neumann authored
      2005-05-26  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell.c (gimp_display_shell_set_highlight):
      	destroy the regions allocated here.
      8eeb831d
  8. 18 May, 2005 2 commits
  9. 11 May, 2005 3 commits
  10. 08 May, 2005 1 commit
    • Sven Neumann's avatar
      inline tile_manager_get_tile_num(). · 3bb2f799
      Sven Neumann authored
      2005-05-09  Sven Neumann  <sven@gimp.org>
      
      	* app/base/tile-manager.c: inline tile_manager_get_tile_num().
      
      	* app/display/gimpdisplayshell-render.c (render_image_tile_fault):
      	reverted one of the changes I did here earlier.
      3bb2f799
  11. 06 May, 2005 1 commit
  12. 28 Apr, 2005 2 commits
  13. 27 Apr, 2005 4 commits
    • Sven Neumann's avatar
      spare a few CPU cycles. · 5953d527
      Sven Neumann authored
      2005-04-28  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-render.c: spare a few CPU cycles.
      5953d527
    • Sven Neumann's avatar
      removed redundant check. · 928b4f23
      Sven Neumann authored
      2005-04-27  Sven Neumann  <sven@gimp.org>
      
      	* app/base/tile-manager.c (tile_manager_get_tile): removed
      	redundant check.
      
      	* app/display/gimpdisplayshell-render.c: don't access the next
      	tile if we are at the end of the render loop anyway.
      928b4f23
    • Sven Neumann's avatar
      removed unused byte_order variables. · 1b142e3b
      Sven Neumann authored
      2005-04-27  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-render.c: removed unused byte_order
      	variables.
      1b142e3b
    • Sven Neumann's avatar
      declared the return value of gimp_image_get_colormap() as const. · 61d6c935
      Sven Neumann authored
      2005-04-27  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimage-colormap.[ch]: declared the return value of
      	gimp_image_get_colormap() as const.
      
      	* app/display/gimpdisplayshell-render.c: added some const qualifiers.
      61d6c935
  14. 14 Apr, 2005 5 commits
  15. 13 Apr, 2005 1 commit
  16. 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
  17. 07 Apr, 2005 1 commit
    • Sven Neumann's avatar
      changed GimpConfig utility functions to take GObject variables instead of · 333593da
      Sven Neumann authored
      2005-04-07  Sven Neumann  <sven@gimp.org>
      
      	* libgimpconfig/gimpconfig-utils.[ch]: changed GimpConfig utility
      	functions to take GObject variables instead of GimpConfig. There's
      	nothing GimpConfig specific about these utilities.
      
      	* app/actions/templates-commands.c
      	* app/actions/tool-options-commands.c
      	* app/base/base.c
      	* app/config/gimpcoreconfig.c
      	* app/config/gimpdisplayconfig.c
      	* app/config/gimprc.c
      	* app/core/gimpimage-grid.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpstrokedesc.c
      	* app/dialogs/grid-dialog.c
      	* app/dialogs/image-new-dialog.c
      	* app/dialogs/stroke-dialog.c
      	* app/display/gimpdisplayshell.c
      	* app/text/gimptextlayer.c
      	* app/text/gimptextundo.c
      	* app/tools/gimptextoptions.c
      	* libgimpconfig/gimpconfig-iface.c: changed accordingly.
      333593da
  18. 04 Apr, 2005 1 commit
    • Michael Natterer's avatar
      app/dialogs/Makefile.am removed. · ac8e7db9
      Michael Natterer authored
      2005-04-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/dialogs/Makefile.am
      	* app/dialogs/info-window.[ch]: removed.
      
      	* app/actions/view-actions.c
      	* app/actions/view-commands.[ch]
      	* menus/image-menu.xml.in: removed its action and menu stuff.
      
      	* app/display/gimpdisplayshell-cursor.c
      	* app/display/gimpdisplayshell-title.c
      	* app/display/gimpdisplayshell.[ch]: removed info window stuff.
      	This was the last display -> dialogs dependency.
      
      	* app/dialogs/dialogs.c: added ugly hack that references
      	info_dialog. Otherwise the still existing tools -> dialogs
      	dependency breaks the build.
      ac8e7db9
  19. 03 Apr, 2005 1 commit
    • Michael Natterer's avatar
      added new signals "sample-point-added" and "sample-point-removed" and · 0231374c
      Michael Natterer authored
      2005-04-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage.[ch]: added new signals "sample-point-added"
      	and "sample-point-removed" and public functions to emit them.
      
      	* app/core/gimpimage-sample-points.c (gimp_image_add_sample_point)
      	(gimp_image_remove_sample_point): emit them accordingly.
      
      	* app/core/gimpimage-undo-push.c (undo_pop_image_sample_point):
      	ditto.
      
      	(undo_pop_image_guide)
      	(undo_pop_image_sample_point): added comments why we add/remove
      	stuff manually instead of using the GimpImage APIs.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpcursorview.[ch]
      	* app/widgets/gimpsamplepointeditor.[ch]: new widgets.
      	GimpCursorView is a replacement for the info window's "Cursor"
      	page, GimpSamplePointEditor is a view on an image's sample points.
      	The sample point editor does nothing yet except keeping a 2x2 grid
      	of GimpColorFrames. Addresses bug #137776.
      
      	* app/dialogs/dialogs.c
      	* app/dialogs/dialogs-constructors.[ch]: register the new widgets
      	as dockable dialogs.
      
      	* app/actions/dialogs-actions.c (dialogs_dockable_actions)
      	* menus/dialogs-menuitems.xml: added actions and menu items for
      	the new dialogs.
      
      	* app/display/gimpdisplayshell-cursor.c
      	(gimp_display_shell_update_cursor)
      	(gimp_display_shell_clear_cursor): update the new cursor view.
      
      	* app/widgets/gimphelp-ids.h: help IDs for the new dialogs.
      
      	* app/widgets/widgets-enums.[ch] (enum GimpColorFrameMode):
      	changed description "Pixel values" to "Pixel" because the former
      	was too long.
      0231374c
  20. 01 Apr, 2005 1 commit
  21. 31 Mar, 2005 1 commit
  22. 26 Mar, 2005 1 commit
  23. 24 Mar, 2005 1 commit
  24. 23 Mar, 2005 1 commit
  25. 19 Mar, 2005 1 commit
    • Michael Natterer's avatar
      app/core/gimpimage-sample-points.c app/display/gimpdisplayshell-draw.c · 7cbe447c
      Michael Natterer authored
      2005-03-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-sample-points.c
      	* app/display/gimpdisplayshell-draw.c
      	* app/display/gimpdisplayshell.c
      	* app/tools/gimpcolortool.c: make sure sample points always have
      	coordinates in the range [0..width/height-1], also added lots of
      	+0.5 because they live at the pixels' centers, not at their
      	borders. Fixed drawing of sample points at the display borders.
      7cbe447c
  26. 09 Mar, 2005 1 commit
    • Michael Natterer's avatar
      More sample point stuff. Addresses bug #137776. · f41e0590
      Michael Natterer authored
      2005-03-09  Michael Natterer  <mitch@gimp.org>
      
      	More sample point stuff. Addresses bug #137776.
      
      	* app/core/gimpimage-sample-points.c
      	* app/core/gimpimage-undo-push.c: append, not prepend the sample
      	paints to the image's list because their index matters. Update
      	sample points when their index changes.
      
      	* app/display/gimpcanvas.[ch]: added own sytles for the sample
      	points.  Added gimp_canvas_draw_text() which uses a PangoLayout
      	which is cached in the canvas.
      
      	* app/display/gimpdisplayshell-draw.c
      	(gimp_display_shell_draw_sample_point): draw the sample points
      	more distinct from guides using the new canvas APIs above.
      
      	* app/display/gimpdisplayshell-callbacks.c
      	(gimp_display_shell_[hv]ruler_button_press): factored out all
      	code to
      
      	(gimp_display_shell_ruler_burron_press): which takes a boolean
      	"horizontal" variable and allows to add sample points with
      	<control>+drag.
      
      	* app/tools/gimpcolortool.[ch]: implement adding, moving and
      	removing of samp...
      f41e0590
  27. 08 Mar, 2005 1 commit
  28. 05 Mar, 2005 1 commit
    • Michael Natterer's avatar
      app/actions/view-actions.c app/actions/view-commands.[ch] · be6a9d2a
      Michael Natterer authored
      2005-03-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/view-actions.c
      	* app/actions/view-commands.[ch]
      	* app/config/gimprc-blurbs.h
      	* app/core/core-enums.[ch]
      	* app/core/gimp.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-undo-push.[ch]
      	* app/core/gimpimage.c
      	* app/display/gimpdisplayoptions.[ch]
      	* app/display/gimpdisplayshell-appearance.[ch]
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-draw.[ch]
      	* app/widgets/gimphelp-ids.h
      	* menus/image-menu.xml.in: reordered stuff to be in guides, grid,
      	sample points order. Some cleanup and indentation.
      be6a9d2a