#include <gtk/gtk.h>
-#if GTK_CHECK_VERSION(2,10,0)
-
#include "print-preview.h"
if (preview->pixbuf == NULL)
{
- gint width = MIN (widget->allocation.width, 1024);
- gint height = MIN (widget->allocation.height, 1024);
+ GtkAllocation allocation;
+ gtk_widget_get_allocation ( widget, &allocation );
+ gint width = MIN (allocation.width, 1024);
+ gint height = MIN (allocation.height, 1024);
preview->pixbuf = get_thumbnail(drawable, width, height);
}
{
gtk_widget_queue_draw (GTK_WIDGET (preview->area));
}
-
-#endif