0

I was watching the Ubuntu Developer video about creating your own browser using webkit, but I was wondering if it would be possible to make webkit load a specific website. For instance, if I was to click on the tab "page 3" in my notebook, is there a way to tell webkit to load a specific URL? Any help would be greatly appreciated. I have looked around for a solution, but was unable to find any.

1
  • that can be done fairly simply in c using webkit_web_view_load_uri(web_view, const gchar *uri);
    – dlin
    Jun 28, 2012 at 17:47

1 Answer 1

1

You would need to connect to the switch-page signal on your Gtk.Notebook, and in the callback call load_uri() on your Webkit WebView

3
  • And from there, where do I enter the specific URL for webkit to go to?
    – Compt
    Jun 28, 2012 at 18:34
  • @Compt The URL is one of the arguments to the load_uri() method.
    – dobey
    Jun 28, 2012 at 18:36
  • Ahhh, sorry I am a bit new at this.
    – Compt
    Jun 28, 2012 at 18:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .