mirror of https://github.com/GNOME/gimp.git
app/actions/error-console-commands.c app/actions/gradients-commands.c
2007-02-02 Sven Neumann <sven@gimp.org> * app/actions/error-console-commands.c * app/actions/gradients-commands.c * app/actions/text-editor-commands.c * app/dialogs/vectors-export-dialog.c * app/dialogs/vectors-import-dialog.c * app/tools/gimpimagemaptool.c (gimp_image_map_tool_settings_dialog): set default response and do-overwrite-confirmation on the file chooser dialogs. Fixes bug #403449 for all core dialogs. svn path=/trunk/; revision=21832
This commit is contained in:
parent
18a07d427b
commit
aae05d4eaf
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
2007-02-02 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/actions/error-console-commands.c
|
||||
* app/actions/gradients-commands.c
|
||||
* app/actions/text-editor-commands.c
|
||||
* app/dialogs/vectors-export-dialog.c
|
||||
* app/dialogs/vectors-import-dialog.c
|
||||
* app/tools/gimpimagemaptool.c (gimp_image_map_tool_settings_dialog):
|
||||
set default response and do-overwrite-confirmation on the file
|
||||
chooser dialogs. Fixes bug #403449 for all core dialogs.
|
||||
|
||||
2007-02-01 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/widgets/gimpprogressbox.c: ellipsize progress label.
|
||||
|
|
|
@ -118,6 +118,9 @@ error_console_save_cmd_callback (GtkAction *action,
|
|||
gtk_window_set_position (GTK_WINDOW (chooser), GTK_WIN_POS_MOUSE);
|
||||
gtk_window_set_role (GTK_WINDOW (chooser), "gimp-save-errors");
|
||||
|
||||
gtk_dialog_set_default_response (GTK_DIALOG (chooser), GTK_RESPONSE_OK);
|
||||
gtk_file_chooser_set_do_overwrite_confirmation (chooser, TRUE);
|
||||
|
||||
g_signal_connect (chooser, "response",
|
||||
G_CALLBACK (error_console_save_response),
|
||||
console);
|
||||
|
|
|
@ -90,6 +90,9 @@ gradients_save_as_pov_ray_cmd_callback (GtkAction *action,
|
|||
gtk_window_set_role (GTK_WINDOW (chooser), "gimp-gradient-save-pov");
|
||||
gtk_window_set_position (GTK_WINDOW (chooser), GTK_WIN_POS_MOUSE);
|
||||
|
||||
gtk_dialog_set_default_response (GTK_DIALOG (chooser), GTK_RESPONSE_OK);
|
||||
gtk_file_chooser_set_do_overwrite_confirmation (chooser, TRUE);
|
||||
|
||||
g_signal_connect (chooser, "response",
|
||||
G_CALLBACK (gradients_save_as_pov_ray_response),
|
||||
gradient);
|
||||
|
|
|
@ -83,6 +83,8 @@ text_editor_load_cmd_callback (GtkAction *action,
|
|||
gtk_window_set_position (GTK_WINDOW (chooser), GTK_WIN_POS_MOUSE);
|
||||
gtk_window_set_destroy_with_parent (GTK_WINDOW (chooser), TRUE);
|
||||
|
||||
gtk_dialog_set_default_response (GTK_DIALOG (chooser), GTK_RESPONSE_OK);
|
||||
|
||||
g_signal_connect (chooser, "response",
|
||||
G_CALLBACK (text_editor_load_response),
|
||||
editor);
|
||||
|
|
|
@ -40,6 +40,7 @@ vectors_export_dialog_new (GimpImage *image,
|
|||
{
|
||||
VectorsExportDialog *dialog;
|
||||
GtkWidget *combo;
|
||||
GtkFileChooser *chooser;
|
||||
|
||||
g_return_val_if_fail (GIMP_IS_IMAGE (image), NULL);
|
||||
g_return_val_if_fail (GTK_IS_WIDGET (parent), NULL);
|
||||
|
@ -58,6 +59,8 @@ vectors_export_dialog_new (GimpImage *image,
|
|||
|
||||
NULL);
|
||||
|
||||
chooser = GTK_FILE_CHOOSER (dialog->dialog);
|
||||
|
||||
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog->dialog),
|
||||
GTK_RESPONSE_OK,
|
||||
GTK_RESPONSE_CANCEL,
|
||||
|
@ -69,6 +72,9 @@ vectors_export_dialog_new (GimpImage *image,
|
|||
gtk_window_set_role (GTK_WINDOW (dialog->dialog), "gimp-vectors-export");
|
||||
gtk_window_set_position (GTK_WINDOW (dialog->dialog), GTK_WIN_POS_MOUSE);
|
||||
|
||||
gtk_dialog_set_default_response (GTK_DIALOG (chooser), GTK_RESPONSE_OK);
|
||||
gtk_file_chooser_set_do_overwrite_confirmation (chooser, TRUE);
|
||||
|
||||
g_object_weak_ref (G_OBJECT (dialog->dialog),
|
||||
(GWeakNotify) g_free, dialog);
|
||||
|
||||
|
@ -85,7 +91,7 @@ vectors_export_dialog_new (GimpImage *image,
|
|||
NULL);
|
||||
gimp_int_combo_box_set_active (GIMP_INT_COMBO_BOX (combo),
|
||||
dialog->active_only);
|
||||
gtk_file_chooser_set_extra_widget (GTK_FILE_CHOOSER (dialog->dialog), combo);
|
||||
gtk_file_chooser_set_extra_widget (chooser, combo);
|
||||
|
||||
g_signal_connect (combo, "changed",
|
||||
G_CALLBACK (gimp_int_combo_box_get_active),
|
||||
|
|
|
@ -73,6 +73,9 @@ vectors_import_dialog_new (GimpImage *image,
|
|||
gtk_window_set_role (GTK_WINDOW (dialog->dialog), "gimp-vectors-import");
|
||||
gtk_window_set_position (GTK_WINDOW (dialog->dialog), GTK_WIN_POS_MOUSE);
|
||||
|
||||
gtk_dialog_set_default_response (GTK_DIALOG (dialog->dialog),
|
||||
GTK_RESPONSE_OK);
|
||||
|
||||
g_object_weak_ref (G_OBJECT (dialog->dialog),
|
||||
(GWeakNotify) g_free, dialog);
|
||||
|
||||
|
|
|
@ -768,6 +768,11 @@ gimp_image_map_tool_settings_dialog (GimpImageMapTool *tool,
|
|||
|
||||
gtk_window_set_destroy_with_parent (GTK_WINDOW (chooser), TRUE);
|
||||
|
||||
gtk_dialog_set_default_response (GTK_DIALOG (chooser), GTK_RESPONSE_OK);
|
||||
|
||||
if (save)
|
||||
gtk_file_chooser_set_do_overwrite_confirmation (chooser, TRUE);
|
||||
|
||||
g_signal_connect (chooser, "response",
|
||||
G_CALLBACK (settings_dialog_response),
|
||||
tool);
|
||||
|
|
Loading…
Reference in New Issue