tazweb diff README @ rev 71

Update README
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 23 13:42:53 2011 +0200 (2011-04-23)
parents 8961264a6475
children 5bc3369a201f
line diff
     1.1 --- a/README	Fri Apr 22 22:06:47 2011 +0200
     1.2 +++ b/README	Sat Apr 23 13:42:53 2011 +0200
     1.3 @@ -3,10 +3,10 @@
     1.4  
     1.5  
     1.6  TazWeb is a radically simple and very light web browser providing a single
     1.7 -window with one small bottom toolbar using buttons and an URL entry, but no
     1.8 -menubar or tabs. Please keep the code simple and clean, if you are
     1.9 -motivated and want to add some entries to the context menu, please talk
    1.10 -to the AUTHOR before commiting anything in the repos.
    1.11 +window with one small bottom toolbar using buttons, an URL and search entry
    1.12 +and a contextual menu but no menubar or tabs. Please keep the code simple
    1.13 +and clean, if you are motivated and want to add some functionnalities, please
    1.14 +talk to the AUTHOR before commiting anything in the repos.
    1.15  
    1.16  TazWeb uses a custom page in the user Freedesktop directory to let users add
    1.17  any content to it and get with one click from the toolbar. We may have
    1.18 @@ -23,7 +23,8 @@
    1.19  For general and end-user documentation have a look at doc/tazweb.html.
    1.20  TazWeb is published, like webkit source under a free BSD license.
    1.21  
    1.22 -BUG: Right clicking on "Open Link in New Window" doesn't work.
    1.23 +BUG: Right clicking on "Open Link in New Window" is connect to a event
    1.24 +but doesn't work.
    1.25  
    1.26  
    1.27  Build and install
    1.28 @@ -47,7 +48,15 @@
    1.29                          G_CALLBACK (mime_type_decision_cb), web_view);
    1.30  
    1.31      * Get user config directory path in $HOME
    1.32 -      config = g_strdup_printf ("%s/.config/tazweb", g_get_home_dir ());      
    1.33 +      config = g_strdup_printf ("%s/.config/tazweb", g_get_home_dir ());
    1.34 +
    1.35 +    * This code change the browser user-agent
    1.36 +      static gchar *useragent = "TazWeb/1.0 (X11; Linux; U; en_US) AppleWebKit/531.2+";
    1.37 +      
    1.38 +      /* User agent */
    1.39 +      WebKitWebSettings *settings;
    1.40 +      settings = webkit_web_view_get_settings (web_view);
    1.41 +      g_object_set (G_OBJECT (settings), "user-agent", useragent, NULL);
    1.42  
    1.43  
    1.44  ================================================================================