Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
that can be done fairly simply in c using webkit_web_view_load_uri(web_view, const gchar *uri); – Rrjrjtlokrthjji Jun 28 '12 at 17:47
up vote 1 down vote accepted

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

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.