From: Jon A. Cruz Date: Sun, 25 Jul 2010 01:09:40 +0000 (-0700) Subject: Adding preference to suppress packing of previews. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a77e2e96ac0ad7bcafdf81958005ac2204a28d0e;p=inkscape.git Adding preference to suppress packing of previews. --- 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];