From 583f7d79583b1a7c7f9c47ee22f76e08096d3e3a Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Thu, 17 Feb 2005 16:34:31 +0000 Subject: [PATCH] fixed the build for compilers that don't support C99 extensions. 2005-02-17 Sven Neumann * plug-ins/imagemap/imap_main.c: fixed the build for compilers that don't support C99 extensions. --- ChangeLog | 5 +++++ plug-ins/imagemap/imap_main.c | 14 ++++---------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index ba36b7888e..163bd1dcd2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-02-17 Sven Neumann + + * plug-ins/imagemap/imap_main.c: fixed the build for compilers that + don't support C99 extensions. + 2005-02-16 Kevin Cozens * plug-ins/script-fu/siod-wrapper.c: Added constants MIN-IMAGE-SIZE, diff --git a/plug-ins/imagemap/imap_main.c b/plug-ins/imagemap/imap_main.c index ab260ec9da..96c89cc582 100644 --- a/plug-ins/imagemap/imap_main.c +++ b/plug-ins/imagemap/imap_main.c @@ -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;