Re: a simple question.



Hi,all:
  I have a simple question.I would like to know why all callback
function are static? Are there anybody know answer?

I don't think functions for GTK+ signal callbacks need to be
declared static.

I think in the tutorial or whereever you saw them given per
example is that they have ambiguous names such as
static void handle_key()

Which may conflict with other function names, from what I recall, C
declares a local function static to indicate it is to be used in this .c
file only and not allow external calls to link to it (corrections?).


--
Sincerely,                  ,"-_                         \|/
-Capt. Taura M.             ,   O=__                    --X--
..__                         ,_JNMNNEO=_                 /|\
OMNOUMmnne.                  {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn.               'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe              '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe.                "7OMMMMNNNNNWWEEEEOOOOOO"   "'.
EEBNNMMMNWNWWEEIMMNe.             __  7EMMMNNNNNWWWEEEEEEEOO.     " .
NNMMMMWWWMMMWEINMMMNn            "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._     .
                  http://furry.ao.net/~learfox/





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