1.1 --- a/README Mon Apr 04 19:25:11 2011 +0200
1.2 +++ b/README Mon Apr 04 19:26:06 2011 +0200
1.3 @@ -3,21 +3,17 @@
1.6 TazWeb is radically simple and very light web browser provinding a single
1.7 -window without any toolbar, menubar or tabs. Please keep the code simple
1.8 -and clean, if you are motivated and want to add some entry in the context
1.9 -menu, please talk to the AUTHOR before commiting anything in the repo.
1.10 +window with one small bottom toolbar, but no menubar or tabs. Please keep
1.11 +the code simple and clean, if you are motivated and want to add some entry
1.12 +in the context menu, please talk to the AUTHOR before commiting anything
1.13 +in the repo.
1.15 This application have been crated for Tazpanel and future SliTaz integrated
1.16 Web applications. The goal is by far to have a full featured web browser. But
1.17 -if you have a way to provind a simple plugins mechanism, it would be great.
1.18 +if you have a way to provinde a simple plugins mechanism, it would be great.
1.20 -In the src/ directory you find a version of tazweb with a toolbar for a
1.21 -go-home, go-back, go-next, url entry. The idea with TazWeb is to dont
1.22 -have a toolbar by default, but we could have one in option from the
1.23 -context menu or the cmdline: tazweb --toolbar. Or just, some button
1.24 -icons in the right left of the screen for go-home, go back and go-next.
1.25 -That said, the aproach is to build all the GUI with xHTML and CSS like
1.26 -in TazPanel.
1.27 +The idea with TazWeb is to have a minimal interface, the aproache is to
1.28 +build all the GUI with xHTML and CSS like in TazPanel.
1.30 For general and end-user documentation have a look at doc/tazweb.html.
1.31 TazWeb is published, like webkit source under a free BSD license
1.32 @@ -40,4 +36,29 @@
1.33 Install with 'make install' (PREFIX and DESTDIR are supported for packaging)
1.36 +URL in the toolbar
1.38 +Like said above Tazdev must keep a simple interface and only one small toolbar
1.39 +with a few buttons. In the first stage of the project I hesitate to put an URL
1.40 +entry in the bar, but finally came to the conclusion that it is not usefull and
1.41 +not the goal of tazweb. But here is the code for posterity:
1.43 +static void
1.44 +activate_uri_entry_cb (GtkWidget* entry, gpointer data)
1.46 + const gchar* uri = gtk_entry_get_text (GTK_ENTRY (entry));
1.47 + g_assert (uri);
1.48 + webkit_web_view_load_uri (web_view, uri);
1.51 +/* The URL entry */
1.52 +item = gtk_tool_item_new ();
1.53 +gtk_tool_item_set_expand (item, TRUE);
1.54 +uri_entry = gtk_entry_new ();
1.55 +gtk_container_add (GTK_CONTAINER (item), uri_entry);
1.56 +g_signal_connect (G_OBJECT (uri_entry), "activate",
1.57 + G_CALLBACK (activate_uri_entry_cb), NULL);
1.58 +gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);