>From: Paul Davis <paul@xxxxxxxxxxxxxxxxxxxxx> >Reply-To: paul@xxxxxxxxxxxxxxxxxxxxx >To: Doğacan Güney <naliven@xxxxxxx> >CC: gtk-list@xxxxxxxxx >Subject: Re: gtk drawing question >Date: Thu, 10 Aug 2006 10:14:24 -0400 > >On Thu, 2006-08-10 at 13:46 +0000, Doğacan Güney wrote: > > Hi, > > > > I am trying to write a program similar to the one at > > http://mirko.lilik.it/Ruby-GNOME2/moz-snapshooter.rb . As far as I > > understand it, net-stop only means that the loading of page is >completed, it > > doesn't necessarily mean that drawing the widget is complete. My >question > > is, is there a way to understand if drawing of a widget (gtkmozembed in >this > > case) is complete? > >your question is ill-formed. do you mean "when every pixel that >represents a widget has been displayed on a screen?" or "when the code >responsible for requesting pixel changes has been called?" or something >else? What I want to do is to load a web page, then take the snapshot of this page. So I tell gtkmozembed to load the url and notify me (through net-stop) when it is done. When I recieve the net-stop signal, I create a pixbuf from the gtkmozembed widget and save it to a jpg. My problem is that, recieving net-stop signal only means that the page is fetched from web but not completely displayed on the screen(I think). So the jpg I generated is sometimes empty, or half-drawn. So, I guess my question is: I want to be notified when the page is completely rendered (with all the pictures and text and other stuff in it) and displayed on the screen. Is that clear enough? > > _________________________________________________________________ Sohbet ederken Messenger'da eglenin! http://messenger.live.com _______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list