Top-Level Windows A top-level window is created using the following piece of code: /* this variable will store a pointer to the window object. */ GtkWidget* main_window; /* create a new top-level window. */ main_window = gtk_window_new(GTK_WINDOW_TOPLEVEL); /* define some of the window's attributes. */ gtk_window_set_default_size(GTK_WINDOW(main_window), 500, 300); gtk_window_set_title(GTK_WINDOW (main_window), "A Top Window For The Rest Of Us..."); gtk_container_set_border_width(GTK_CONTAINER (main_window), 5); /* make the window visible. */ gtk_widget_show(main_window); Note: the actual redrawing of the window will be done only when control gets to GTK's main loop.