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 à
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
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
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
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
>
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
>
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
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