mirror of
https://github.com/ToshioCP/Gtk4-tutorial.git
synced 2025-01-12 20:03:28 +01:00
Minor change to displayed strings, adding space after sentences
When the string definition in the code is concatenated, there is no space between sentences.
This commit is contained in:
parent
2ed0969574
commit
dbe2180773
2 changed files with 16 additions and 18 deletions
|
@ -7,16 +7,16 @@ app_activate (GApplication *app, gpointer user_data) {
|
|||
GtkTextBuffer *tb;
|
||||
gchar *text;
|
||||
|
||||
text =
|
||||
"Once upon a time, there was an old man who was called Taketori-no-Okina."
|
||||
text =
|
||||
"Once upon a time, there was an old man who was called Taketori-no-Okina. "
|
||||
"It is a japanese word that means a man whose work is making bamboo baskets.\n"
|
||||
"One day, he went into a mountain and found a shining bamboo."
|
||||
"\"What a mysterious bamboo it is!,\" he said."
|
||||
"He cut it, then there was a small cute baby girl in it."
|
||||
"The girl was shining faintly."
|
||||
"One day, he went into a mountain and found a shining bamboo. "
|
||||
"\"What a mysterious bamboo it is!,\" he said. "
|
||||
"He cut it, then there was a small cute baby girl in it. "
|
||||
"The girl was shining faintly. "
|
||||
"He thought this baby girl is a gift from Heaven and took her home.\n"
|
||||
"His wife was surprized at his tale."
|
||||
"They were very happy because they had no children."
|
||||
"His wife was surprized at his tale. "
|
||||
"They were very happy because they had no children. "
|
||||
;
|
||||
win = gtk_application_window_new (GTK_APPLICATION (app));
|
||||
gtk_window_set_title (GTK_WINDOW (win), "Taketori");
|
||||
|
@ -43,4 +43,3 @@ main (int argc, char **argv) {
|
|||
g_object_unref (app);
|
||||
return stat;
|
||||
}
|
||||
|
||||
|
|
|
@ -8,16 +8,16 @@ app_activate (GApplication *app, gpointer user_data) {
|
|||
GtkTextBuffer *tb;
|
||||
gchar *text;
|
||||
|
||||
text =
|
||||
"Once upon a time, there was an old man who was called Taketori-no-Okina."
|
||||
text =
|
||||
"Once upon a time, there was an old man who was called Taketori-no-Okina. "
|
||||
"It is a japanese word that means a man whose work is making bamboo baskets.\n"
|
||||
"One day, he went into a mountain and found a shining bamboo."
|
||||
"\"What a mysterious bamboo it is!,\" he said."
|
||||
"He cut it, then there was a small cute baby girl in it."
|
||||
"The girl was shining faintly."
|
||||
"One day, he went into a mountain and found a shining bamboo. "
|
||||
"\"What a mysterious bamboo it is!,\" he said. "
|
||||
"He cut it, then there was a small cute baby girl in it. "
|
||||
"The girl was shining faintly. "
|
||||
"He thought this baby girl is a gift from Heaven and took her home.\n"
|
||||
"His wife was surprized at his tale."
|
||||
"They were very happy because they had no children."
|
||||
"His wife was surprized at his tale. "
|
||||
"They were very happy because they had no children. "
|
||||
;
|
||||
win = gtk_application_window_new (GTK_APPLICATION (app));
|
||||
gtk_window_set_title (GTK_WINDOW (win), "Taketori");
|
||||
|
@ -47,4 +47,3 @@ main (int argc, char **argv) {
|
|||
g_object_unref (app);
|
||||
return stat;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue