From 08a361d798dd4b44b1432103f4114473935da63f Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Sat, 24 Jul 2010 18:11:16 -0700 Subject: [PATCH] Adding preference to suppress packing of previews. --- src/preferences-skeleton.h | 4 +++- src/ui/dialog/icon-preview.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/preferences-skeleton.h b/src/preferences-skeleton.h index c73cae17f..283960b80 100644 --- a/src/preferences-skeleton.h +++ b/src/preferences-skeleton.h @@ -391,7 +391,9 @@ static char const preferences_skeleton[] = " \n" "\n" " \n" +" id=\"iconpreview\"\n" +" pack=\"1\"\n" +" selectionOnly=\"0\">\n" " \n" " getBool("/iconpreview/pack", true); + std::vector pref_sizes = prefs->getAllDirs("/iconpreview/sizes/default"); std::vector rawSizes; @@ -182,7 +184,7 @@ IconPreviewPanel::IconPreviewPanel() : align->add(*buttons[i]); int pad = 12; - if ((avail == 0) && (previous == 0)) { + if ( !pack || ( (avail == 0) && (previous == 0) ) ) { verts->pack_end(*align, Gtk::PACK_SHRINK); previous = sizes[i]; avail = sizes[i]; -- 2.30.2