Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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); –  Nickolas Jun 28 '12 at 17:47

1 Answer 1

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

 
discard

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.