Use gdk_window_get_width also for gtk2

It was introduced in gtk+-2.24