Comment 6 for bug 349948

Revision history for this message
Cody Russell (bratsche) wrote :

The problem is that it shouldn't be using gtk_window_get_size() this way. It's not a very reliable way to get the size, especially the it's being used here since the mainloop hasn't even been hit yet and the window doesn't exist yet.

The most reliable way to do this will be to get the size from the first configure event.

I'll post a new copy of example.c that works correctly.