From: Matthias Clasen Date: Mon, 15 May 2023 12:03:20 +0000 (-0400) Subject: tools: Cosmetics X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~257^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2f8c0b7aec412b4294184b7d44d951aad7b80dbb;p=gtk4.git tools: Cosmetics Make gtk-builder-tool screenshot be quiet unless it had to make up a filename. And tweak --help output a bit. --- 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;