我有一个处理函数:
bool test( const Glib::ustring& uri )
{
MessageBoxA( NULL, "hello", NULL, 0 );
return true;
}
我连接
label2.set_markup( "<a href=\"http://www.google.com\">Google</a>" );
sigc::connection conn = label2.signal_activate_link().connect( sigc::ptr_fun( test ) );
我不明白为什么这不起作用。当我点击 Google 时,我可以看到它使用的不是我的默认 URI 处理程序。