Commit a4d75ae9 authored by Kowalski Dragon (Kowalski7cc)'s avatar Kowalski Dragon (Kowalski7cc) 🐲 Committed by Christian Persch
Browse files

window: Mark close button in close confirmation dialogue as destructive

Fixes: #252
parent 31b758c1
......@@ -3242,7 +3242,8 @@ confirm_close_window_or_tab (TerminalWindow *window,
gtk_window_set_title (GTK_WINDOW (dialog), "");
gtk_dialog_add_button (GTK_DIALOG (dialog), n_tabs > 1 ? _("C_lose Window") : _("C_lose Terminal"), GTK_RESPONSE_ACCEPT);
GtkWidget *remove_button = gtk_dialog_add_button (GTK_DIALOG (dialog), n_tabs > 1 ? _("C_lose Window") : _("C_lose Terminal"), GTK_RESPONSE_ACCEPT);
gtk_style_context_add_class (gtk_widget_get_style_context (remove_button), "destructive-action");
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT);
g_object_set_data (G_OBJECT (dialog), "close-screen", screen);
......
Markdown is supported
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