tazweb rev 71

Update README
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 23 13:42:53 2011 +0200 (2011-04-23)
parents ad9308f7dbc4
children 5bc3369a201f
files Makefile README
line diff
     1.1 --- a/Makefile	Sat Apr 23 13:34:39 2011 +0200
     1.2 +++ b/Makefile	Sat Apr 23 13:42:53 2011 +0200
     1.3 @@ -1,4 +1,4 @@
     1.4 -# Makefile for TazLauncher.
     1.5 +# Makefile for TazWeb
     1.6  #
     1.7  PREFIX?=/usr
     1.8  DOCDIR?=$(PREFIX)/share/doc
     2.1 --- a/README	Sat Apr 23 13:34:39 2011 +0200
     2.2 +++ b/README	Sat Apr 23 13:42:53 2011 +0200
     2.3 @@ -3,10 +3,10 @@
     2.4  
     2.5  
     2.6  TazWeb is a radically simple and very light web browser providing a single
     2.7 -window with one small bottom toolbar using buttons and an URL entry, but no
     2.8 -menubar or tabs. Please keep the code simple and clean, if you are
     2.9 -motivated and want to add some entries to the context menu, please talk
    2.10 -to the AUTHOR before commiting anything in the repos.
    2.11 +window with one small bottom toolbar using buttons, an URL and search entry
    2.12 +and a contextual menu but no menubar or tabs. Please keep the code simple
    2.13 +and clean, if you are motivated and want to add some functionnalities, please
    2.14 +talk to the AUTHOR before commiting anything in the repos.
    2.15  
    2.16  TazWeb uses a custom page in the user Freedesktop directory to let users add
    2.17  any content to it and get with one click from the toolbar. We may have
    2.18 @@ -23,7 +23,8 @@
    2.19  For general and end-user documentation have a look at doc/tazweb.html.
    2.20  TazWeb is published, like webkit source under a free BSD license.
    2.21  
    2.22 -BUG: Right clicking on "Open Link in New Window" doesn't work.
    2.23 +BUG: Right clicking on "Open Link in New Window" is connect to a event
    2.24 +but doesn't work.
    2.25  
    2.26  
    2.27  Build and install
    2.28 @@ -47,7 +48,15 @@
    2.29                          G_CALLBACK (mime_type_decision_cb), web_view);
    2.30  
    2.31      * Get user config directory path in $HOME
    2.32 -      config = g_strdup_printf ("%s/.config/tazweb", g_get_home_dir ());      
    2.33 +      config = g_strdup_printf ("%s/.config/tazweb", g_get_home_dir ());
    2.34 +
    2.35 +    * This code change the browser user-agent
    2.36 +      static gchar *useragent = "TazWeb/1.0 (X11; Linux; U; en_US) AppleWebKit/531.2+";
    2.37 +      
    2.38 +      /* User agent */
    2.39 +      WebKitWebSettings *settings;
    2.40 +      settings = webkit_web_view_get_settings (web_view);
    2.41 +      g_object_set (G_OBJECT (settings), "user-agent", useragent, NULL);
    2.42  
    2.43  
    2.44  ================================================================================