| 94 GBytes *bytes = g_bytes_new(data->content, data->contentlength); |
94 GBytes *bytes = g_bytes_new(data->content, data->contentlength); |
| 95 webkit_web_view_load_bytes(obj->webview, bytes, data->mimetype, data->encoding, data->uri); |
95 webkit_web_view_load_bytes(obj->webview, bytes, data->mimetype, data->encoding, data->uri); |
| 96 } |
96 } |
| 97 |
97 |
| 98 ui_webview_enable_javascript(g, data->javascript); |
98 ui_webview_enable_javascript(g, data->javascript); |
| 99 webkit_web_view_set_zoom_level(data->webview, data->zoom); |
99 ui_webview_set_zoom(g, data->zoom); |
| 100 |
100 |
| 101 return 0; |
101 return 0; |
| 102 } |
102 } |
| 103 |
103 |
| 104 void ui_webview_load_url(UiGeneric *g, const char *url) { |
104 void ui_webview_load_url(UiGeneric *g, const char *url) { |