tazweb rev 10
with-toolbar.c: add a tazweb documentation button
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Apr 04 17:15:17 2011 +0200 (2011-04-04) |
parents | 2354b9f50e92 |
children | 181b77ec9d9f |
files | src/with-toolbar.c |
line diff
1.1 --- a/src/with-toolbar.c Mon Apr 04 17:03:00 2011 +0200 1.2 +++ b/src/with-toolbar.c Mon Apr 04 17:15:17 2011 +0200 1.3 @@ -91,6 +91,15 @@ 1.4 webkit_web_view_load_uri (web_view, uri); 1.5 } 1.6 1.7 +/* TazWeb doc function */ 1.8 +static void 1.9 +tazweb_doc (GtkWidget* widget, gpointer data) 1.10 +{ 1.11 + const gchar* uri = ("file:///usr/share/doc/slitaz/tazweb.html"); 1.12 + g_assert (uri); 1.13 + webkit_web_view_load_uri (web_view, uri); 1.14 +} 1.15 + 1.16 static void 1.17 go_back_cb (GtkWidget* widget, gpointer data) 1.18 { 1.19 @@ -161,6 +170,11 @@ 1.20 g_signal_connect (G_OBJECT (uri_entry), "activate", G_CALLBACK (activate_uri_entry_cb), NULL); 1.21 gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1); 1.22 1.23 + /* The TazWeb doc button */ 1.24 + item = gtk_tool_button_new_from_stock (GTK_STOCK_INFO); 1.25 + g_signal_connect (G_OBJECT (item), "clicked", G_CALLBACK (tazweb_doc), NULL); 1.26 + gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1); 1.27 + 1.28 return toolbar; 1.29 } 1.30