From 5b0ad574b68b21ceef4ea167163c0a10d1d13d71 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 21 Jan 2010 23:48:34 +0000 Subject: Fix compilation when BMP/PNG/GIF support is disabled. svn path=/trunk/netsurf/; revision=9858 --- gtk/gtk_scaffolding.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gtk') diff --git a/gtk/gtk_scaffolding.c b/gtk/gtk_scaffolding.c index 31d745e27..e36cac89b 100644 --- a/gtk/gtk_scaffolding.c +++ b/gtk/gtk_scaffolding.c @@ -1870,9 +1870,11 @@ void gui_window_set_icon(struct gui_window *_g, struct content *icon) GtkImage *iconImage = NULL; if (g->icoFav != NULL) g_object_unref(g->icoFav); +#ifdef WITH_BMP if ((icon != NULL) && (icon->type == CONTENT_ICO)) { nsico_set_bitmap_from_size(icon, 16, 16); } +#endif if ((icon != NULL) && (icon->bitmap != NULL)) { GdkPixbuf *pb = gtk_bitmap_get_primary(icon->bitmap); if ((pb != NULL) && (gdk_pixbuf_get_width(pb) > 0) && @@ -1905,9 +1907,12 @@ void gui_window_set_search_ico(struct content *ico) if (ico == NULL) ico = search_web_ico(); +#ifdef WITH_BMP if ((ico != NULL) && (ico->type == CONTENT_ICO)) { nsico_set_bitmap_from_size(ico, 20, 20); } +#endif + if ((ico != NULL) && (ico->bitmap != NULL)) { pbico = gtk_bitmap_get_primary(ico->bitmap); if ((pbico != NULL) && (gdk_pixbuf_get_width(pbico) > 0) && -- cgit v1.2.3