tazweb view README @ rev 96

Add godane and paul to AUTHORS
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 30 11:59:35 2011 +0200 (2011-04-30)
parents faa4ee68950b
children a8d926c59509
line source
1 TazWeb - SliTaz Web Browser
2 ================================================================================
5 TazWeb is a radically simple and very light web browser providing a single
6 window with one small bottom toolbar using buttons, an URL and search entry,
7 and a contextual menu but no menubar or tabs. Please keep the code simple
8 and clean, if you are motivated and want to add some more functionality,
9 please talk to the AUTHOR before commiting anything in the repos.
11 TazWeb uses a custom page in the user Freedesktop directory to let users add
12 any content to it and get with one click from the toolbar. We may have
13 an external apps/script to handle that file for users who can't manage to
14 edit pure xHTML.
16 This application have been created for Tazpanel and future SliTaz integrated
17 Web applications. The goal is by far to have a fully-featured web browser. But
18 if you find a way to provide a simple plugins mechanism, that would be great.
20 The idea with TazWeb is to have a minimal interface, the approach is to
21 build all the GUI with xHTML and CSS like in TazPanel.
23 For general and end-user documentation have a look at doc/tazweb.html.
24 TazWeb is published, like webkit source under a free BSD license.
26 BUG: Right clicking on "Open Link in New Window" is connecting to an event
27 but doesn't work.
30 Build and install
31 -----------------
32 TazWeb depends on GTK and libwebkit. To build and test, simply:
34 $ make
35 $ ./tazweb
37 Install with 'make install' (PREFIX and DESTDIR are supported for packaging)
39 Coding notes
40 ------------
42 * To get the filename of a WebKitDownload:
43 file = webkit_download_get_suggested_filename (download);
45 * Check mime-type before download (needs a callback function)
46 g_signal_connect (web_view, "mime-type-policy-decision-requested",
47 G_CALLBACK (mime_type_decision_cb), webview);
49 * Get user config directory path in $HOME:
50 config = g_strdup_printf ("%s/.config/tazweb", g_get_home_dir ());
52 * Change font of a widget:
53 PangoFontDescription *font;
54 font = pango_font_description_from_string("8");
55 gtk_widget_modify_font(urientry, font);
56 pango_font_description_free(font);
58 * Change size of a widget:
59 gtk_widget_set_size_request(toolbar, 0, 28);
61 * Append a string
62 g_string_append(string, " - TazWeb");
64 * Editable webview
65 webkit_web_view_set_editable (webview, TRUE);
68 ================================================================================