tazweb diff README @ rev 81
Make new webview definitly work! We can now open new window from menu. By the way, removed loader (buggy with new webviw) and bloated... remove colors (use gtk theme)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Apr 25 01:17:19 2011 +0200 (2011-04-25) |
parents | dd5c73a60acc |
children | c32ca77dcded |
line diff
1.1 --- a/README Sun Apr 24 00:43:36 2011 +0200 1.2 +++ b/README Mon Apr 25 01:17:19 2011 +0200 1.3 @@ -36,27 +36,30 @@ 1.4 1.5 Install with 'make install' (PREFIX and DESTDIR are supported for packaging) 1.6 1.7 - 1.8 Coding notes 1.9 ------------ 1.10 1.11 - * To get the filename of a WebKitDownload 1.12 + * To get the filename of a WebKitDownload: 1.13 file = webkit_download_get_suggested_filename (download); 1.14 1.15 * Check mime-type before download (needs a callback function) 1.16 g_signal_connect (web_view, "mime-type-policy-decision-requested", 1.17 - G_CALLBACK (mime_type_decision_cb), webview); 1.18 + G_CALLBACK (mime_type_decision_cb), webview); 1.19 1.20 - * Get user config directory path in $HOME 1.21 + * Get user config directory path in $HOME: 1.22 config = g_strdup_printf ("%s/.config/tazweb", g_get_home_dir ()); 1.23 1.24 - * This code changes the browser user-agent 1.25 - static gchar *useragent = "TazWeb/1.0 (X11; Linux; U; en_US) AppleWebKit/531.2+"; 1.26 + * Change font of a widget: 1.27 + PangoFontDescription *font; 1.28 + font = pango_font_description_from_string("8"); 1.29 + gtk_widget_modify_font(urientry, font); 1.30 + pango_font_description_free(font); 1.31 + 1.32 + * Change size of a widget: 1.33 + gtk_widget_set_size_request(toolbar, 0, 28); 1.34 + 1.35 + * Append a string 1.36 + g_string_append(string, " - TazWeb"); 1.37 1.38 - /* User agent */ 1.39 - WebKitWebSettings *settings; 1.40 - settings = webkit_web_view_get_settings (webview); 1.41 - g_object_set (G_OBJECT (settings), "user-agent", useragent, NULL); 1.42 - 1.43 1.44 ================================================================================