Re: Using g_signal_connect in class

2008-07-16 Thread Dave Foster
On Tue, Jul 15, 2008 at 6:36 AM, Gabriele Greco <[EMAIL PROTECTED]> wrote: > > static void handle_click_cbk(GtkWidget *mywidget_, MyClass *data) { > data->handle_click(); } > You can't make a callback function intended to be used by C code be inside of the C++ class. It will not be able to find

Using g_signal_connect in class

2008-07-15 Thread Marco Rocco
Thanks, I have done, but i have the problem of how i get treepath, and how i can pass to callback functions, look my class: class GtkCtree{ private: GtkWidget *treeview; GtkListStore *liststore; Tdata string_to_data(const char *data_string); static void cell_edited_cbk(

Using g_signal_connect in class

2008-07-15 Thread Marco Rocco
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 ? ___ gtk-app-devel-list mailing list gtk-app-dev

Re: Using g_signal_connect in class

2008-07-15 Thread Gabriele Greco
On Tue, Jul 15, 2008 at 12:09 PM, Marco Rocco <[EMAIL PROTECTED]> 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 ? > > If you use

Using g_signal_connect in class

2008-07-15 Thread Marco Rocco
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 ? ___ gtk-app-devel-list mailing list gtk-app-dev