-#else
-#if HAVE_GDK_IMLIB
-static void image_viewer_load_file(ImageViewer *imageviewer, const gchar *imgfile)
-{
- GdkImlibImage *im;
- gint avail_width;
- gint avail_height;
- gint new_width;
- gint new_height;
-
- debug_print("image_viewer_show_mimepart\n");
-
- im = gdk_imlib_load_image(imgfile);
- if (!im) {
- g_warning("Can't load the image.");
- return;
- }
-
- if (imageviewer->resize_img) {
- avail_width = imageviewer->notebook->parent->allocation.width;
- avail_height = imageviewer->notebook->parent->allocation.height;
- if (avail_width > 8) avail_width -= 8;
- if (avail_height > 8) avail_height -= 8;
-
- image_viewer_get_resized_size(im->rgb_width, im->rgb_height,
- avail_width, avail_height,
- &new_width, &new_height);
- } else {
- new_width = im->rgb_width;
- new_height = im->rgb_height;
- }
-
- gdk_imlib_render(im, new_width, new_height);
-
- if (!imageviewer->image) {
- imageviewer->image = gtk_image_new_from_pixmap(gdk_imlib_move_image(im),
- gdk_imlib_move_mask(im));
-
- gtk_scrolled_window_add_with_viewport
- (GTK_SCROLLED_WINDOW(imageviewer->scrolledwin),
- imageviewer->image);
- } else
- gtk_image_set_from_pixmap(GTK_IMAGE(imageviewer->image),
- gdk_imlib_move_image(im),
- gdk_imlib_move_mask(im));
-
- gtk_widget_show(imageviewer->image);
-
- gdk_imlib_destroy_image(im);
-}
-#endif /* HAVE_GDK_IMLIB */