Re: GTK equivalent to exit() function in callback

2008-01-14 Thread vijayasarathy
Hi Joel, This was the first route I took, and I would prefer a better solution, which I got with my case In my case the function was a call back function which returns some value[about which there has been some debate, but the essence was conveyed though], and so I use "return" instead of exi

Re: GTK equivalent to exit() function in callback

2008-01-14 Thread Bastiaan Veelo
Have a look at the concept proposed in the last paragraph of http://lists.ximian.com/pipermail/gtk-sharp-list/2004-November/005148.html Good luck, Bastiaan. [EMAIL PROTECTED] wrote: > Hi all, > > > How do I exit from callback function at my discretion[instead of quitting > by reaching end of cal

Re: GTK equivalent to exit() function in callback

2008-01-14 Thread Joel Bryan Juliano
2008/1/14 <[EMAIL PROTECTED]>: > > Hi all, > > > How do I exit from callback function at my discretion[instead of quitting > by reaching end of callback function]. > > Basically, I want to validate data entered in window elements, and if data > entered is invalid, I want to exit from the call back

Re: GTK equivalent to exit() function in callback

2008-01-14 Thread vijayasarathy
On Mon, January 14, 2008 7:11 pm, Dan H wrote: > On Mon, 14 Jan 2008 18:18:30 +0530 (IST) > [EMAIL PROTECTED] wrote: > >> Thanks for that insight friend, but I am talking about a call back >> function whose return is void, and so my statement is alright with it >> ...and going by your own stateme

Re: GTK equivalent to exit() function in callback

2008-01-14 Thread Dan H
On Mon, 14 Jan 2008 18:18:30 +0530 (IST) [EMAIL PROTECTED] wrote: > Thanks for that insight friend, but I am talking about a call back > function whose return is void, and so my statement is alright with > it ...and going by your own statement, TRUE and FALSE are values > possibly boolean and are

Re: GTK equivalent to exit() function in callback

2008-01-14 Thread vijayasarathy
Thanks for that insight friend, but I am talking about a call back function whose return is void, and so my statement is alright with it ...and going by your own statement, TRUE and FALSE are values possibly boolean and are used only according to the return type of call back functions ... On M

Re: GTK equivalent to exit() function in callback

2008-01-14 Thread Joakim Majander
[EMAIL PROTECTED] kirjoitti 14.01.2008 kello 12:53: > > Hi all, > > > How do I exit from callback function at my discretion[instead of > quitting > by reaching end of callback function]. By "return", "return FALSE" or "return TRUE" depending on what kind of callback you are talking about and

GTK equivalent to exit() function in callback

2008-01-14 Thread vijayasarathy
Hi all, How do I exit from callback function at my discretion[instead of quitting by reaching end of callback function]. Basically, I want to validate data entered in window elements, and if data entered is invalid, I want to exit from the call back function. Vijay *