From 23dcf2d266ce1d62c597c58e9cb8dee4b09ef5de Mon Sep 17 00:00:00 2001 From: Titan Jamison Date: Sat, 18 Mar 2023 16:46:25 -0700 Subject: [PATCH 1/2] fixed typo on line 450 (lable -> label) --- docs/sec4.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sec4.html b/docs/sec4.html index 90972d0..dc2ee8e 100644 --- a/docs/sec4.html +++ b/docs/sec4.html @@ -447,7 +447,7 @@ class="sourceCode numberSource C numberLines"> else gtk_button_set_label (btn, "Hello."); } -

The function gtk_button_get_lable returns a text from +

The function gtk_button_get_label returns a text from the label. The string is owned by the button and you can’t modify or free it. The const qualifier is necessary for the string s. If you change the string, your compiler will give you a From 13b996645236f795ac9620d0d0c27df04bd69251 Mon Sep 17 00:00:00 2001 From: Titan Jamison Date: Sat, 18 Mar 2023 16:48:22 -0700 Subject: [PATCH 2/2] fixed typo (corresponds -> corresponding) --- docs/sec4.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/sec4.html b/docs/sec4.html index dc2ee8e..93f0215 100644 --- a/docs/sec4.html +++ b/docs/sec4.html @@ -458,8 +458,8 @@ the GTK 4 API reference.

Screenshot of the box -

The handler corresponds to btn1 toggles its label. The -handler corresponds to btn2 destroys the top-level window +

The handler corresponding to btn1 toggles its label. The +handler corresponding to btn2 destroys the top-level window and the application quits.