From acbfbff1cff781e2085d601da0ef0d0a3bd42f59 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 18 Oct 2017 04:27:11 -0400 Subject: mq_application_quit(): Improve "1 windows" message --- diff --git a/src/application.c b/src/application.c index c11d52c..0f59221 100644 --- a/src/application.c +++ b/src/application.c @@ -123,9 +123,15 @@ mq_application_quit(MqApplication *application, GtkWindow *parent) } /* Message */ - message = g_strdup_printf("You are about to close %d tabs " - "in %d windows. Are you sure you want to continue?", - num_tabs, num_windows); + if (num_windows == 1) { + message = g_strdup_printf("You are about to close %d tabs " + "in %d window. Are you sure you want to continue?", + num_tabs, num_windows); + } else { + message = g_strdup_printf("You are about to close %d tabs " + "in %d windows. Are you sure you want to continue?", + num_tabs, num_windows); + } message_label = gtk_label_new(message); g_free(message); -- cgit v0.9.1