Created
April 21, 2023 13:59
-
-
Save Akkiesoft/4b7b7f438f1bfba82aada0add8f183b0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <gtk/gtk.h> | |
/* | |
* Based on: https://trac.macports.org/ticket/64484 | |
* | |
* gcc $(pkg-config --libs --cflags gtk+-3.0) -o gtk-test gtk-test.c | |
*/ | |
int main(int argc, char *argv[]) | |
{ | |
GtkWidget *window, *entry; | |
gtk_init(&argc, &argv); | |
window = gtk_window_new(GTK_WINDOW_TOPLEVEL); | |
entry = gtk_entry_new(); | |
gtk_container_add(GTK_CONTAINER(window), entry); | |
g_signal_connect(window, "destroy", G_CALLBACK (gtk_main_quit), NULL); | |
gtk_widget_show_all(window); | |
gtk_main(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment