shadowm

Untitled

Mar 4th, 2016
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1.  
  2. namespace {
  3.  
  4. void test() { std::cerr << "DOUBLE CLICK!\n"; }
  5.  
  6. }
  7.  
  8. // Compiles (bind obj takes no arguments)
  9. connect_signal_mouse_left_click(
  10. find_widget<tbutton>(&window, "new_dir", false),
  11. boost::bind(&tfile_dialog::on_dir_create_cmd, this, boost::ref(window)));
  12.  
  13. // Does not compile (func takes no arguments)
  14. filelist.connect_signal<event::LEFT_BUTTON_DOUBLE_CLICK>(test);
Advertisement
Add Comment
Please, Sign In to add comment