Gtk, C++ & Trouble



hy all.
I'm trying to use C++ but not the gtkmm, i'm using the c - version of Gtk

and i get into trouble when trying to connect a signal handler to a member
of a class.

the code:

class blah{
        public:
            blah();
        private:
               GtkWidget *button;
}

blah::blah(){
       GladeXML x= (somefile, "Window", NULL);
       button = glade_xml_get_widget(x, "button_OK");
      g_signal_connect(button, "clicked", G_CALLBACK(gtk_main_quit), NULL);
}


The Error:
(on  the line that is the g_signal_connect)
../Gui/AddRevistaGui.cpp:: error: invalid use of member (did you forget the
'&' ?)
make: ** [Gui/AddRevistaGui.o] Erro 1

Anyone can help?
(but please, dont say 'use the gtkmm', because i  dont' managed to compile
it on windows =/)

--
Um Computador sem Windows é como um Navio sem dançarinas de Can-Can



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