mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 06:06:25 +01:00
remove empty sigc++2 directory
git-svn-id: svn://localhost/ardour2/branches/3.0@3432 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
2f3f697bb8
commit
9c0d7d72d7
2797 changed files with 0 additions and 992363 deletions
|
|
@ -1,53 +0,0 @@
|
|||
#include <gtkmm.h>
|
||||
#include <iostream>
|
||||
|
||||
//This is _not_ a good example of coding with gtkmm.
|
||||
class Dlg : public sigc::trackable
|
||||
{
|
||||
public:
|
||||
Dlg()
|
||||
{
|
||||
dlg_ = new Gtk::Dialog("Test Dialog");
|
||||
Gtk::Button *btn = manage(new Gtk::Button("ClickMe"));
|
||||
btn->signal_clicked().connect(sigc::mem_fun(*this, &Dlg::on_button_clicked));
|
||||
dlg_->get_vbox()->pack_start(*btn);
|
||||
dlg_->add_button(Gtk::Stock::OK, 0);
|
||||
dlg_->signal_response().connect(sigc::mem_fun(*this, &Dlg::on_response));
|
||||
dlg_->show_all();
|
||||
}
|
||||
|
||||
~Dlg()
|
||||
{
|
||||
delete dlg_;
|
||||
}
|
||||
|
||||
void on_button_clicked()
|
||||
{
|
||||
std::cout << "button clicked" << std::endl;
|
||||
}
|
||||
|
||||
void on_response(int id)
|
||||
{
|
||||
if (id == 0)
|
||||
quit();
|
||||
}
|
||||
|
||||
void quit() {
|
||||
delete this; //This is _not_ a good example of coding with gtkmm.
|
||||
Gtk::Main::quit();
|
||||
}
|
||||
|
||||
private:
|
||||
Gtk::Dialog *dlg_;
|
||||
};
|
||||
|
||||
int main (int argc, char **argv)
|
||||
{
|
||||
Gtk::Main kit (argc, argv);
|
||||
|
||||
new Dlg(); //Not a Gtk::Dialog - it creates one in its constructor.
|
||||
|
||||
Gtk::Main::run();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue