summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 74b882c)
raw | patch | inline | side by side (parent: 74b882c)
author | joncruz <joncruz@users.sourceforge.net> | |
Sun, 5 Mar 2006 05:41:33 +0000 (05:41 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Sun, 5 Mar 2006 05:41:33 +0000 (05:41 +0000) |
src/ui/previewholder.cpp | patch | blob | history |
index c2bc133270f5e5e20664f4ac096a096a5a34eb62..f809ba44c0526423728eb77b9a04e5dd8c19df82 100644 (file)
--- a/src/ui/previewholder.cpp
+++ b/src/ui/previewholder.cpp
height = 1;
if ( _anchor == Gtk::ANCHOR_SOUTH || _anchor == Gtk::ANCHOR_NORTH ) {
- Gtk::Requisition req = _scroller->size_request();
+ Gtk::Requisition req;
+ _scroller->size_request(req);
int currW = _scroller->get_width();
if ( currW > req.width ) {
req.width = currW;
@@ -197,13 +198,15 @@ void PreviewHolder::calcGridSize( const Gtk::Widget* thing, int itemCount, int&
Gtk::HScrollbar* hs = dynamic_cast<Gtk::ScrolledWindow*>(_scroller)->get_hscrollbar();
if ( hs ) {
- Gtk::Requisition scrollReq = hs->size_request();
+ Gtk::Requisition scrollReq;
+ hs->size_request(scrollReq);
// the +8 is a temporary hack
req.height -= scrollReq.height + 8;
}
- Gtk::Requisition req2 = thing->size_request();
+ Gtk::Requisition req2;
+ thing->size_request(req2);
int h2 = req.height / req2.height;
int w2 = req.width / req2.width;