[gtk-web: 1/2] Add missing typecast in C example




commit ac27ead55e9cd2600448ac720ba670e21687f2d5
Author: Thomas Lange <thomas-lange2 gmx de>
Date:   Sun Jan 10 19:41:51 2021 +0000

    Add missing typecast in C example

 _data/sample_codes.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/_data/sample_codes.yml b/_data/sample_codes.yml
index 6b0a1a93..712c4c90 100644
--- a/_data/sample_codes.yml
+++ b/_data/sample_codes.yml
@@ -14,7 +14,7 @@ codes:
         // When the button is clicked, close the window passed as an argument
         g_signal_connect_swapped (button, "clicked", G_CALLBACK (gtk_window_close), window);
         gtk_window_set_child (GTK_WINDOW (window), button);
-        gtk_window_present (window);
+        gtk_window_present (GTK_WINDOW (window));
       }
 
       int main (int argc, char *argv[]) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]