{"id":3141,"date":"2026-07-09T08:00:00","date_gmt":"2026-07-09T06:00:00","guid":{"rendered":"https:\/\/www.fuhselab.de\/?p=3141"},"modified":"2026-07-02T08:07:26","modified_gmt":"2026-07-02T06:07:26","slug":"c-und-gtk-grafikfenster-5","status":"publish","type":"post","link":"https:\/\/www.fuhselab.de\/index.php\/2026\/07\/09\/c-und-gtk-grafikfenster-5\/","title":{"rendered":"C++ und GTK Grafikfenster 5"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Das f\u00fcnfte GTK Grafikfenster erzeugt ein graues Grafikfenster mit Schaltfl\u00e4che&#8230;<\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Quellcode f\u00fcr GTK Grafikfenster 5:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#include &lt;gtk\/gtk.h>\n\nint main(int argc, char *argv&#91;]) {\n\n\/\/ Initialisierung von GTK\ngtk_init(&amp;argc, &amp;argv);\n\n\/\/ Erstellung eines Fensters\nGtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);\ng_signal_connect(window, \"destroy\", G_CALLBACK(gtk_main_quit), NULL);\n\n\/\/ Setzen des Titels und der Gr\u00f6\u00dfe des Fensters\ngtk_window_set_title(GTK_WINDOW(window), \"GTK-Grafikfenster 05\/2026\");\ngtk_window_set_default_size(GTK_WINDOW(window), 600, 500);\n\nGtkWidget *button = gtk_button_new_with_label(\"Klicken Sie mich!\");\ngtk_container_add(GTK_CONTAINER(window), button);\n\n\/\/ Zeigen des Fensters\ngtk_widget_show_all(window);\ngtk_main();\n\nreturn 0;\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Das f\u00fcnfte GTK Grafikfenster erzeugt ein graues Grafikfenster mit Schaltfl\u00e4che&#8230;<\/p>\n","protected":false},"author":1,"featured_media":543,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[32],"class_list":["post-3141","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-coding-club","tag-coding-club-peine"],"_links":{"self":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/3141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/comments?post=3141"}],"version-history":[{"count":1,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/3141\/revisions"}],"predecessor-version":[{"id":3142,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/3141\/revisions\/3142"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/media\/543"}],"wp:attachment":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/media?parent=3141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/categories?post=3141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/tags?post=3141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}