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:

committed by
Sven Neumann

parent
8ad5b3bd77
commit
583f7d7958
@ -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>
|
2005-02-16 Kevin Cozens <kcozens@cvs.gimp.org>
|
||||||
|
|
||||||
* plug-ins/script-fu/siod-wrapper.c: Added constants MIN-IMAGE-SIZE,
|
* plug-ins/script-fu/siod-wrapper.c: Added constants MIN-IMAGE-SIZE,
|
||||||
|
@ -736,9 +736,7 @@ clear_map_info(void)
|
|||||||
static void
|
static void
|
||||||
do_data_changed_dialog(void (*continue_cb)(gpointer), gpointer param)
|
do_data_changed_dialog(void (*continue_cb)(gpointer), gpointer param)
|
||||||
{
|
{
|
||||||
GtkWidget *dialog;
|
GtkWidget *dialog = gtk_message_dialog_new_with_markup
|
||||||
|
|
||||||
dialog = gtk_message_dialog_new_with_markup
|
|
||||||
(NULL,
|
(NULL,
|
||||||
GTK_DIALOG_DESTROY_WITH_PARENT,
|
GTK_DIALOG_DESTROY_WITH_PARENT,
|
||||||
GTK_MESSAGE_QUESTION,
|
GTK_MESSAGE_QUESTION,
|
||||||
@ -747,8 +745,7 @@ do_data_changed_dialog(void (*continue_cb)(gpointer), gpointer param)
|
|||||||
_("Some data has been changed!"),
|
_("Some data has been changed!"),
|
||||||
_("Do you really want to discard your changes?"));
|
_("Do you really want to discard your changes?"));
|
||||||
|
|
||||||
gint result = gtk_dialog_run (GTK_DIALOG (dialog));
|
if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_YES)
|
||||||
if (result == GTK_RESPONSE_YES)
|
|
||||||
continue_cb (param);
|
continue_cb (param);
|
||||||
|
|
||||||
gtk_widget_destroy (dialog);
|
gtk_widget_destroy (dialog);
|
||||||
@ -967,9 +964,7 @@ save_as(const gchar *filename)
|
|||||||
static void
|
static void
|
||||||
do_image_size_changed_dialog(void)
|
do_image_size_changed_dialog(void)
|
||||||
{
|
{
|
||||||
GtkWidget *dialog;
|
GtkWidget *dialog = gtk_message_dialog_new_with_markup
|
||||||
|
|
||||||
dialog = gtk_message_dialog_new_with_markup
|
|
||||||
(NULL,
|
(NULL,
|
||||||
GTK_DIALOG_DESTROY_WITH_PARENT,
|
GTK_DIALOG_DESTROY_WITH_PARENT,
|
||||||
GTK_MESSAGE_QUESTION,
|
GTK_MESSAGE_QUESTION,
|
||||||
@ -978,8 +973,7 @@ do_image_size_changed_dialog(void)
|
|||||||
_("Image size has changed."),
|
_("Image size has changed."),
|
||||||
_("Resize area's?"));
|
_("Resize area's?"));
|
||||||
|
|
||||||
gint result = gtk_dialog_run (GTK_DIALOG (dialog));
|
if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_YES)
|
||||||
if (result == GTK_RESPONSE_YES)
|
|
||||||
{
|
{
|
||||||
gint per_x = _image_width * 100 / _map_info.old_image_width;
|
gint per_x = _image_width * 100 / _map_info.old_image_width;
|
||||||
gint per_y = _image_height * 100 / _map_info.old_image_height;
|
gint per_y = _image_height * 100 / _map_info.old_image_height;
|
||||||
|
Reference in New Issue
Block a user