rendered paste body/*
* A simple program to show a problem with vte terminal.
* It basically shows at (0.0) in the root window coordinate,
* and not in its container container coordinates.
* It properly shows, though, whenever you resize the root window
* Author: Dodji Seketeli
*to compile, type: gcc -g -Wall `pkg-config --libs --cflags vte` -o vtetest vte-test.c
*/
#include <gtk/gtk.h>
#include <vte/vte.h>
int
main (int argc, char **argv)
{
GtkWidget *window, *terminal, *box, *label ;
gtk_init (&argc, &argv) ;
window = gtk_window_new (GTK_WINDOW_TOPLEVEL) ;
g_signal_connect (G_OBJECT (window),
"delete-event",
G_CALLBACK (>k_exit),
NULL) ;
box = gtk_vbox_new (FALSE, 0) ;
gtk_container_add (GTK_CONTAINER (window), box) ;
label = gtk_label_new ("should be visible") ;
gtk_box_pack_start_defaults (GTK_BOX (box), label) ;
label = gtk_label_new ("should be visible") ;
gtk_box_pack_start_defaults (GTK_BOX (box), label) ;
terminal = vte_terminal_new () ;
gtk_box_pack_start_defaults (GTK_BOX (box), terminal) ;
gtk_widget_show_all (window) ;
gtk_main () ;
return 0 ;
}