shadowm icon

Untitled

shadowm | PRO | 03/04/16 08:41:57 AM UTC | 0 ⭐ | 367 👁️ | Never ⏰ | []
text |

380 B

|

None

|

0 👍

/

0 👎

 namespace {
 void test() { std::cerr << "DOUBLE CLICK!\n"; }
 }
 // Compiles (bind obj takes no arguments)
connect_signal_mouse_left_click(
	find_widget<tbutton>(&window, "new_dir", false),
	boost::bind(&tfile_dialog::on_dir_create_cmd, this, boost::ref(window)));
 // Does not compile (func takes no arguments)
filelist.connect_signal<event::LEFT_BUTTON_DOUBLE_CLICK>(test);

Comments