From 2f8c0b7aec412b4294184b7d44d951aad7b80dbb Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 15 May 2023 08:03:20 -0400 Subject: [PATCH] tools: Cosmetics Make gtk-builder-tool screenshot be quiet unless it had to make up a filename. And tweak --help output a bit. --- tools/gtk-builder-tool-screenshot.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/gtk-builder-tool-screenshot.c b/tools/gtk-builder-tool-screenshot.c index cf20eaec88..bf4847c9e5 100644 --- a/tools/gtk-builder-tool-screenshot.c +++ b/tools/gtk-builder-tool-screenshot.c @@ -328,7 +328,8 @@ screenshot_file (const char *filename, g_bytes_get_size (bytes), &error)) { - g_print (_("Output written to %s.\n"), save_to); + if (save_file == NULL) + g_print (_("Output written to %s.\n"), save_to); } else { @@ -359,7 +360,7 @@ do_screenshot (int *argc, { "css", 0, 0, G_OPTION_ARG_FILENAME, &css, N_("Use style from CSS file"), N_("FILE") }, { "node", 0, 0, G_OPTION_ARG_NONE, &as_node, N_("Save as node file instead of png"), NULL }, { "force", 0, 0, G_OPTION_ARG_NONE, &force, N_("Overwrite existing file"), NULL }, - { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &filenames, NULL, N_("FILE") }, + { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &filenames, NULL, N_("FILE…") }, { NULL, } }; GError *error = NULL; -- 2.30.2