1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 29 Jan, 2007 5 commits
    • Michael Natterer's avatar
      app/core/core-enums.[ch] drop the "image" from GIMP_UNDO_IMAGE_GUIDE, · dcee3d60
      Michael Natterer authored
      2007-01-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch]
      	* app/core/gimpimage-undo-push.[ch]: drop the "image" from
      	GIMP_UNDO_IMAGE_GUIDE, GIMP_UNDO_IMAGE_SAMPLE_POINT,
      	gimp_imge_undo_push_image_guide() and
      	gimp_imge_undo_push_image_sample_point()
      
      	* app/core/gimpimage-undo.c
      	* app/core/gimpimage-guides.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-sample-points.c
      	* app/core/gimpimage-rotate.c
      	* app/tools/gimpmeasuretool.c: changed accordingly.
      
      
      svn path=/trunk/; revision=21804
      dcee3d60
    • Michael Natterer's avatar
      app/core/core-enums.[ch] reordered IMAGE_GRID and IMAGE_COLORMAP to be · c52a4310
      Michael Natterer authored
      2007-01-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch]
      	* app/core/gimpimage-undo-push.[ch]: reordered IMAGE_GRID and
      	IMAGE_COLORMAP to be before IMAGE_GUIDE and IMAGE_SAMPLE_POINT.
      
      
      svn path=/trunk/; revision=21802
      c52a4310
    • Michael Natterer's avatar
      add support for IMAGE_GRID and IMAGE_COLORMAP undos. · c757ac15
      Michael Natterer authored
      2007-01-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimageundo.[ch]: add support for IMAGE_GRID and
      	IMAGE_COLORMAP undos.
      
      	* app/core/gimpimage-undo-push.c: use GimpImageUndo for grid and
      	colormap undos.
      
      
      svn path=/trunk/; revision=21801
      c757ac15
    • Michael Natterer's avatar
      return a GimpUndo* instead of gboolean from all undo_push functions. · 9a7de055
      Michael Natterer authored
      2007-01-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-undo-push.[ch]: return a GimpUndo* instead
      	of gboolean from all undo_push functions. Simplifies the new
      	properly done functions quite a bit.
      
      
      svn path=/trunk/; revision=21800
      9a7de055
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h new undo class which handles · e9b9f1bf
      Michael Natterer authored
      2007-01-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpchannelpropundo.[ch]: new undo class which handles
      	CHANNEL_REPOSITION and CHANNEL_COLOR.
      
      	* app/core/gimpimage-undo-push.c: use the new undo class and
      	remove the resp. code here.
      
      
      svn path=/trunk/; revision=21799
      e9b9f1bf
  7. 28 Jan, 2007 6 commits
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h new undo class which handles · 125a0019
      Michael Natterer authored
      2007-01-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimplayerpropundo.[ch]: new undo class which handles
      	LAYER_REPOSITION, LAYER_MODE, LAYER_OPACITY and LAYER_LOCK_ALPHA.
      
      	* app/core/gimpimage-undo-push.c: use the new undo class and
      	remove the resp. code here.
      
      
      svn path=/trunk/; revision=21791
      125a0019
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h new undo class which handles · 60370072
      Michael Natterer authored
      2007-01-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpitempropundo.[ch]: new undo class which handles
      	ITEM_RENAME, ITEM_DISPLACE, ITEM_VISIBILITY and ITEM_LINKED undos.
      
      	* app/core/gimpimage-undo-push.c: use the new undo class and
      	remove the resp. code here.
      
      
      svn path=/trunk/; revision=21790
      60370072
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h new undo class which handles · 11a43d6a
      Michael Natterer authored
      2007-01-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpimageundo.[ch]: new undo class which handles
      	GIMP_UNDO_IMAGE_TYPE, GIMP_UNDO_IMAGE_SIZE and
      	GIMP_UNDO_IMAGE_RESOLUTION.
      
      	* app/core/gimpimage-undo-push.c: use the new undo class and
      	remove the resp. code here.
      
      	* app/core/gimpimage-undo.h: changed include guards to not
      	conflict with gimpimageundo.h
      
      
      svn path=/trunk/; revision=21789
      11a43d6a
    • Sven Neumann's avatar
      fixed spelling of "auto-generated". · 50bbab0e
      Sven Neumann authored
      2007-01-28  Sven Neumann  <sven@gimp.org>
      
      	* app/dialogs/authors.xsl: fixed spelling of "auto-generated".
      
      	* app/tools/gimprectangletool.c: removed unused declaration.
      
      
      svn path=/trunk/; revision=21788
      50bbab0e
    • Michael Natterer's avatar
      add the passed TileManager's size to undo->size. · 3003ca1b
      Michael Natterer authored
      2007-01-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawableundo.c (gimp_drawable_undo_constructor):
      	add the passed TileManager's size to undo->size.
      
      	* app/core/gimpimage-undo-push.c (gimp_image_undo_push_drawable):
      	no need to get and pass the TileManager's size here.
      
      
      svn path=/trunk/; revision=21787
      3003ca1b
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h new GimpItemUndo subclass which · 14fa7e3a
      Michael Natterer authored
      2007-01-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpchannelundo.[ch]: new GimpItemUndo subclass which
      	handles all the channel undo stuff itself.
      
      	* app/core/gimpimage-undo-push.c: removed all channel undo code
      	here and simply create a GimpChannelUndo instance.
      
      
      svn path=/trunk/; revision=21786
      14fa7e3a
  8. 27 Jan, 2007 1 commit
    • Tor Lillqvist's avatar
      Fix #398311 in GIMP until corresponding abstraction has been added to · 32d58bf2
      Tor Lillqvist authored
      2007-01-26  Tor Lillqvist  <tml@novell.com>
      
      	Fix #398311 in GIMP until corresponding abstraction has been added
      	to GLib:
      
      	* app/base/tile-private.h: Use gint64 instead of off_t. (I assume
      	the configury makes sure GIMP is always compiled as
      	large-file-aware on Unix with an off_t of at least 64 bits?)
      
      	Introduce wrapper macros LARGE_SEEK() and LARGE_TRUNCATE(). On
      	Win32 LARGE_SEEK() calls _lseeki64() in the Microsoft C library,
      	and LARGE_TRUNCATE calls a new internal function
      	gimp_win32_large_truncate(). On Unix they call lseek() and
      	ftruncate().
      
      	* app/base/tile-swap.c: Use gint64 instead of off_t. Use
      	LARGE_SEEK() and LARGE_TRUNCATE() instead of lseek() and
      	ftruncate().
      	(gimp_win32_large_truncate): New function. Calls LARGE_SEEK() and
      	SetEndOfFile().
      
      	* app/xcf/xcf-load.c (xcf_swap_func): Use LARGE_SEEK() instead of
      	lseek().
      
      
      svn path=/trunk/; revision=21785
      32d58bf2
  9. 26 Jan, 2007 3 commits
    • Sven Neumann's avatar
      applied patch from Joao S. O. Bueno Calligaris that fixes rectangle · 0ddd3db4
      Sven Neumann authored
      2007-01-26  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimprectangletool.c: applied patch from Joao
      	S. O. Bueno Calligaris that fixes rectangle resizing (bug 
      #400283).
      
      
      svn path=/trunk/; revision=21784
      0ddd3db4
    • Tor Lillqvist's avatar
      Use wide character version of SetConsoleTitle(). · 2f6ed7f6
      Tor Lillqvist authored
      2007-01-26  Tor Lillqvist  <tml@novell.com>
      
      	* app/main.c: Use wide character version of SetConsoleTitle().
      
      
      svn path=/trunk/; revision=21782
      2f6ed7f6
    • Tor Lillqvist's avatar
      Make the handling of console output make more sense Win32. Should mostly · 92cdceed
      Tor Lillqvist authored
      2007-01-26  Tor Lillqvist  <tml@novell.com>
      
      	Make the handling of console output make more sense Win32. Should
      	mostly fix #400927.
      	    
      	* app/app_procs.c (app_exit): Drop the Win32 "This console window
      	will close in ten seconds" message from here.
      	(app_run): Drop the call to FreeConsole() from here. GIMP is built
      	as a GUI executable on Windows, and in case we do open a fresh
      	console window in main() (see below), we shouldn't then
      	immediately close it here.
      
      	* app/errors.c (errors_init): Drop printing the "You can mimize
      	this window, but don't close it" message on Win32 from here.
      
      	* app/main.c (gimp_open_console_window): New Win32-only
      	function. If either stdout or stderr are unconnected, open a new
      	console window and connect stdout and/or stderr to it as
      	needed. Set the console title to "GIMP output. You can minimize
      	this window, but don't close it." Register an atexit function that
      	waits for the user to close the console window.
      	(wait_console_window): New Win32-only function. Registered as an
      	atexit function when GIMP has opened a new console window. Prompts
      	the user to type any character to close the window.
      	(main, gimp_show_version): Always call gimp_open_console_window()
      	in the unstable version. As the "This is a development version of
      	GIMP. Debug messages may appear here" message says, one point of
      	the unstable version is that debug messages should be visible, so
      	I think it makes sense to always see them in an unstable
      	version. In stable versions, call gimp_open_console_window() only
      	if options that cause output that the user wants to see were
      	given, like --help and --version.
      
      
      svn path=/trunk/; revision=21781
      92cdceed
  10. 25 Jan, 2007 1 commit