summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/panel.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2008-02-20 09:11:27 +0000
committerjoncruz <joncruz@users.sourceforge.net>2008-02-20 09:11:27 +0000
commitae099de0a892d06655ad7143c1443fec5ca517e2 (patch)
treeeaf460ba9619d9b843f95f2d0bae3b4d6b875cc9 /src/ui/widget/panel.cpp
parentfix Bug #191909 crash on lpe stitch sub-paths, also fix crash for bend path lpe (diff)
downloadinkscape-ae099de0a892d06655ad7143c1443fec5ca517e2.tar.gz
inkscape-ae099de0a892d06655ad7143c1443fec5ca517e2.zip
Decoupled swatch sizes from icon sizes
(bzr r4790)
Diffstat (limited to 'src/ui/widget/panel.cpp')
-rw-r--r--src/ui/widget/panel.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ui/widget/panel.cpp b/src/ui/widget/panel.cpp
index 0b6527a5a..f6d975778 100644
--- a/src/ui/widget/panel.cpp
+++ b/src/ui/widget/panel.cpp
@@ -93,7 +93,7 @@ void Panel::_init()
guint panel_size = 0;
if (_prefs_path) {
- panel_size = prefs_get_int_attribute_limited( _prefs_path, "panel_size", 1, 0, 10 );
+ panel_size = prefs_get_int_attribute_limited( _prefs_path, "panel_size", 1, 0, static_cast<long long>(PREVIEW_SIZE_HUGE) );
}
guint panel_mode = 0;
@@ -295,7 +295,7 @@ void Panel::restorePanelPrefs()
{
guint panel_size = 0;
if (_prefs_path) {
- panel_size = prefs_get_int_attribute_limited(_prefs_path, "panel_size", 1, 0, 10);
+ panel_size = prefs_get_int_attribute_limited(_prefs_path, "panel_size", 1, 0, static_cast<long long>(PREVIEW_SIZE_HUGE));
}
guint panel_mode = 0;
if (_prefs_path) {
@@ -335,27 +335,27 @@ void Panel::_bounceCall(int i, int j)
switch (j) {
case 0:
{
- _fillable->setStyle(Inkscape::ICON_SIZE_DECORATION, curr_type);
+ _fillable->setStyle(::PREVIEW_SIZE_TINY, curr_type);
}
break;
case 1:
{
- _fillable->setStyle(Inkscape::ICON_SIZE_MENU, curr_type);
+ _fillable->setStyle(::PREVIEW_SIZE_SMALL, curr_type);
}
break;
case 2:
{
- _fillable->setStyle(Inkscape::ICON_SIZE_SMALL_TOOLBAR, curr_type);
+ _fillable->setStyle(::PREVIEW_SIZE_MEDIUM, curr_type);
}
break;
case 3:
{
- _fillable->setStyle(Inkscape::ICON_SIZE_BUTTON, curr_type);
+ _fillable->setStyle(::PREVIEW_SIZE_BIG, curr_type);
}
break;
case 4:
{
- _fillable->setStyle(Inkscape::ICON_SIZE_DIALOG, curr_type);
+ _fillable->setStyle(::PREVIEW_SIZE_HUGE, curr_type);
}
break;
default:
@@ -368,7 +368,7 @@ void Panel::_bounceCall(int i, int j)
prefs_set_int_attribute (_prefs_path, "panel_mode", j);
}
if (_fillable) {
- Inkscape::IconSize curr_size = _fillable->getPreviewSize();
+ ::PreviewSize curr_size = _fillable->getPreviewSize();
switch (j) {
case 0:
{