inspector: Set a filename for saving css

This is good practice when using save dialogs.
This commit is contained in:
Matthias Clasen 2014-07-29 13:38:54 +02:00
parent 05d5fa43f3
commit 0f47ffb6f5

View File

@ -195,6 +195,7 @@ save_clicked (GtkToolButton *button,
_("_Cancel"), GTK_RESPONSE_CANCEL,
_("_Save"), GTK_RESPONSE_ACCEPT,
NULL);
gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog), "custom.css");
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT);
gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
gtk_file_chooser_set_do_overwrite_confirmation (GTK_FILE_CHOOSER (dialog), TRUE);