[prev in list] [next in list] [prev in thread] [next in thread]
List: gtk-app-devel
Subject: Gtk, C++ & Trouble
From: Tomaz Canabrava <tumaix () gmail ! com>
Date: 2005-12-04 3:08:12
Message-ID: 7ebbb4b50512031908o72486f74yf015a34ce5c66191 () mail ! gmail ! com
[Download RAW message or body]
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
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic