diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2004-08-15 19:10:08 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2004-08-15 19:10:08 +0000 |
commit | 79964fe982a027086163af04cf5ab45262a092e3 (patch) | |
tree | 11ff476633d30cc22ce1fce0893ab93aaf2adbd4 /gtk/gtk_window.c | |
parent | 22c97f6bb92c0fc7b1e4f258c7819747f76beeed (diff) | |
download | netsurf-79964fe982a027086163af04cf5ab45262a092e3.tar.gz netsurf-79964fe982a027086163af04cf5ab45262a092e3.tar.bz2 |
[project @ 2004-08-15 19:10:08 by jmb]
Make GTK build work again
svn path=/import/netsurf/; revision=1236
Diffstat (limited to 'gtk/gtk_window.c')
-rw-r--r-- | gtk/gtk_window.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gtk/gtk_window.c b/gtk/gtk_window.c index 2a70925b8..8e336df5f 100644 --- a/gtk/gtk_window.c +++ b/gtk/gtk_window.c @@ -16,6 +16,7 @@ #include "netsurf/desktop/gui.h" #include "netsurf/desktop/netsurf.h" #include "netsurf/render/box.h" +#include "netsurf/render/font.h" #include "netsurf/render/form.h" #include "netsurf/utils/messages.h" #include "netsurf/utils/utils.h" @@ -171,7 +172,7 @@ gboolean gui_window_expose_event(GtkWidget *widget, event->area.y, event->area.x + event->area.width, event->area.y + event->area.height, - 1.0); + 1.0, 0xFFFFFF); g_object_unref(current_gc); @@ -330,12 +331,13 @@ void gui_window_new_content(struct gui_window *g) } -void html_redraw(struct content *c, int x, int y, +bool html_redraw(struct content *c, int x, int y, int width, int height, int clip_x0, int clip_y0, int clip_x1, int clip_y1, - float scale) + float scale, unsigned long background_colour) { html_redraw_box(c, c->data.html.layout->children, x, y); + return true; } @@ -397,7 +399,7 @@ void html_redraw_box(struct content *content, struct box *box, if (box->object) { content_redraw(box->object, x + padding_left, y - padding_top, - width, height, x0, y0, x1, y1, 1.0); + width, height, x0, y0, x1, y1, 1.0, 0xFFFFFF); } else if (box->gadget && box->gadget->type == GADGET_CHECKBOX) { @@ -418,7 +420,8 @@ void html_redraw_box(struct content *content, struct box *box, context = gtk_widget_get_pango_context(current_widget); layout = pango_layout_new(context); - pango_layout_set_font_description(layout, box->font->id); + pango_layout_set_font_description(layout, + (const PangoFontDescription *)box->font->id); pango_layout_set_text(layout, box->text, box->length); gdk_draw_layout_with_colors(current_drawable, current_gc, |