{"id":3153,"date":"2026-07-23T08:00:00","date_gmt":"2026-07-23T06:00:00","guid":{"rendered":"https:\/\/www.fuhselab.de\/?p=3153"},"modified":"2026-07-23T08:33:26","modified_gmt":"2026-07-23T06:33:26","slug":"c-und-gtk-grafikfenster-6","status":"publish","type":"post","link":"https:\/\/www.fuhselab.de\/index.php\/2026\/07\/23\/c-und-gtk-grafikfenster-6\/","title":{"rendered":"C++ und GTK Grafikfenster 6"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Die Schaltfl\u00e4che von GTK Grafikfenster 5 f\u00fcllte noch das gesamte Fenster aus und nun gibt es den Code f\u00fcr eine etwas kleinere Schaltfl\u00e4che&#8230;<\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Quellcode f\u00fcr GTK Grafikfenster 6:<\/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 06\/2026\");\ngtk_window_set_default_size(GTK_WINDOW(window), 600, 500);\n\n\nGtkWidget *vbox = gtk_vbox_new(FALSE, 0); \/\/ oder besser GtkWidget *vbox = gtk_box_new(0);\ngtk_container_add(GTK_CONTAINER(window), vbox);\n\nGtkWidget *button = gtk_button_new_with_label(\"Klicken Sie mich!\");\ngtk_box_pack_start(GTK_BOX(vbox), button, FALSE, FALSE, 0);\n\ngtk_widget_show_all(window);\ngtk_main();\n\nreturn 0;\n}\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Die Schaltfl\u00e4che von GTK Grafikfenster 5 f\u00fcllte noch das gesamte Fenster aus und nun gibt es den Code f\u00fcr eine etwas kleinere Schaltfl\u00e4che&#8230;<\/p>\n","protected":false},"author":1,"featured_media":543,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[32],"class_list":["post-3153","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\/3153","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=3153"}],"version-history":[{"count":1,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/3153\/revisions"}],"predecessor-version":[{"id":3154,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/3153\/revisions\/3154"}],"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=3153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/categories?post=3153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/tags?post=3153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}