Skip to content

Instantly share code, notes, and snippets.

@cjameshuff
Created August 24, 2012 21:00
Show Gist options
  • Save cjameshuff/3455563 to your computer and use it in GitHub Desktop.
Save cjameshuff/3455563 to your computer and use it in GitHub Desktop.
// g++ minimal.cpp -o minimal `pkg-config --cflags --libs gtk+-3.0`
#include <gtk/gtk.h>
int main(int argc, char *argv[])
{
gtk_init(&argc, &argv);
GtkWidget * window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL);
gtk_widget_show(window);
gtk_main();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment