[gnome-shell] extensions-tool: Separate create metadata when prompting
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] extensions-tool: Separate create metadata when prompting
- Date: Tue, 7 Apr 2020 20:33:21 +0000 (UTC)
commit 9719604b7902ca7129d98d11fa658f169ad63b7a
Author: Florian Müllner <fmuellner gnome org>
Date: Sun Nov 10 03:00:37 2019 +0100
extensions-tool: Separate create metadata when prompting
When using the create command's --interactive option, we prompt for
any metadata that wasn't passed on the command line. As every prompt
is preceded by a short multi-line description, it is hard to follow
when everything is lumped together.
Improve legibility by separating all prompts by newlines.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/812
subprojects/extensions-tool/src/command-create.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/subprojects/extensions-tool/src/command-create.c
b/subprojects/extensions-tool/src/command-create.c
index 2ee1369f6b..25fcc5ba0f 100644
--- a/subprojects/extensions-tool/src/command-create.c
+++ b/subprojects/extensions-tool/src/command-create.c
@@ -202,6 +202,8 @@ prompt_metadata (char **uuid, char **name, char **description)
line = g_data_input_stream_read_line_utf8 (istream, NULL, NULL, NULL);
}
*name = g_strdelimit (line, "\n", '\0');
+
+ g_print ("\n");
}
if (description != NULL && *description == NULL)
@@ -220,6 +222,8 @@ prompt_metadata (char **uuid, char **name, char **description)
line = g_data_input_stream_read_line_utf8 (istream, NULL, NULL, NULL);
}
*description = g_strdelimit (line, "\n", '\0');
+
+ g_print ("\n");
}
if (uuid != NULL && *uuid == NULL)
@@ -237,6 +241,8 @@ prompt_metadata (char **uuid, char **name, char **description)
line = g_data_input_stream_read_line_utf8 (istream, NULL, NULL, NULL);
}
*uuid = g_strdelimit (line, "\n", '\0');
+
+ g_print ("\n");
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]