tazweb view README @ rev 31

Edit en.html, README
author Paul Issott <paul@slitaz.org>
date Tue Apr 05 19:20:33 2011 +0100 (2011-04-05)
parents 39ebb9fbf88d
children 2b9ac01011b0
line source
1 TazWeb - SliTaz Web Browser
2 ================================================================================
5 TazWeb is radically simple and very light web browser providing a single
6 window with one small bottom toolbar, but no menubar or tabs. Please keep
7 the code simple and clean, if you are motivated and want to add some entries
8 to the context menu, please talk to the AUTHOR before commiting anything
9 in the repos.
11 This application have been created for Tazpanel and future SliTaz integrated
12 Web applications. The goal is by far to have a fully-featured web browser. But
13 if you find a way to provide a simple plugins mechanism, that would be great.
15 The idea with TazWeb is to have a minimal interface, the approach is to
16 build all the GUI with xHTML and CSS like in TazPanel.
18 For general and end-user documentation have a look at doc/tazweb.html.
19 TazWeb is published, like webkit source under a free BSD license.
21 BUG: Right clicking on "Open Link in New Window" doesn't work.
24 Build and install
25 -----------------
26 TazWeb depends on GTK and libwebkit. To build and test, simply:
28 $ make
29 $ ./tazweb
31 For the version with a toolbar:
33 $ make toolbar
34 $ ./tazweb-toolbar
36 Install with 'make install' (PREFIX and DESTDIR are supported for packaging)
39 URL in the toolbar
40 ------------------
41 Like said above, Tazweb must keep a simple interface and only one small toolbar
42 with a few buttons. In the first stage of the project I hesitated to put an URL
43 entry in the bar, but finally came to the conclusion that it is not useful and
44 not the goal of tazweb. But here is the code for posterity:
46 static GtkWidget* uri_entry;
48 static void
49 activate_uri_entry_cb (GtkWidget* entry, gpointer data)
50 {
51 const gchar* uri = gtk_entry_get_text (GTK_ENTRY (entry));
52 g_assert (uri);
53 webkit_web_view_load_uri (web_view, uri);
54 }
56 /* The URL entry */
57 item = gtk_tool_item_new ();
58 gtk_tool_item_set_expand (item, TRUE);
59 uri_entry = gtk_entry_new ();
60 gtk_container_add (GTK_CONTAINER (item), uri_entry);
61 g_signal_connect (G_OBJECT (uri_entry), "activate",
62 G_CALLBACK (activate_uri_entry_cb), NULL);
63 gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);
66 ================================================================================