# HG changeset patch # User Christophe Lincoln # Date 1301930117 -7200 # Node ID a7f99c2b3493feb174809e7a2e6a3115fbb7be22 # Parent 2354b9f50e92b80f87afe206c89ade52d275a79f with-toolbar.c: add a tazweb documentation button diff -r 2354b9f50e92 -r a7f99c2b3493 src/with-toolbar.c --- a/src/with-toolbar.c Mon Apr 04 17:03:00 2011 +0200 +++ b/src/with-toolbar.c Mon Apr 04 17:15:17 2011 +0200 @@ -91,6 +91,15 @@ webkit_web_view_load_uri (web_view, uri); } +/* TazWeb doc function */ +static void +tazweb_doc (GtkWidget* widget, gpointer data) +{ + const gchar* uri = ("file:///usr/share/doc/slitaz/tazweb.html"); + g_assert (uri); + webkit_web_view_load_uri (web_view, uri); +} + static void go_back_cb (GtkWidget* widget, gpointer data) { @@ -161,6 +170,11 @@ g_signal_connect (G_OBJECT (uri_entry), "activate", G_CALLBACK (activate_uri_entry_cb), NULL); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1); + /* The TazWeb doc button */ + item = gtk_tool_button_new_from_stock (GTK_STOCK_INFO); + g_signal_connect (G_OBJECT (item), "clicked", G_CALLBACK (tazweb_doc), NULL); + gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1); + return toolbar; }