public IPage FindPage(Gdk.Window window) { return(AllPages.Cast <IGtkWindowPage>().FirstOrDefault(x => x.GtkDialog.GdkWindow == window)); }