1. 08 Feb, 2007 8 commits
    • Michael Natterer's avatar
      app/paint/paint-types.h move opaque typedefs of object instances to · 1da4a19f
      Michael Natterer authored
      2007-02-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/paint-types.h
      	* app/paint/*.h: move opaque typedefs of object instances to
      	paint-types.h, don't typedef empty class stuctures as their parent
      	class (gtk-doc gets confused), cleanups.
      
      
      svn path=/trunk/; revision=21877
      1da4a19f
    • Sven Neumann's avatar
      app/tools/gimprectangleoptions.c moved code around. · b76ad2b8
      Sven Neumann authored
      2007-02-08  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimprectangleoptions.c
      	* app/widgets/gimppropwidgets.[ch]: moved code around.
      
      
      svn path=/trunk/; revision=21876
      b76ad2b8
    • Sven Neumann's avatar
      code cleanup. Pack the widgets the way we usually do this. · aba50bbc
      Sven Neumann authored
      2007-02-08  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimprectangleoptions.c (gimp_rectangle_options_gui):
      	code cleanup. Pack the widgets the way we usually do this.
      
      
      svn path=/trunk/; revision=21875
      aba50bbc
    • Sven Neumann's avatar
      applied patch from Robert Helgesson. Adds documentation (bug #405760). · aac28d11
      Sven Neumann authored
      2007-02-08  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-scale.c: applied patch from Robert
      	Helgesson. Adds documentation (bug #405760).
      
      svn path=/trunk/; revision=21874
      aac28d11
    • Sven Neumann's avatar
      reduced default spacing. · fbc67ff2
      Sven Neumann authored
      2007-02-08  Sven Neumann  <sven@gimp.org>
      
      	* libgimpwidgets/gimpenumwidgets.c
      	(gimp_enum_stock_box_new_with_range): reduced default spacing.
      
      	* app/tools/gimpcurvestool.c (gimp_curves_tool_dialog): don't
      	increase the box's spacing.
      
      	* app/tools/gimprectangleoptions.c: added portrait/landscape
      	buttons.
      
      	* app/widgets/gimppropwidgets.c (gimp_prop_aspect_ratio_new):
      	reduced default width of entry.  Swap width and height when the
      	aspect changes and fixed-aspect is chosen.
      
      svn path=/trunk/; revision=21873
      fbc67ff2
    • Sven Neumann's avatar
      app/tools/gimprectangleoptions.c cleaned out some cruft. Still work in · 938b316d
      Sven Neumann authored
      2007-02-08  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimprectangleoptions.c
      	* app/widgets/gimppropwidgets.[ch]: cleaned out some cruft. Still
      	work in progress.
      
      svn path=/trunk/; revision=21872
      938b316d
    • Sven Neumann's avatar
      app/widgets/widgets-enums.c moved enum GimpAspectType to libgimpwidgets. · 525b8bd6
      Sven Neumann authored
      2007-02-08  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/widgets-enums.c
      	* libgimpwidgets/gimpwidgetsenums.[ch]: moved enum GimpAspectType
      	to libgimpwidgets.
      
      	* libgimpwidgets/gimpratioentry.[ch]: added property "aspect" with
      	getters and setters.
      
      	* libgimpwidgets/gimpwidgets.def: updated.
      
      
      svn path=/trunk/; revision=21867
      525b8bd6
    • Michael Natterer's avatar
      Unbreak rectangle select tool undo handling a bit: · f7bfea19
      Michael Natterer authored
      2007-02-08  Michael Natterer  <mitch@gimp.org>
      
      	Unbreak rectangle select tool undo handling a bit:
      
      	* app/tools/gimprectangleselecttool.c (gimp_rect_select_tool_select):
      	add boolean return value indicating if something was actually selected.
      
      	(gimp_rect_select_tool_rectangle_changed): peek the newly pushed
      	undo only if we selected something.
      
      
      svn path=/trunk/; revision=21866
      f7bfea19
  2. 07 Feb, 2007 6 commits
    • Michael Natterer's avatar
      remove enum GimpColorPickMode... · fc761f6e
      Michael Natterer authored
      2007-02-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/tools-enums.[ch]: remove enum GimpColorPickMode...
      
      	* app/widgets/widgets-enums.[ch]: ...and add it here.
      
      	* app/widgets/gimpgradienteditor.c: merge separate functions for
      	picking FG and BG colors and update the new color area from the
      	merged function.
      
      
      svn path=/trunk/; revision=21863
      fc761f6e
    • Sven Neumann's avatar
      app/dialogs/preferences-dialog.c slightly increased the height of color · ab406a1b
      Sven Neumann authored
      2007-02-07  Sven Neumann  <sven@gimp.org>
      
      	* app/dialogs/preferences-dialog.c
      	* app/widgets/gimpgrideditor.c: slightly increased the height of
      	color buttons.
      
      svn path=/trunk/; revision=21862
      ab406a1b
    • Michael Natterer's avatar
      applied patch from Joao S. O. Bueno Calligaris which adds a preview for · d6ee1180
      Michael Natterer authored
      2007-02-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpgradienteditor.[ch]: applied patch from Joao
      	S. O. Bueno Calligaris which adds a preview for the color the
      	cursor is currently hovering and reduces excess precision when
      	displaying color components and gradient positions (bug #400907).
      
      
      svn path=/trunk/; revision=21858
      d6ee1180
    • Sven Neumann's avatar
      don't compare floating point numbers for equality. · 6e134e6d
      Sven Neumann authored
      2007-02-07  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-scale.c: don't compare floating
      	point numbers for equality.
      
      
      svn path=/trunk/; revision=21857
      6e134e6d
    • Sven Neumann's avatar
      #define DBUS_API_SUBJECT_TO_CHANGE to fix compilation with outdated · f389d32a
      Sven Neumann authored
      2007-02-07  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/gui.c: #define DBUS_API_SUBJECT_TO_CHANGE to fix
      	compilation with outdated versions of D-Bus.
      
      
      svn path=/trunk/; revision=21856
      f389d32a
    • Sven Neumann's avatar
      app/actions/view-actions.c app/actions/view-commands.[ch] · ea4ed72e
      Sven Neumann authored
      2007-02-07  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/view-actions.c
      	* app/actions/view-commands.[ch]
      	* app/display/gimpdisplayshell.[ch]
      	* app/display/gimpdisplayshell-scale.[ch]
      	* app/widgets/gimphelp-ids.h
      	* menus/image-menu.xml.in: applied patch from Robert Helgesson 
      that
      	adds "Revert Zoom" functionality (bug #338168).
      
      
      svn path=/trunk/; revision=21855
      ea4ed72e
  3. 06 Feb, 2007 1 commit
  4. 05 Feb, 2007 1 commit
    • Sven Neumann's avatar
      let the return value indicate whether the file has been saved. · 9e1202f0
      Sven Neumann authored
      2007-02-05  Sven Neumann  <sven@gimp.org>
      
      	* app/dialogs/file-save-dialog.c (file_save_dialog_save_image):
      	let the return value indicate whether the file has been saved.
      	(file_save_dialog_response): only hide the dialog after the 
      image
      	has been saved.
      
      
      svn path=/trunk/; revision=21852
      9e1202f0
  5. 03 Feb, 2007 4 commits
    • Michael Natterer's avatar
      Remove support for the old undo pop and free cruft: · bdc91d6c
      Michael Natterer authored
      2007-02-03  Michael Natterer  <mitch@gimp.org>
      
      	Remove support for the old undo pop and free cruft:
      
      	* app/core/core-types.h: remove typedefs GimpUndoPopFunc and
      	GimpUndoFreeFunc.
      
      	* app/core/gimpundo.[ch]: remove members and properties size,
      	data, pop_func and free_func.
      
      	* app/core/gimpimage-undo.[ch] (gimp_image_undo_push): remove
      	parameters size, struct_size, pop_func and free_func.
      
      	* app/core/gimpimage-undo-push.c
      	* app/tools/gimptransformtool.c
      	* app/paint/gimpink.c
      	* app/paint/gimppaintcore.c: change calls to above function
      	accordingly.
      
      
      svn path=/trunk/; revision=21845
      bdc91d6c
    • Michael Natterer's avatar
      implement GIMP_UNDO_FS_TO_LAYER. · a95bbc5d
      Michael Natterer authored
      2007-02-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpfloatingselundo.[ch]: implement GIMP_UNDO_FS_TO_LAYER.
      
      	* app/core/gimpimage-undo-push.c: use it. Also changed
      	gimp_image_undo_push_cantundo() to not pass a pop function to
      	gimp_image_undo_push().
      
      
      svn path=/trunk/; revision=21844
      a95bbc5d
    • Michael Natterer's avatar
      app/tools/gimpforegroundselecttool-undo.[ch] removed... · 426020da
      Michael Natterer authored
      2007-02-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpforegroundselecttool-undo.[ch]
      	* app/tools/gimptransformtool-undo.[ch]: removed...
      
      	* app/tools/Makefile.am
      	* app/tools/tools-types.h
      	* app/tools/gimpforegroundselecttoolundo.[ch]
      	* app/tools/gimptransformtoolundo.[ch]: ...and added a proper undo
      	classes.
      
      	* app/tools/gimptransformtool.c: push undos using the new class.
      
      
      svn path=/trunk/; revision=21843
      426020da
    • Michael Natterer's avatar
      app/paint/gimppaintcore-undo.[ch] removed... · 792ba898
      Michael Natterer authored
      2007-02-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintcore-undo.[ch]
      	* app/paint/gimpink-undo.[ch]: removed...
      
      	* app/paint/Makefile.am
      	* app/paint/paint-types.h
      	* app/paint/gimppaintcoreundo.[ch]
      	* app/paint/gimpinkundo.[ch]: ...and added as proper undo classes.
      
      	* app/paint/gimppaintcore.[ch]
      	* app/paint/gimpink.c: push undos using the new classes.
      
      
      svn path=/trunk/; revision=21842
      792ba898
  6. 02 Feb, 2007 4 commits
    • Sven Neumann's avatar
      renamed to app/app.[ch]. · 766d27da
      Sven Neumann authored
      2007-02-02  Sven Neumann  <sven@gimp.org>
      
      	* app/app_procs.[ch]: renamed to app/app.[ch].
      
      	* app/Makefile.am
      	* app/main.c: changed accordingly.
      
      
      svn path=/trunk/; revision=21838
      766d27da
    • Sven Neumann's avatar
      changed function signature according to changes in internal undo API. · 06f2e093
      Sven Neumann authored
      2007-02-02  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpitemtreeview.c (gimp_item_tree_view_toggle_clicked):
      	changed function signature according to changes in internal undo API.
      
      
      svn path=/trunk/; revision=21836
      06f2e093
    • Michael Natterer's avatar
      app/core/gimpimageundo.[ch] implement image and item parasite attach and · 3c6912c5
      Michael Natterer authored
      2007-02-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimageundo.[ch]
      	* app/core/gimpitempropundo.[ch]: implement image and item
      	parasite attach and remove undos. They are image/item properties
      	after all.
      
      	* app/core/gimpimage-undo-push.[ch]: use them here and move the
      	undo functions to the resp. image and item property sections.
      
      
      svn path=/trunk/; revision=21835
      3c6912c5
    • Sven Neumann's avatar
      app/actions/error-console-commands.c app/actions/gradients-commands.c · aae05d4e
      Sven Neumann authored
      2007-02-02  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/error-console-commands.c
      	* app/actions/gradients-commands.c
      	* app/actions/text-editor-commands.c
      	* app/dialogs/vectors-export-dialog.c
      	* app/dialogs/vectors-import-dialog.c
      	* app/tools/gimpimagemaptool.c 
      (gimp_image_map_tool_settings_dialog):
      	set default response and do-overwrite-confirmation on the file
      	chooser dialogs. Fixes bug #403449 for all core dialogs.
      
      
      svn path=/trunk/; revision=21832
      aae05d4e
  7. 01 Feb, 2007 2 commits
    • Sven Neumann's avatar
      ellipsize progress label. · 18a07d42
      Sven Neumann authored
      2007-02-01  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpprogressbox.c: ellipsize progress label.
      
      	* app/widgets/gimpprogressdialog.c: set a fixed width for progress
      	dialogs.
      
      	* libgimp/gimpprogressbar.c: ellipsize progress label.
      
      
      svn path=/trunk/; revision=21831
      18a07d42
    • Sven Neumann's avatar
      app/config/gimpdisplayconfig.c changed the default monitor resolution to · fb6db20b
      Sven Neumann authored
      2007-02-01  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpdisplayconfig.c
      	* app/widgets/gimpwidgets-utils.c (gimp_get_screen_resolution):
      	changed the default monitor resolution to 96 dpi and also use that
      	as a fallback value.
      
      
      svn path=/trunk/; revision=21830
      fb6db20b
  8. 31 Jan, 2007 8 commits
    • Michael Natterer's avatar
      require "name" being non-NULL. · 6072f873
      Michael Natterer authored
      2007-01-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.c (gimp_item_parasite_detach): require "name"
      	being non-NULL.
      
      	* app/core/gimpimage-undo-push.c (undo_pop_parasite): removed dead
      	code which handled parasites of the Gimp itself, don't include
      	"gimp-parasites.h".
      
      	Require "parasite" and "name" being non-NULL in all public
      	parasite undo functions.
      
      
      svn path=/trunk/; revision=21829
      6072f873
    • Michael Natterer's avatar
      app/core/gimpmaskundo.c implement GimpObject::get_memsize() instead of · d0df7dae
      Michael Natterer authored
      2007-01-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpmaskundo.c
      	* app/core/gimpitempropundo.c: implement GimpObject::get_memsize()
      	instead of fiddling with undo->size.
      
      
      svn path=/trunk/; revision=21828
      d0df7dae
    • Michael Natterer's avatar
      removed "drawable" parameter because it's always the drawable the floating · ff997b36
      Michael Natterer authored
      2007-01-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-undo-push.[ch]
      	(gimp_image_undo_push_fs_to_layer): removed "drawable" parameter
      	because it's always the drawable the floating selection is
      	attached to.
      
      	* app/core/gimplayer-floating-sel.c (floating_sel_to_layer):
      	changed accordingly.
      
      
      svn path=/trunk/; revision=21827
      ff997b36
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h new undo class for · 89ee6f4d
      Michael Natterer authored
      2007-01-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpfloatingselundo.[ch]: new undo class for
      	GIMP_UNDO_FS_RIGOR and GIMP_UNDO_FS_RELAX.
      
      	* app/core/gimpimage-undo-push.c: use it here.
      
      	* app/core/gimpimageundo.c
      	* app/core/gimpdrawableundo.c: implement GimpObject::get_memsize()
      	instead of fiddling with undo->size.
      
      
      svn path=/trunk/; revision=21826
      89ee6f4d
    • Michael Natterer's avatar
      app/vectors/Makefile.am app/vectors/vectors-types.h new undo class for · 6c01c0db
      Michael Natterer authored
      2007-01-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/vectors/Makefile.am
      	* app/vectors/vectors-types.h
      	* app/vectors/gimpvectorsmodundo.[ch]: new undo class for
      	GIMP_UNDO_VECTORS_MOD.
      
      	* app/core/gimpimage-undo-push.c: use it here.
      
      	* app/core/gimpdrawablemodundo.h: fix typo in include guard.
      
      
      svn path=/trunk/; revision=21825
      6c01c0db
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h new undo class for · 336d7761
      Michael Natterer authored
      2007-01-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpdrawablemodundo.[ch]: new undo class for
      	GIMP_UNDO_DRAWABLE_MOD.
      
      	* app/core/gimpimage-undo-push.c: use it here.
      
      
      svn path=/trunk/; revision=21824
      336d7761
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h new undo class for · a7c0058c
      Michael Natterer authored
      2007-01-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimplayermaskpropundo.[ch]: new undo class for
      	GIMP_UNDO_LAYER_MASK_APPLY and GIMP_UNDO_LAYER_MASK_SHOW.
      
      	* app/core/gimpimage-undo-push.c: use it here.
      
      
      svn path=/trunk/; revision=21823
      a7c0058c
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h app/core/gimpchannelundo.[ch] · d388d584
      Michael Natterer authored
      2007-01-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpchannelundo.[ch]
      	* app/core/gimplayerundo.[ch]
      	* app/core/gimplayermaskundo.[ch]: new undo classes implementing
      	channel, layer and layer mask add and remove undos.
      
      	* app/vectors/Makefile.am
      	* app/vectors/vectors-types.h
      	* app/vectors/gimpvectorsundo.[ch]: vectors add and remove undos.
      
      	* app/core/gimpimage-undo-push.[ch]: use the new undo classes.
      	Removed "position" parameter from all "add" functions because
      	it's useless.
      
      	* app/core/gimpimage.c: changed accordingly.
      
      
      svn path=/trunk/; revision=21822
      d388d584
  9. 30 Jan, 2007 6 commits
    • Michael Natterer's avatar
      renamed these files... · 9020afcf
      Michael Natterer authored
      2007-01-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpchannelundo.[ch]: renamed these files...
      
      	* app/core/gimpmaskundo.[ch]: ...to these. We'll need the name
      	GimpChannelUndo for something else later.
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpimage-undo-push.c: changed accordingly.
      
      
      svn path=/trunk/; revision=21819
      9020afcf
    • Michael Natterer's avatar
      app/vectors/Makefile.am app/vectors/vectors-types.h new undo class which · f71d884b
      Michael Natterer authored
      2007-01-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/vectors/Makefile.am
      	* app/vectors/vectors-types.h
      	* app/vectors/gimpvectorspropundo.[ch]: new undo class which
      	implements GIMP_UNDO_VECTORS_REPOSITION.
      
      	* app/core/gimpimage-undo-push.c: use it here.
      
      	* app/Makefile.am: another lame linker hack to make it build with
      	the new file that is not used in app/vectors/ itself.
      
      
      svn path=/trunk/; revision=21818
      f71d884b
    • Michael Natterer's avatar
      app/core/gimpguideundo.c app/core/gimpimageundo.c · e5419559
      Michael Natterer authored
      2007-01-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpguideundo.c
      	* app/core/gimpimageundo.c
      	* app/core/gimplayerpropundo.c
      	* app/core/gimpsamplepointundo.c
      	* app/core/gimpdrawableundo.c
      	* app/core/gimpitempropundo.c
      	* app/core/gimpchannelpropundo.c
      	* app/core/gimpchannelundo.c
      	* app/core/gimpitemundo.c: chain up last in GimpUndo::free(), use
      	switch() in place of if/else when there is more than one undo type
      	implemented in one file, g_assert_not_reached() in default:, some
      	minor cleanups.
      
      
      svn path=/trunk/; revision=21817
      e5419559
    • Michael Natterer's avatar
      add support for GIMP_UNDO_TEXT_LAYER_MODIFIED. · 13a3975b
      Michael Natterer authored
      2007-01-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/text/gimptextundo.[ch]: add support for
      	GIMP_UNDO_TEXT_LAYER_MODIFIED.
      
      	* app/core/gimpimage-undo-push.c: use it here.
      
      
      svn path=/trunk/; revision=21816
      13a3975b
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h app/core/gimpguideundo.[ch] new · f0d1d864
      Michael Natterer authored
      2007-01-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpguideundo.[ch]
      	* app/core/gimpsamplepointundo.[ch]: new classes implementing
      	guide and sample point undos.
      
      	* app/core/gimpimage-undo-push.c: use them and remove all guide
      	and sample point code.
      
      
      svn path=/trunk/; revision=21815
      f0d1d864
    • Michael Natterer's avatar
      app/core/Makefile.am new files implementing new(), ref() and unref() and · 11b1d24a
      Michael Natterer authored
      2007-01-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/gimpsamplepoint.[ch]: new files implementing new(),
      	ref() and unref() and the new GIMP_TYPE_SAMPLE_TYPE boxed type.
      
      	* app/core/gimpimage-sample-points.[ch]: removed ref() and unref()
      	functions here.
      
      	* app/core/gimpimage.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-flip.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-rotate.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-undo-push.c
      	* app/display/gimpdisplayshell.c
      	* app/display/gimpdisplayshell-draw.c
      	* app/tools/gimpcolortool.c
      	* app/widgets/gimpsamplepointeditor.c
      	* app/xcf/xcf-save.c: changed accordingly.
      
      	* app/core/gimpimage-rotate.c (gimp_image_rotate_sample_points):
      	added missing call to gimp_image_undo_push_sample_point().
      
      
      svn path=/trunk/; revision=21812
      11b1d24a