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