[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk-app-devel
Subject:    Re: I can't understand the difference output of only a line differ
From:       Binary Chen <binary.chen () gmail ! com>
Date:       2007-12-06 10:54:07
Message-ID: 1196938447.12516.18.camel () binch-laptop
[Download RAW message or body]

On Thu, 2007-12-06 at 10:41 +0000, Emmanuele Bassi wrote:
> On Thu, 2007-12-06 at 17:40 +0800, Binary Chen wrote:
> 
> > 	while (1) {
> > 		sleep(1);
> > 		gdk_draw_image(drawing->window, gc, img, 0, 0, 0, 0, 200, 200);
> > 	}
> 
> you are blocking with your own loop before entering inside the gtk+ main
> loop with the following call:
> 
> > 	gtk_main();
> 
But without the sleep() I will also not reach gtk_main(), but the window
shows, why? What I am asking is this.

Thanks.


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic