Advertisement
thecplusplusguy

GTK+ tutorial 1

Jun 27th, 2012
2,176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. //http://www.youtube.com/user/thecplusplusguy
  2. //Thanks for the typed in code to Tapit85
  3. #include <gtk/gtk.h>
  4.  
  5. int main(int argc, char* argv[])
  6. {
  7.     gtk_init(&argc, &argv);
  8.     GtkWidget*  window;
  9.     window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
  10.     g_signal_connect(window, "delete-event", G_CALLBACK(gtk_main_quit), NULL);
  11.     gtk_widget_show(window);
  12.     gtk_main();
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement