Commit e9118bde authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

Merged from HEAD branch:

2005-01-22  Sven Neumann  <sven@gimp.org>

	Merged from HEAD branch:

	* plug-ins/imagemap/imap_file.c: fixed overwrite confirmation
	dialog (bug #164864).
parent 902621e3
2005-01-22 Sven Neumann <sven@gimp.org>
Merged from HEAD branch:
* plug-ins/imagemap/imap_file.c: fixed overwrite confirmation
dialog (bug #164864).
2005-01-22 Sven Neumann <sven@gimp.org>
Merged from HEAD branch:
......
......@@ -23,6 +23,9 @@ Bugs fixed in GIMP 2.2.3
- correctly initialize the preview in the Bumpmap plug-in (bug #162285)
- give visual feedback if a dialog is already opened (bug #164156)
- fixed saving of JPEG images with large quality settings (bug #164087)
- update the menus when selecting a component in the Channels dialog
(bug #164195)
- fixed issues with the save dialog in the Imagemap plug-in (bug #164864)
Bugs fixed in GIMP 2.2.2
......
......@@ -84,6 +84,7 @@ do_file_open_dialog (void)
G_CALLBACK (open_cb),
dialog);
}
gtk_window_present (GTK_WINDOW (dialog));
}
......@@ -94,38 +95,36 @@ really_overwrite_cb (GtkMessageDialog *dialog,
{
if (response_id == GTK_RESPONSE_YES)
{
gchar *filename;
filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (data));
gchar *filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (data));
save_as (filename);
g_free (filename);
}
gtk_widget_destroy (GTK_WIDGET (dialog));
gtk_widget_hide (GTK_WIDGET (data));
}
static void
do_file_exists_dialog (GtkWidget *dialog)
do_file_exists_dialog (GtkWidget *parent)
{
gchar *message =
GtkWidget *dialog;
gchar *message;
message =
g_strdup_printf ("<span weight=\"bold\" size=\"larger\">%s</span>\n\n"
"%s",
_("File already exists"),
_("Do you really want to overwrite?"));
dialog = gtk_message_dialog_new_with_markup (GTK_WINDOW (get_dialog()),
dialog = gtk_message_dialog_new_with_markup (GTK_WINDOW (parent),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_QUESTION,
GTK_BUTTONS_YES_NO,
message);
g_signal_connect (dialog, "delete_event",
G_CALLBACK (gtk_true),
NULL);
g_signal_connect (dialog, "response",
G_CALLBACK (really_overwrite_cb),
dialog);
parent);
gtk_widget_show (dialog);
}
......@@ -181,11 +180,13 @@ do_file_save_as_dialog (void)
G_CALLBACK (save_cb),
dialog);
}
gtk_window_present (GTK_WINDOW (dialog));
}
void
do_file_error_dialog(const char *error, const char *filename)
do_file_error_dialog (const char *error,
const char *filename)
{
static Alert_t *alert;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment