On Thu, 2008-01-10 at 11:52 +0100, Iker Perez de Albeniz wrote:
> Hi,
>
> The problems is that i need a way to call from other kind of widgets.. for
> example froam a menu..
>
> Abaut
> |_ abaut
> |_ Help
> |_ Web Page
>
> like in..
>
> m_refActionGroup->add( Gtk::Action::create("HelpSite", Gtk::Stock::CONNECT,
> "Visit Help Site"), sigc::mem_fun(*this, &mainWindow::visit_web) );
>
>
> what can i do on mainWindow::visit_web() to open a browser..??
Yes, even if you were using LinkButton, you'd need to set a callback
with set_uri_hook():
http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1LinkButton.html#39dd06e4ccff7e94ba4564227d593fa0
I used http://www.google.com/codesearch to see how applications use that
function. For instance, gossip uses gnome_url_show().
--
[EMAIL PROTECTED]
www.murrayc.com
www.openismus.com
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list