<div dir="ltr"><div><div><div><div><div><div><div>Hi,<br><br></div>I have a webkit2gtk webview in my application and want to save the current scroll position on close to restore it on startup again. This was very easy with webkit1gtk since you could just use a scrolledwindow with its adjustment. But how would I do this with webkit2gtk?<br></div>Btw I use vala and would prefer to solve the problem with vala/gtk and not some html/javascript-stuff since I have about 0 knowledge in web-development.<br></div>In the #webkitgtk channel someone pointed me to this solution (second answer)<br><a href="http://stackoverflow.com/questions/4096863/how-to-get-and-set-the-current-web-page-scroll-position">http://stackoverflow.com/questions/4096863/how-to-get-and-set-the-current-web-page-scroll-position</a><br></div>But I have no idea how that would help me. I don&#39;t even know if that is javascript or html5 :D<br></div>How would one do this with vala?<br><br></div>Thanks in advance,<br></div>Jan Lukas :)<br></div>