GTK_RUN_FIRST and return from default signal handler



gtk won't let me set up a signal where the default handler is GTK_RUN_FIRST
and there is a return type ...

this means that the return type will only be taken from the default handler
which is NOT what I want ... (if I connect the signal somewhere else the
return value is ignored unless the default handler is NULL) ... this seems
to be NOT right ... I solve it by not having ANY return from the return 
handler (making it a void function and casting it) ... this is ugly

wouldn't jsut the opposite make sense ... allow only GTK_RUN_FIRST when there
is a return type

plus the message says:

Gtk-WARNING **: gtk_signal_newv(): signal "pressed" with return value `gboolean' excludes GTK_RUN_LAST

Gtk-WARNING **: gtk_signal_connect(): could not find signal "pressed" in the `ButtonWidget' class ancestry

which sounds very confusing to me .. it seems like the code is actually
excluding GTK_RUN_FIRST

George

-- 
------------------------------------------------------------------------------
George Lebl <jirka@5z.com> http://www.5z.com/jirka/
------------------------------------------------------------------------------
  The following implements RSA in perl and is illegal to export from the US:

          #!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
          $/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
          lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)



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