Button not working <<<<<



Dear Friends
 I am new to c++ and Gtkmm! and i have made a small program which given below but it is not working please help me and also i forgot to say that i am familiar with Pygtk :)

#include <iostream>
#include <gtkmm.h>
using namespace std;

void say()
{
    exit(0);
}

int main(int argc, char *argv[])
{
Gtk::Main kit(argc, argv);
Gtk::Window window;
Gtk::Button butt("_Something", true);
butt.signal_activate().connect(sigc::ptr_fun(say));
window.add(butt);
window.show_all_children();
Gtk::Main::run(window);
return 0;
}

--
Mob : +91 8281029215
           +91 8281024216
           +91 9446012215
           +91 9446012216

FREE
SOFTWARE FREE SOCIETY





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