#include gimpwidgets.h for gimp_spin_button_new().

2005-04-18  Manish Singh  <yosh@gimp.org>

        * libgimpwidgets/gimpsizeentry.c: #include gimpwidgets.h for
        gimp_spin_button_new().

        * plug-ins/jpeg/jpeg-load.c
        * plug-ins/jpeg/jpeg-save.c
        * plug-ins/metadata/interface.c
        * plug-ins/metadata/xmp-parse.c: 64-bit safety for some of the
        debugging g_prints.
This commit is contained in:
Manish Singh 2005-04-18 23:38:25 +00:00 committed by Manish Singh
parent d84cffa583
commit 76c85d918a
6 changed files with 18 additions and 8 deletions

View File

@ -1,3 +1,14 @@
2005-04-18 Manish Singh <yosh@gimp.org>
* libgimpwidgets/gimpsizeentry.c: #include gimpwidgets.h for
gimp_spin_button_new().
* plug-ins/jpeg/jpeg-load.c
* plug-ins/jpeg/jpeg-save.c
* plug-ins/metadata/interface.c
* plug-ins/metadata/xmp-parse.c: 64-bit safety for some of the
debugging g_prints.
2005-04-18 Manish Singh <yosh@gimp.org>
* plug-ins/common/newsprint.c: Redo comment for spot_PSsquare

View File

@ -27,10 +27,9 @@
#include "libgimpbase/gimpbase.h"
#include "gimpwidgetstypes.h"
#include "gimpwidgets.h"
#include "gimpsizeentry.h"
#include "gimpunitmenu.h"
#define SIZE_MAX_VALUE 500000.0

View File

@ -296,7 +296,7 @@ load_image (const gchar *filename,
{
/* FIXME: handle EXIF here once we don't use libexif anymore */
g_print ("jpeg-load: found EXIF block (%d bytes)\n",
marker->data_length - sizeof (JPEG_APP_HEADER_EXIF));
(int) (marker->data_length - sizeof (JPEG_APP_HEADER_EXIF)));
/* Note: maybe split the loop to ensure that the EXIF block is */
/* always parsed before any XMP packet */
}
@ -309,7 +309,7 @@ load_image (const gchar *filename,
gchar *xmp_packet;
g_print ("jpeg-load: found XMP packet (%d bytes)\n",
marker->data_length - sizeof (JPEG_APP_HEADER_XMP));
(int) (marker->data_length - sizeof (JPEG_APP_HEADER_XMP)));
xmp_packet = g_strndup (marker->data + sizeof (JPEG_APP_HEADER_XMP),
marker->data_length - sizeof (JPEG_APP_HEADER_XMP));
/* FIXME: running this through the PDB is not very efficient */

View File

@ -477,7 +477,7 @@ save_image (const gchar *filename,
if (image_comment && *image_comment)
{
g_print ("jpeg-save: saving image comment (%d bytes)\n",
strlen (image_comment));
(int) strlen (image_comment));
jpeg_write_marker (&cinfo, JPEG_COM,
(guchar *) image_comment, strlen (image_comment));
}

View File

@ -202,7 +202,7 @@ entry_changed (GtkEntry *entry,
{
WidgetXRef *xref = user_data;
g_print ("XMP: %s 0x%x 0x%x %s\n", xref->property_name, (int) entry, (int) user_data, gtk_entry_get_text (entry)); /* FIXME */
g_print ("XMP: %s %p %p %s\n", xref->property_name, entry, user_data, gtk_entry_get_text (entry)); /* FIXME */
}
static void
@ -229,7 +229,7 @@ text_changed (GtkTextBuffer *text_buffer,
GtkTextIter end;
gtk_text_buffer_get_bounds (text_buffer, &start, &end);
g_print ("XMP: %s 0x%x 0x%x %s\n", xref->property_name, (int) text_buffer, (int) user_data, gtk_text_buffer_get_text (text_buffer, &start, &end, FALSE)); /* FIXME */
g_print ("XMP: %s %p %p %s\n", xref->property_name, text_buffer, user_data, gtk_text_buffer_get_text (text_buffer, &start, &end, FALSE)); /* FIXME */
}
static void

View File

@ -979,7 +979,7 @@ text_handler (GMarkupParseContext *markup_context,
fwrite (decoded, decoded_size, 1, ttt);
fclose (ttt);
*/
g_print ("XMP: Thumb text len: %d (1/4 = %d)\nMax size: %d\nUsed size: %d\n", text_len, text_len / 4, max_size, decoded_size);
g_print ("XMP: Thumb text len: %d (1/4 = %d)\nMax size: %d\nUsed size: %d\n", (int) text_len, (int) text_len / 4, max_size, decoded_size);
}
if (decoded_size > 0)
{