1. 13 Jul, 2004 20 commits
    • Sven Neumann's avatar
      code cleanup. Use enums instead of a plethora of booleans. Added some · 2f16b5f8
      Sven Neumann authored
      2004-07-14  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/pagecurl/pagecurl.c: code cleanup. Use enums instead of
      	a plethora of booleans. Added some macros for readability. Allow
      	to use a reversed gradient for colorizing the curl.
      2f16b5f8
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h new interface which has · 54cc251b
      Michael Natterer authored
      2004-07-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimppickable.[ch]: new interface which has
      	get_image_type(), get_tiles() and get_color_at() methods.
      
      	* app/core/gimpdrawable.[ch]
      	* app/core/gimpimagemap.[ch]
      	* app/core/gimpprojection.[ch]: implement GimpPickableInterface
      	and removed public get_colot_at() functions.
      
      	* app/core/gimpimage-pick-color.[ch]: removed typedef
      	GimpImagePickColorFunc and gimp_image_pick_color_by_func(). Use
      	gimp_pickable_pick_color() instead.
      
      	* app/core/gimpimage-contiguous-region.c
      	* app/core/gimpimage-crop.c
      	* app/gui/info-window.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpsmudge.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpimagemaptool.c
      	* app/widgets/gimpselectioneditor.c: use GimpPickable functions
      	instead of the various get_color_at() functions. Simplifies code
      	which has a "sample_merged" boolean. Various cleanups.
      54cc251b
    • Shlomi Fish's avatar
      plug-ins/gimpressionist/presets.c: Added underscores between · 0c3377bc
      Shlomi Fish authored
      words in function names according to the GIMP's (and common
      sense) convention.
      0c3377bc
    • Shlomi Fish's avatar
      Moved the global declarations of img_has_alpha and create_colorpage to · 8252d388
      Shlomi Fish authored
      * plug-ins/gimpressionist/: Moved the global declarations of
      img_has_alpha and create_colorpage to more specialized headers.
      8252d388
    • Shlomi Fish's avatar
      Added the paper.h header for the functions defined in the paper.c module. · 3aa90e28
      Shlomi Fish authored
      * plug-ins/gimpressionist/: Added the paper.h header for the functions
      defined in the paper.c module. (thus removing more declarations
      from gimpressionist.h)
      3aa90e28
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · 784dde64
      William Skaggs authored
      	* plug-ins/gfig/gfig-dialog.c
      	* plug-ins/gfig/gfig-preview.[ch}
      	* plug-ins/gfig/gfig.h: Made Cancel work properly.  Moved "show grid",
      	"snap to grid", and "show image" checkbuttons back onto main
      	interface.  Eliminated GtkPreview and removed undef of
      	GTK_DISABLE_DEPRECATED from gfig-preview.c.  Removed some
      	unused code.
      784dde64
    • Sven Neumann's avatar
      use gtk_widget_queue_draw_area() instead of the deprecated · 93d329db
      Sven Neumann authored
      2004-07-13  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/gflare/gflare.c (preview_handle_idle): use
      	gtk_widget_queue_draw_area() instead of the deprecated
      	gtk_widget_draw() routine.
      
      	* plug-ins/gimpressionist/orientmap.c
      	* plug-ins/gimpressionist/paper.c
      	* plug-ins/gimpressionist/sizemap.c: use gtk_widget_queue_draw()
      	instead of the deprecated gtk_widget_draw() routine.
      93d329db
    • Shlomi Fish's avatar
      plug-ins/gimpressionist/preview.c Eliminated two compile-time warnings. · ce4319ca
      Shlomi Fish authored
      * plug-ins/gimpressionist/preview.c
      * plug-ins/gimpressionist/sizemap.c:
      Eliminated two compile-time warnings.
      ce4319ca
    • Michael Natterer's avatar
      *** empty log message *** · c5ec0d4f
      Michael Natterer authored
      c5ec0d4f
    • Sven Neumann's avatar
      added file_open_location_dialog_show to make the scanner link again. · f1706f09
      Sven Neumann authored
      2004-07-13  Sven Neumann  <sven@gimp.org>
      
      	* app/Makefile.am (unused_symbols): added
      	file_open_location_dialog_show to make the scanner link again.
      f1706f09
    • Sven Neumann's avatar
      declared GimpPixmap as deprecated. · 28cbe15e
      Sven Neumann authored
      2004-07-13  Sven Neumann  <sven@gimp.org>
      
      	* libgimpwidgets/gimppixmap.[ch]: declared GimpPixmap as deprecated.
      
      	* libgimpwidgets/gimpwidgets.[ch]: ditto for gimp_pixmap_button_new().
      
      	* plug-ins/Lighting/ChangeLog: removed outdated and unused ChangeLog.
      
      	* plug-ins/Lighting/Makefile.am
      	* plug-ins/Lighting/*.xpm: removed XPM files...
      
      	* configure.in
      	* plug-ins/Lighting/images: ... and added them as PNG images here.
      	These should be redone with antialiased edges.
      
      	* plug-ins/Lighting/lighting_stock.[ch]
      	* plug-ins/Lighting/lighting_ui.c: register stock icons and use
      	those instead of GimpPixmaps.
      
      	* plug-ins/MapObject/Makefile.am
      	* plug-ins/MapObject/*.xpm: removed duplicated XPM files.
      
      	* plug-ins/MapObject/mapobject_stock.[ch]: register stock icons
      	reusing the generated header from the Lighting plug-in.
      
      	* plug-ins/MapObject/mapobject_ui.c: use them.
      
      	* plug-ins/pagecurl/pagecurl.c: undef GIMP_DISABLE_DEPRECATED until
      	GimpPixmap has been replaced here as well.
      28cbe15e
    • Shlomi Fish's avatar
      fixed Bug # 147483 (gimpressionist will delete global presets if the user · 00645d10
      Shlomi Fish authored
      * plug-ins/gimpressionist/presets.c: fixed Bug # 147483 (gimpressionist
      will delete global presets if the user running GIMP has priviliges to
      do so ). This was done by creating a function to check if a preset is
      global, and by making sure the delete button is in-sensitive when this
      is the case.
      00645d10
    • Sven Neumann's avatar
      libgimpwidgets/gimpcolorbutton.c libgimpwidgets/gimpcolornotebook.c · 45a7f5e4
      Sven Neumann authored
      2004-07-13  Sven Neumann  <sven@gimp.org>
      
      	* libgimpwidgets/gimpcolorbutton.c
      	* libgimpwidgets/gimpcolornotebook.c
      	* libgimpwidgets/gimpcolorscale.c
      	* libgimpwidgets/gimpcolorscales.c
      	* libgimpwidgets/gimpcolorselect.c
      	* libgimpwidgets/gimpcolorselection.c
      	* libgimpwidgets/gimpframe.c
      	* libgimpwidgets/gimppickbutton.c
      	* libgimpwidgets/gimpunitmenu.c: some code review and cosmetics.
      45a7f5e4
    • Shlomi Fish's avatar
      normalized some of brush.c's identifiers (= variable names and function · 6d3d2129
      Shlomi Fish authored
      * plug-ins/gimpressionist/*.[ch]: normalized some of brush.c's
      identifiers (= variable names and function name)
      6d3d2129
    • Sven Neumann's avatar
      handle NULL string values. · 6e77b577
      Sven Neumann authored
      2004-07-13  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimp-utils.c (gimp_g_value_get_memsize): handle NULL
      	string values.
      6e77b577
    • Sven Neumann's avatar
      override the output_message error handler in order to propagate warnings · c7f25d0c
      Sven Neumann authored
      2004-07-13  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/common/jpeg.c: override the output_message error
      	handler in order to propagate warnings to the user interface
      	(related to bug #145212).
      c7f25d0c
    • Sven Neumann's avatar
    • Sven Neumann's avatar
      added new function gimp_g_value_get_memsize() that attempts to calculate · f274dce2
      Sven Neumann authored
      2004-07-13  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimp-utils.[ch]: added new function
      	gimp_g_value_get_memsize() that attempts to calculate the memory
      	requirements for a GValue.
      
      	* app/text/gimptextundo.c (gimp_text_undo_get_memsize): use the
      	new function to obtain a better estimate for the size of the text
      	undo.
      f274dce2
    • Sven Neumann's avatar
      plugged a tiny memory leak. · 11795e78
      Sven Neumann authored
      2004-07-13  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimptexttool.c (gimp_text_tool_create_layer): plugged
      	a tiny memory leak.
      11795e78
    • Sven Neumann's avatar
      resurrected some bit-rotting debug code. Might become useful one day. · 5cff1016
      Sven Neumann authored
      2004-07-13  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimage-undo.c: resurrected some bit-rotting debug
      	code. Might become useful one day.
      5cff1016
  2. 12 Jul, 2004 20 commits
    • Sven Neumann's avatar
      when automake 1.8 is being used, require at least version 1.8.3. Earlier · 3aff97c3
      Sven Neumann authored
      2004-07-13  Sven Neumann  <sven@gimp.org>
      
      	* autogen.sh: when automake 1.8 is being used, require at least
      	version 1.8.3. Earlier versions of the automake-1.8 series don't
      	handle gimp-console correctly.
      3aff97c3
    • Michael Natterer's avatar
      app/config/gimpconfig-dump.c applied patch from Dave Neary which adds %B · 1175a64b
      Michael Natterer authored
      2004-07-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/config/gimpconfig-dump.c
      	* app/display/gimpdisplayshell-title.c
      	(gimp_display_shell_format_title): applied patch from Dave Neary
      	which adds %B which expands to (modified) if the image is
      	dirty. Also added %A which expands to (clean) because we also have
      	a short indicator for the clean image. Fixes bug #130943.
      1175a64b
    • Sven Neumann's avatar
      removed hack for gimp-console compilation. automake seems to handle it · 1e7a0f34
      Sven Neumann authored
      2004-07-13  Sven Neumann  <sven@gimp.org>
      
      	* app/Makefile.am: removed hack for gimp-console compilation.
      	automake seems to handle it correctly all by itself.
      1e7a0f34
    • Michael Schumacher's avatar
      added #ifdef G_OS_WIN32 #include <windows.h> #endif · d2b7bdc7
      Michael Schumacher authored
      2004-07-12  Michael Schumacher <schumaml@cvs.gnome.org>
      
      	* app/app_procs.c: added
      	#ifdef G_OS_WIN32
      	#include <windows.h>
      	#endif
      d2b7bdc7
    • Michael Natterer's avatar
      added a preview of the global buffer. · d41e45b1
      Michael Natterer authored
      2004-07-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpbufferview.[ch]: added a preview of the global
      	buffer.
      d41e45b1
    • Sven Neumann's avatar
      make sure that gimp-console is enabled for 'make dist'. Use it to dump the · 8deb11dd
      Sven Neumann authored
      2004-07-12  Sven Neumann  <sven@gimp.org>
      
      	* app/Makefile.am: make sure that gimp-console is enabled for
      	'make dist'. Use it to dump the system gimprc and gimprc man-page.
      8deb11dd
    • Michael Natterer's avatar
      removed member "guint time"... · a81e9645
      Michael Natterer authored
      2004-07-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/text/gimptextundo.[ch]: removed member "guint time"...
      
      	* app/core/gimpundo.[ch]: ...and added it here.
      
      	* app/tools/gimptexttool.c (gimp_text_tool_apply): changed
      	accordingly. Reordered undo compression code to look like other
      	pieces of code which do undo compression.
      a81e9645
    • Michael Natterer's avatar
      app/core/gimpundo.[ch] app/core/gimpitemundo.[ch] removed all _new() · da74f126
      Michael Natterer authored
      2004-07-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpundo.[ch]
      	* app/core/gimpitemundo.[ch]
      	* app/text/gimptextundo.[ch]: removed all _new() functions and
      	added properties and GObject::constructor() implementations
      	instead.
      
      	* app/core/gimpimage-undo.[ch] (gimp_image_undo_push): added
      	"GType undo_gtype" parameter and allow to pass name-value pairs as
      	"...". Une the new GParameter utility functions to construct the
      	appropriate undo step with g_object_newv().
      
      	(gimp_image_undo_push_item): removed.
      
      	(gimp_image_undo_push_undo): removed. Merged its code back into
      	gimp_image_undo_push(), where it originally came from.
      
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimpundostack.c
      	* app/paint/gimppaintcore-undo.c
      	* app/tools/gimptransformtool-undo.c
      	* app/widgets/gimpundoeditor.c: changed accordingly.
      da74f126
    • Sven Neumann's avatar
      plug-ins/gfig/gfig-dialog.c plug-ins/gfig/gfig-preview.c · 9593e52e
      Sven Neumann authored
      2004-07-12  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/gfig/gfig-dialog.c
      	* plug-ins/gfig/gfig-preview.c
      	* plug-ins/gfig/gfig-style.c
      	* plug-ins/gfig/gfig.c: some include cleanups. Use
      	libgimpbase/gimpwin32-io.h instead of defining W_OK explicitely.
      	Don't undef GTK_DISABLE_DEPRECATED except for gfig-preview.c.
      9593e52e
    • Michael Natterer's avatar
      applied patch from Dave Neary that changes the behavior from undo · bfed40e9
      Michael Natterer authored
      2004-07-12  Michael Natterer  <mitch@gimp.org>
      
      	* plug-ins/script-fu/scripts/round-corners.scm: applied patch from
      	Dave Neary that changes the behavior from undo disable/enable to
      	using an undo group if the script doesn't work on a copy of the
      	image. Fixes bug #146344.
      bfed40e9
    • Michael Natterer's avatar
      applied patch from Brion Vibber which adds <Toolbox>/Acquire/Paste as new. · 5e25cdd2
      Michael Natterer authored
      2004-07-12  Michael Natterer  <mitch@gimp.org>
      
      	* menus/toolbox-menu.xml.in: applied patch from Brion Vibber
      	which adds <Toolbox>/Acquire/Paste as new. Fixes bug #147358.
      5e25cdd2
    • Michael Natterer's avatar
      s/fizes/fixes/ · 91c4e037
      Michael Natterer authored
      91c4e037
    • Sven Neumann's avatar
      NEWS update, fixed UTF-8 in ChangeLog · cbe75521
      Sven Neumann authored
      cbe75521
    • Michael Natterer's avatar
      added gimp-console-2.1 · 963749ce
      Michael Natterer authored
      963749ce
    • Michael Natterer's avatar
      don't do anything if gimp->no_interface is TRUE. · ca5026a5
      Michael Natterer authored
      2004-07-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimp-modules.c: don't do anything if gimp->no_interface
      	is TRUE.
      ca5026a5
    • Michael Natterer's avatar
      Made the gimp-console binary compile. Finishes core/GUI separation and · 84c29b48
      Michael Natterer authored
      2004-07-12  Michael Natterer  <mitch@gimp.org>
      
      	Made the gimp-console binary compile.
      	Finishes core/GUI separation and fixes bug #71514:
      
      	* configure.in: removed the crazy-hacker warning for
      	--enable-gimp-console.
      
      	* app/Makefile.am: for gimp-console, copy app_procs.c to
      	app_procs_console.c and compile it instead of app_procs.c with
      	-DGIMP_CONSOLE_COMPILATION
      
      	* app/app_procs.[ch]: added some #ifndef GIMP_CONSOLE_COMPILATION
      	to skip GUI stuff for the gimp-console case.
      	Renamed app_gui_libs_init() to app_libs_init(), renamed
      	app_gui_abort() to app_abort() and added app_exit() so everything
      	that needs #ifdefs lives here now.
      
      	* app/main.c: changed accordingly.
      
      	* app/gui/gui.c (gui_abort): really abort (call exit()).
      84c29b48
    • Sven Neumann's avatar
      made the suggestion to use binary packages more prominent, mention · 58a91da5
      Sven Neumann authored
      2004-07-12  Sven Neumann  <sven@gimp.org>
      
      	* INSTALL: made the suggestion to use binary packages more
      	prominent, mention --enable-gimp-console.
      58a91da5
    • Sven Neumann's avatar
      removed the gtk+ sanity check here ... · 1abeb905
      Sven Neumann authored
      2004-07-12  Sven Neumann  <sven@gimp.org>
      
      	* app/sanity.[ch]: removed the gtk+ sanity check here ...
      
      	* app/gui/gui.c: ... and do it here from gui_libs_init().
      
      	* app/main.c: changed accordingly.
      1abeb905
    • Sven Neumann's avatar
      don't use gtk_main() / gtk_main_quit() but run our own main-loop like we · 3b553547
      Sven Neumann authored
      2004-07-12  Sven Neumann  <sven@gimp.org>
      
      	* app/app_procs.s: don't use gtk_main() / gtk_main_quit() but run
      	our own main-loop like we already used to do when being run
      	non-interactively.
      3b553547
    • Michael Natterer's avatar
      set/unset the busy cursor on all windows which have widget->window, not · 5b83b759
      Michael Natterer authored
      2004-07-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdialogfactory.c
      	(gimp_dialog_factories_set_busy_foreach)
      	(gimp_dialog_factories_unset_busy_foreach): set/unset the busy
      	cursor on all windows which have widget->window, not only for
      	those which are GTK_WIDGET_VISIBLE. Fixes stale busy cursors when
      	dialogs are hidden while the busy cursor is active and later shown
      	again.
      5b83b759