Diff of /trunk/src/html.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 17 by harbaum, Mon Jun 29 08:24:41 2009 UTC revision 140 by harbaum, Thu Oct 22 14:02:43 2009 UTC
# Line 362  static const char *html_start = "<html>< Line 362  static const char *html_start = "<html><
362  static const char *html_end = "</body></html>";  static const char *html_end = "</body></html>";
363    
364  GtkWidget *html_view(appdata_t *appdata, char *text,  GtkWidget *html_view(appdata_t *appdata, char *text,
365                       gboolean is_html, gboolean scrollwin,                       html_mode_t mode, gboolean scrollwin,
366                       cache_t *cache, char *anchor) {                       cache_t *cache, char *anchor) {
367    GtkWidget *view;    GtkWidget *view;
368    
369    if(is_html) {    if(mode == HTML_HTML) {
370      http_context_t *context = g_new0(http_context_t, 1);      http_context_t *context = g_new0(http_context_t, 1);
371      context->appdata = appdata;      context->appdata = appdata;
372      context->cache = cache;      context->cache = cache;
# Line 453  GtkWidget *html_view(appdata_t *appdata, Line 453  GtkWidget *html_view(appdata_t *appdata,
453  #endif  #endif
454  #else  #else
455  #ifndef PANNABLE_HTML  #ifndef PANNABLE_HTML
456    if(is_html) {    if(mode == HTML_HTML) {
457        GtkWidget *scrolled_window = gtk_scrolled_window_new(NULL, NULL);        GtkWidget *scrolled_window = gtk_scrolled_window_new(NULL, NULL);
458        gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW (scrolled_window),        gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW (scrolled_window),
459                       GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);                       GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);

Legend:
Removed from v.17  
changed lines
  Added in v.140