2002-04-18 Michael Natterer <mitch@gimp.org>
* app/core/gimpimagefile.[ch]: save the number of layers in the
thumbnail and show it in the description.
* app/gui/file-dialog-utils.[ch]: added file_dialog_new() which
contains a lot of factored out code from file-open and file-save.
* app/gui/file-open-dialog.c
* app/gui/file-save-dialog.c: use file_dialog_new(), reduce use of
global variables, added utility functions to reduce code
duplication, cleanup.
* app/gui/file-open-dialog.c: use a temporary imagefile to create
previews so the dialog's preview can show the progress when
creating many thumbnails.
2002-04-18 Michael Natterer <mitch@gimp.org>
* POTFILES.in: added app/gui/file-dialog-utils.c
2002-04-17 Michael Natterer <mitch@gimp.org>
* app/file/file-save.c: shouldn't free the filename before using it :)
* app/core/gimpimagefile.c: emit the "info_changed" signal more
often, assemble the description string differently.
* app/gui/file-open-dialog.c: moved the preview into a frame right
of the file selection box, lots of gui and other cleanup...
2002-04-17 Sven Neumann <sven@gimp.org>
* app/core/gimpimagefile.[ch]
* app/gui/file-open-dialog.c: moved code to generate a literate
description of the image to the GimpImagefile object.
2002-04-17 Michael Natterer <mitch@gimp.org>
* app/core/core-enums.[ch]: register GimpImageType.
* app/core/gimpimagefile.[ch]: read and write more image properties
in thumbnails.
* app/gui/file-open-dialog.c: changed accordingly.
* app/widgets/gimpdialogfactory.c: disabled debugging output.
* app/widgets/gimpdocumentview.c: changed the "Refresh" button to
regenerate the preview on click and reload all previews on
shift+click.
* tools/pdbgen/enums.pl: regenerated.
2002-04-16 Michael Natterer <mitch@gimp.org>
* app/base/temp-buf.c: fixed temp_buf_copy() and
temp_buf_to_[color|gray]() to (1) not crash and (2) to assume the
correct pixelformat. Bugs were never noticed because the code was
never used until today...
* app/core/gimpviewable.c (gimp_viewable_get_new_preview_pixbuf):
use temp_buf_copy() to convert GRAY* TempBufs to RGB* before
creating the pixbuf.
* app/app_procs.c: don't try to open command line images if the
filename could not be converted to an URI.
* app/file/file-open.c
* app/file/file-save.c: use g_file_test() instead of stat().
* app/file/file-utils.[ch]: cleanup, changed
file_utils_filename_to_uri() to take a list of procs, not a Gimp
pointer.
* app/core/gimpimage.c: changed accordingly.
* app/core/gimpimagefile.[ch]: implemented thumbnail saving
following the thumbnail standard v0.5 (the implementation is not
yet fully standard compliant).
* app/gui/file-open-dialog.c: use the new thubmnail functions and
removed all .xvpics code. Not finished yet...
* app/core/gimpdocuments.c
* app/widgets/gimpdocumentview.c: changed accordingly.
* tools/pdbgen/pdb/fileops.pdb (file_save_thumbnail): set "success"
correctly.
* app/pdb/fileops_cmds.c: regenerated.
2002-04-16 Sven Neumann <sven@gimp.org>
* app/widgets/gimppreview.c (gimp_preview_expose_event): don't draw
anything if an idle update is pending.
* libgimpwidgets/gimpcolorarea.c (gimp_color_area_expose): reordered
conditions so that the one that is most expensive to check comes last.
2002-04-15 Sven Neumann <sven@gimp.org>
* app/config/gimpconfig-serialize.c: serialize doubles and floats
using the locale independent g_ascii_formatd().
2002-04-14 Michael Natterer <mitch@gimp.org>
Use UTF-8 encoded escaped URIs for GimpImage and GimpImageFile.
* app/file/file-open.[ch]
* app/file/file-save.[ch]
* app/file/file-utils.[ch]: port everything to using URIs, removed
file_open_absolute_filename() and added file_utils_filename_to_uri()
instead.
* app/core/gimpimage.[ch]: added gimp_image_[get|set]_uri() which
works like the old gimp_image_[get|set]_filename().
Changed gimp_image_[get|set]_filename() to call uri conversion
functions.
* app/app_procs.c: removed lots of code and use the new uri
functions to open images passed on the command line.
* app/gui/file-open-dialog.c
* app/gui/file-save-dialog.c: changed accordingly.
* app/nav_window.c
* app/undo_history.c
* app/display/gimpdisplayshell.c
* app/gui/info-window.c
* app/gui/palette-import-dialog.c
* app/tools/gimpbycolorselecttool.c
* app/widgets/gimpcontainerview-utils.c:
s/gimp_image_get_filename()/gimp_image_get_uri()/g. Need to add
a utility function which returns the basename in unescaped UTF-8.
* app/gui/file-commands.c
* app/widgets/gimpdocumentview.c: use "uri", not "filename" as
variable name where appropriate.
* app/gui/menus.c: some broken code for the "Open Recent" items,
will be fixed soon...
* app/widgets/gimpdnd.c: evil (!!!) hackery to convert dropped
filenames to uris.
* tools/pdbgen/pdb/fileops.pdb: changed accordingly. Clarified
the meaning of the "raw_filename" parameter.
* tools/pdbgen/pdb/message.pdb: use g_message("%s", message),
*not* g_message(message).
* app/pdb/fileops_cmds.c
* app/pdb/message_cmds.c
* libgimp/gimpfileops_pdb.c: regenerated.
2002-04-14 Michael Natterer <mitch@gimp.org>
* app/core/gimp.c: removed some #if 0'ed stuff.
* app/gui/edit-commands.c (edit_copy_cmd_callback): call
gdisplays_flush() so the menus are updated correctly.
* app/widgets/gimpitemfactory.c (gimp_item_factory_set_color):
pack the original menu item label with TRUE, TRUE into the created
hbox so it's accel. label is visible.
2002-04-12 Michael Natterer <mitch@gimp.org>
Well, sometimes the most obvious solution is not the first one...
* app/gimphelp.[ch]: removed _gimp_standard_help_func().
* app/libgimp_glue.c (gimp_standard_help_func): call gimp_help()
directly.
2002-04-12 Michael Natterer <mitch@gimp.org>
* app/gimphelp.[ch]: removed usage of "the_gimp" by passing around
more "Gimp" pointers. Renamed gimp_standard_help_func() to
_gimp_standard_help_func() and declare it in the header. Don't
include "app_procs.h".
* app/libgimp_glue.[ch]: added gimp_standard_help_func() here.
Call _gimp_standard_help_func (the_gimp, ...) like all other
wrappers in this file do. I know this is ugly but better let's
have all uglyness in one place (here) :-)
* app/widgets/gimpitemfactory.[ch]: added a "Gimp" member to the
GimpItemFactory struct. Pass it to gimp_help(),
* app/gui/menus.c: pass a Gimp to gimp_item_factory_new(), removed
useless inclusion of "gimphelp.h".
* tools/pdbgen/pdb/help.pdb: pass a Gimp to gimp_help()
* app/pdb/help_cmds.c: regenerated.
* app/gui/tips-dialog.c: removed gtk_quit_add_destroy() here too
because the tips dialog is created by a dialog factory which takes
care of dialog destruction.
2002-04-12 Sven Neumann <sven@gimp.org>
* app/gui/file-open-dialog.c
* app/gui/file-save-dialog.c: merged fix for bug #51781 from stable
branch: don't gtk_quit_add_destroy() the fileload and filesave widgets.
2002-04-12 Sven Neumann <sven@gimp.org>
* plug-ins/common/gtm.c
* plug-ins/common/illusion.c
* plug-ins/common/ps.c
* plug-ins/common/sparkle.c
* plug-ins/common/wind.c
* plug-ins/maze/maze_face.c
* plug-ins/sel2path/sel2path.c
* plug-ins/sel2path/sel2path_adv_dialog.c: applied a patch from
<iccii@hotmail.com> that adds calls to gimp_help_free() even though I
think that omitting gimp_help_free() is tolerable lazyness (#76984).
2002-04-12 Michael Natterer <mitch@gimp.org>
* app/core/gimpimage-crop.c: reordered some lines, no logic
changed.
* app/core/gimplayer.[ch]: made gimp_layer_pick_correlate()
return a gboolean, not gint.
* app/display/gimpdisplayshell.c
* app/gui/layers-commands.[ch]
* app/gui/menus.c: added "<Image>/Layers/Crop Layer" which resizes
the active layer to the current selection's bounds, just as
"<Image>/Image/Crop Image"
2002-04-12 Sven Neumann <sven@gimp.org>
* POTFILES.in: removed app/gradient.c again. This file has been
removed a long time ago.
* de.po: updated german translation.
2002-04-11 Sven Neumann <sven@gimp.org>
* plug-ins/common/ps.c: merged fix for bug #75667 from stable branch.
* plug-ins/rcm/rcm_dialog.c
* plug-ins/rcm/rcm_misc.c: merged fix for bug #67018 from stable
branch.
* themes/Default/gtkrc: removed settings for tooltips color since
GTK+-2.0 sets a reasonable default. Added a line to allow to change
menu accelerators.
2002-04-03 Manish Singh <yosh@gimp.org>
* app/core/gimpobject.c: use gobject marshaller names directly so
libgimpproxy doesn't need gimpmarshal.* around
2002-03-30 Tor Lillqvist <tml@iki.fi>
* libgimpmath/Makefile.am: Additions for Win32: Use
-no-undefined. Use the .def file. Produce MS style import
library if possible. Install (and uninstall) import
libraries.
* libgimpmath/makefile.mingw.in: Add comment that it is seriously
out-of-date.
2002-03-30 Tor Lillqvist <tml@iki.fi>
* libgimpcolor/Makefile.am: Additions for Win32: Use
-no-undefined. Use the .def file. Produce MS style import
library if possible. Install (and uninstall) import
libraries.
* libgimpcolor/makefile.mingw.in: Add comment that it is seriously
out-of-date.
2002-03-30 Tor Lillqvist <tml@iki.fi>
* libgimpbase/Makefile.am: Additions for Win32: Use
-no-undefined. Use the gimpbase.def file. Produce MS style import
library if possible. Install (and uninstall) import
libraries. Pass definition of PREFIX in CPPFLAGS.
* libgimpbase/gimpbase.def: Do export gimp_signal_private.
* libgimpbase/gimpenv.c: Similar Win32 working as in the gimp-1-2
branch:
(gimp_directory): Replace funny chars in user name (when used as
part of last-resort personal gimp directory name) with
underscores.
(gimp_toplevel_directory): New (Win32-only) function. Deduces the
installation prefix at run-time.
(gimp_path_runtime_fix): New function. On Win32, replace the
string with one where the compile-time prefix has been replaced
with the run-time one.
(gimp_path_parse, gimp_env_get_dir): Call it.
* libgimpbase/gimpsignal.c: Trim (lots of) trailing spaces in
copyright notice.
(gimp_signal_private): Bypass on Win32, return NULL. Or should we
call g_error(), thus requiring that calls of this are enclosed with
#ifdef G_OS_UNIX?
* libgimpbase/makefile.mingw.in: Add comment that it is seriously
out-of-date.
* libgimpbase/makefile.msc: Do compile gimpsignal.c.
2002-03-29 Tor Lillqvist <tml@iki.fi>
* configure.in: Start of changes for autoconfiscated build on
Win32. Mostly similar to how it is done in the gimp-1-2 branch:
Set LT_CURRENT_MINUS_AGE to $LT_CURRENT - $LT_AGE, this is used by
libtool in DLL names, we need it for the *.rc.in files in case we
want to have version resources in DLLs (these include the original
filename). AC_SUBST it.
Call AC_LIBTOOL_WIN32_DLL.
Test for Win32 platform and native Win32, set automake
conditionals PLATFORM_WIN32 and OS_WIN32. Set PATHSEP to ';' or
':', AC_SUBST it.
If on Win32, test for lib.exe availability (to build MS import
libraries), set automake conditional MS_LIB_AVAILABLE.
Include GLIB_LIBS when checking for bind_textdomain_codeset, in
case using a separate -lintl.
Don't try to link with -lX11 when looking for libXpm unless the
GDK backend is x11. On Win32 we use the "no-X" version of libXpm.