Re: GTK equivalent to exit() function in callback






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 Mon, January 14, 2008 4:51 pm, Joakim Majander wrote:
vijayasarathy setsindia net 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 what you want to happen next. "return
TRUE" means there is an error and possibly has an effect on the program
flow.

You should probably study a bit of C basics before going deeper into gtk,
which is quite hard to master without basic C knowledge, which certainly
include "return".

Joakim



...................................................................
Luukku Plus paketilla pääset eroon tila- ja turvallisuusongelmista.
Hanki Luukku Plus ja helpotat elämääsi. http://www.mtv3.fi/luukku


*************************************************************************
************
DISCLAIMER
This e-mail and any files transmitted with it are for the sole use of the
intended recipient(s) and may contain confidential and privileged
information. Any use,distribution,copying or disclosure by any other
person is strictly prohibited. If you have received this transmission in
error please notify SETS immediately either by replying to this e-mail or
by telephone +91-44-28205655 and then delete this e-mail. The sender does
not accept any responsibility for any damage which you sustain as a
result of software viruses or malicious programs. You should therefore
scan attachments (if any) prior to opening them.
*************************************************************************
***********









Vijayasarathy
Senior Research Associate
SETS

***************************************************************************
DISCLAIMER
This e-mail and any files transmitted with it are for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. Any use, distribution, copying or disclosure by any other
person is strictly prohibited. If you have received this transmission
in error please notify SETS immediately either by replying to this e-mail
or
by telephone on +91-44-28205655 and then delete this e-mail.
The sender does not accept any responsibility for any damage which
you sustain as a result of software viruses or malicious programs.
You should therefore scan attachments (if any) prior to opening them.
**************************************************************************


*************************************************************************************
DISCLAIMER 
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may 
contain confidential and privileged information. 
Any use,distribution,copying or disclosure by any other person is strictly prohibited. If you have received 
this transmission in error please notify SETS immediately either by replying to this e-mail or by telephone 
+91-44-28205655 and then delete this e-mail. The sender does not accept any responsibility for any damage 
which you sustain as a result of software viruses or malicious programs. You should therefore scan 
attachments (if any) prior to opening them. 
************************************************************************************







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