From e8d5b4140940ede3d1b30c1784171b1331f84b02 Mon Sep 17 00:00:00 2001 From: joncruz Date: Sun, 5 Mar 2006 06:09:33 +0000 Subject: [PATCH] work-around for older gtkmm versions --- src/ui/previewholder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/previewholder.cpp b/src/ui/previewholder.cpp index f809ba44c..b89e68adc 100644 --- a/src/ui/previewholder.cpp +++ b/src/ui/previewholder.cpp @@ -206,7 +206,7 @@ void PreviewHolder::calcGridSize( const Gtk::Widget* thing, int itemCount, int& } Gtk::Requisition req2; - thing->size_request(req2); + const_cast(thing)->size_request(req2); int h2 = req.height / req2.height; int w2 = req.width / req2.width; -- 2.30.2