Re: Using g_signal_connect in class

2008-07-21 Thread Milosz Derezynski
I think he meant that in order to use the function with g_signal_connect(), a C linkage is not needed (and i think this is actually right, too). 2008/7/19 Chris Vine <[EMAIL PROTECTED]>: > On Sat, 19 Jul 2008 13:42:58 +0200 > Jean Bréfort <[EMAIL PROTECTED]> wrote: > > Le samedi 19 juillet 2008 à

RE: Using g_signal_connect in class

2008-07-21 Thread Vallone, Anthony
olaris/articles/mixing.html -Anthony Vallone -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Vine Sent: Saturday, July 19, 2008 4:51 PM To: Milosz Derezynski Cc: gtk-list@gnome.org; Vallone, Anthony Subject: Re: Using g_signal_connect in class On Sat, 19 Ju

Re: Using g_signal_connect in class

2008-07-19 Thread Chris Vine
On Sat, 19 Jul 2008 16:40:17 +0200 "Milosz Derezynski" <[EMAIL PROTECTED]> wrote: > I think he meant that in order to use the function with > g_signal_connect(), a C linkage is not needed (and i think this is > actually right, too). No, g_signal_connect() takes a function pointer and in C++ funct

Re: Using g_signal_connect in class

2008-07-19 Thread Chris Vine
On Sat, 19 Jul 2008 13:42:58 +0200 Jean Bréfort <[EMAIL PROTECTED]> wrote: > Le samedi 19 juillet 2008 à 12:29 +0100, Chris Vine a écrit : > > This will work with gcc/g++ but it is not standard conforming, as > > static class functions do not have C linkage, and the C++ standard > > states that fun

Re: Using g_signal_connect in class

2008-07-19 Thread Jean Bréfort
Le samedi 19 juillet 2008 à 12:29 +0100, Chris Vine a écrit : > On Tue, 15 Jul 2008 11:34:41 -0400 > "Vallone, Anthony" <[EMAIL PROTECTED]> wrote: > > > Only if the member function is static. Calling a non-static member > > function requires two addresses: the instance address and the function >

Re: Using g_signal_connect in class

2008-07-19 Thread Chris Vine
On Tue, 15 Jul 2008 11:34:41 -0400 "Vallone, Anthony" <[EMAIL PROTECTED]> wrote: > Only if the member function is static. Calling a non-static member > function requires two addresses: the instance address and the function > address. Whether its public or private doesn't matter because access >

RE: Using g_signal_connect in class

2008-07-15 Thread Vallone, Anthony
Only if the member function is static. Calling a non-static member function requires two addresses: the instance address and the function address. Whether its public or private doesn't matter because access to function pointers is not checked by compilers. I frequently do something like this: c

Re: Using g_signal_connect in class

2008-07-15 Thread Murray Cumming
On Tue, 2008-07-15 at 12:04 +0200, Marco Rocco wrote: > Hello, this is my first post on this mailing list, now i do my request: > can i use g_signal_connect in a method of my class, using as c_handler > a private function of class? ...and if i can, how i can do ? You are talking about C++, I bel