fixed the build for compilers that don't support C99 extensions.

2005-02-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_main.c: fixed the build for compilers that
	don't support C99 extensions.
This commit is contained in:
Sven Neumann 2005-02-17 16:34:31 +00:00 committed by Sven Neumann
parent 8ad5b3bd77
commit 583f7d7958
2 changed files with 9 additions and 10 deletions

View File

@ -1,3 +1,8 @@
2005-02-17 Sven Neumann <sven@gimp.org>
* plug-ins/imagemap/imap_main.c: fixed the build for compilers that
don't support C99 extensions.
2005-02-16 Kevin Cozens <kcozens@cvs.gimp.org>
* plug-ins/script-fu/siod-wrapper.c: Added constants MIN-IMAGE-SIZE,

View File

@ -736,9 +736,7 @@ clear_map_info(void)
static void
do_data_changed_dialog(void (*continue_cb)(gpointer), gpointer param)
{
GtkWidget *dialog;
dialog = gtk_message_dialog_new_with_markup
GtkWidget *dialog = gtk_message_dialog_new_with_markup
(NULL,
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_QUESTION,
@ -747,8 +745,7 @@ do_data_changed_dialog(void (*continue_cb)(gpointer), gpointer param)
_("Some data has been changed!"),
_("Do you really want to discard your changes?"));
gint result = gtk_dialog_run (GTK_DIALOG (dialog));
if (result == GTK_RESPONSE_YES)
if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_YES)
continue_cb (param);
gtk_widget_destroy (dialog);
@ -967,9 +964,7 @@ save_as(const gchar *filename)
static void
do_image_size_changed_dialog(void)
{
GtkWidget *dialog;
dialog = gtk_message_dialog_new_with_markup
GtkWidget *dialog = gtk_message_dialog_new_with_markup
(NULL,
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_QUESTION,
@ -978,8 +973,7 @@ do_image_size_changed_dialog(void)
_("Image size has changed."),
_("Resize area's?"));
gint result = gtk_dialog_run (GTK_DIALOG (dialog));
if (result == GTK_RESPONSE_YES)
if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_YES)
{
gint per_x = _image_width * 100 / _map_info.old_image_width;
gint per_y = _image_height * 100 / _map_info.old_image_height;