Hi! That won't work if you don't call glade_signal_autoconnect() or similar. Anyway, Gtkmm handles this in different ways (and you shouldn't call Gtk + methods linke gtk_main_quit() in gtkmm code. I think you should read http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/index.html first which should solve most gtkmm programming problems. Regards, Johannes Am Dienstag, den 02.12.2008, 04:17 -0800 schrieb UnoSD: > hi, i'm a new user of the forum and of anjuta, i'm italian so i'm sorry for > my english :D > > i made a new project with anjuta, a c++ project with gtkmm > i made a window with glade with a button with okbutton name > i put the button name and the signal\gtkbutton\clicked: on_okbutton_clicked > and after i just added: > void on_okbutton_clicked (GtkButton *button, gpointer user_data){ > printf("ciao"); > cout << "ciao"<<endl; > gtk_main_quit(); > } > at the bottom of the main.cc > but when i run the program > and i click the button > nothing happens... > > please someone can help me? i tried googleing but nothing... > > (sorry, i wrote in the wrong section before...
Attachment:
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil