Re: RE :Problem with gtk (done mistake)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2006-12-18 at 09:33 +0530, Naveen Kumar wrote:> Hi all,> Please excuse for my mistake...> I am very sorry for sending a wrong part of the code it is actually..> > #include <stdio.h>> > int main ()> {> int i=0;> while(i < 264000)> printf("%d\n",i++);> }> > it works very fine in my machine without any problem. (it takes around> 1.2 minutes)> > 2)If try to run the same part of code on a button click using gtk,> the application is crashing around 30 seconds saying just "Terminated".> > Is there any time out as such we can specify for gtk applications..> > Please help me regarding this.
If you want something to happen 1.2 minutes after the button gets hit,set up a timeout using g_timeout_add, which will arrange so that afunction is called after the time you set passes.
-- m

-- Mariano Suárez-Alvarezhttp://www.gnome.org/~mariano

_______________________________________________gtk-list mailing listgtk-list@xxxxxxxxxxxxx://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux