. "This is a long string to force the widget to have a height greater than 34. , 0 , 0 , 0 , 0) gdk_flush() gtk(gtk_window_get_size , window1 , &x , &y , 0 , 0 , 0) w = gtk_returnpointervalue(1) h = gtk_returnpointervalue(2) gtk(gtk_widget_show , window1 , 0 , 0 , 0 , 0 , 0) counter = 0 'note that b is a string but you can do maths on it to get numeric output final=h+1 //-- mainloop" . . .