{"id":3115,"date":"2026-06-25T08:00:00","date_gmt":"2026-06-25T06:00:00","guid":{"rendered":"https:\/\/www.fuhselab.de\/?p=3115"},"modified":"2026-05-15T10:39:25","modified_gmt":"2026-05-15T08:39:25","slug":"c-und-gtk-grafikfenster-3","status":"publish","type":"post","link":"https:\/\/www.fuhselab.de\/index.php\/2026\/06\/25\/c-und-gtk-grafikfenster-3\/","title":{"rendered":"C++ und GTK Grafikfenster 3"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Das dritte GTK Grafikfenster braucht auch einen Code und hier ist er&#8230;<\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Quellcode f\u00fcr GTK Grafikfenster 3:<\/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;]) {\ngtk_init(&amp;argc, &amp;argv);\n\nGtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);\ng_signal_connect(window, \"destroy\", G_CALLBACK(gtk_main_quit), NULL);\n\ngtk_window_set_title(GTK_WINDOW(window), \"GTK Grafikfenster 03\/2026\");\ngtk_window_set_default_size(GTK_WINDOW(window), 600, 500);\n\nGtkCssProvider *provider = gtk_css_provider_new();\ngtk_css_provider_load_from_data(provider,\"* { background-color: #ff0000; }\", -1, NULL);\n\nGtkStyleContext *context = gtk_widget_get_style_context(window);\ngtk_style_context_add_provider(context,\nGTK_STYLE_PROVIDER(provider),\nGTK_STYLE_PROVIDER_PRIORITY_USER);\n\ngtk_widget_show_all(window);\ngtk_main();\n\ng_object_unref(provider);\nreturn 0;\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Das dritte GTK Grafikfenster braucht auch einen Code und hier ist er&#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-3115","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\/3115","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=3115"}],"version-history":[{"count":1,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/3115\/revisions"}],"predecessor-version":[{"id":3116,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/3115\/revisions\/3116"}],"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=3115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/categories?post=3115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/tags?post=3115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}