summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-18 04:27:11 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-18 04:27:11 (EDT)
commitacbfbff1cff781e2085d601da0ef0d0a3bd42f59 (patch)
treee82f1e44eadc81152f2a1fc5063122a1e3ea6665
parent6a759b714129468cd1cd7b081cd795697c7a16e8 (diff)
downloadmarquee-acbfbff1cff781e2085d601da0ef0d0a3bd42f59.zip
marquee-acbfbff1cff781e2085d601da0ef0d0a3bd42f59.tar.gz
marquee-acbfbff1cff781e2085d601da0ef0d0a3bd42f59.tar.bz2
mq_application_quit(): Improve "1 windows" message
-rw-r--r--src/application.c12
1 files changed, 9 insertions, 3 deletions
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);