Experimental offset calculation for Gtk