diff options
| author | Alex Valavanis <valavanisalex@gmail.com> | 2012-05-21 10:01:41 +0000 |
|---|---|---|
| committer | Alex Valavanis <valavanisalex@gmail.com> | 2012-05-21 10:01:41 +0000 |
| commit | a89dd0f5f45c3df19c3d6756fef83ab06f3d5356 (patch) | |
| tree | ee629d7f9aefd38bccf3e5092830d6ca81e1ab1d /src/ui/dialog/layers.cpp | |
| parent | Extended control resizing to node editing. Fixes half of bug #172059. (diff) | |
| download | inkscape-a89dd0f5f45c3df19c3d6756fef83ab06f3d5356.tar.gz inkscape-a89dd0f5f45c3df19c3d6756fef83ab06f3d5356.zip | |
More size-request GTK+ 3 fixes
(bzr r11391)
Diffstat (limited to 'src/ui/dialog/layers.cpp')
| -rw-r--r-- | src/ui/dialog/layers.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ui/dialog/layers.cpp b/src/ui/dialog/layers.cpp index 3bd047ebc..6fb41fcbf 100644 --- a/src/ui/dialog/layers.cpp +++ b/src/ui/dialog/layers.cpp @@ -626,7 +626,13 @@ LayersPanel::LayersPanel() : _scroller.add( _tree ); _scroller.set_policy( Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC ); _scroller.set_shadow_type(Gtk::SHADOW_IN); - Gtk:: Requisition sreq = _scroller.size_request(); + Gtk::Requisition sreq; +#if WITH_GTKMM_3_0 + Gtk::Requisition sreq_natural; + _scroller.get_preferred_size(sreq_natural, sreq); +#else + sreq = _scroller.size_request(); +#endif int minHeight = 70; if (sreq.height < minHeight) { // Set a min height to see the layers when used with Ubuntu liboverlay-scrollbar |
