summaryrefslogtreecommitdiffstats
path: root/src/ui/widget
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2006-04-09 05:49:41 +0000
committerjoncruz <joncruz@users.sourceforge.net>2006-04-09 05:49:41 +0000
commit427dff020d70f1397502bdf45476cb917c00a1fc (patch)
tree006985cb196f1b9017dbabe54f60e1cd0d86e626 /src/ui/widget
parentBefore the rev 10880 fix in xml/simple-node.cpp, text updating when dragging ... (diff)
downloadinkscape-427dff020d70f1397502bdf45476cb917c00a1fc.tar.gz
inkscape-427dff020d70f1397502bdf45476cb917c00a1fc.zip
Adding in new icon size
(bzr r462)
Diffstat (limited to 'src/ui/widget')
-rw-r--r--src/ui/widget/panel.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/ui/widget/panel.cpp b/src/ui/widget/panel.cpp
index 7ee919cb4..f00d736ae 100644
--- a/src/ui/widget/panel.cpp
+++ b/src/ui/widget/panel.cpp
@@ -18,6 +18,7 @@
#include <glibmm/i18n.h>
#include "panel.h"
+#include "../../icon-size.h"
#include "../../prefs-utils.h"
namespace Inkscape {
@@ -91,6 +92,7 @@ void Panel::init()
menu = new Gtk::Menu();
{
const char *things[] = {
+ N_("tiny"),
N_("small"),
N_("medium"),
N_("large"),
@@ -220,22 +222,27 @@ void Panel::bounceCall(int i, int j)
switch ( j ) {
case 0:
{
- _fillable->setStyle(Gtk::ICON_SIZE_MENU, currType);
+ _fillable->setStyle(Inkscape::ICON_SIZE_DECORATION, currType);
}
break;
case 1:
{
- _fillable->setStyle(Gtk::ICON_SIZE_SMALL_TOOLBAR, currType);
+ _fillable->setStyle(Inkscape::ICON_SIZE_MENU, currType);
}
break;
case 2:
{
- _fillable->setStyle(Gtk::ICON_SIZE_BUTTON, currType);
+ _fillable->setStyle(Inkscape::ICON_SIZE_SMALL_TOOLBAR, currType);
}
break;
case 3:
{
- _fillable->setStyle(Gtk::ICON_SIZE_DIALOG, currType);
+ _fillable->setStyle(Inkscape::ICON_SIZE_BUTTON, currType);
+ }
+ break;
+ case 4:
+ {
+ _fillable->setStyle(Inkscape::ICON_SIZE_DIALOG, currType);
}
break;
default:
@@ -246,7 +253,7 @@ void Panel::bounceCall(int i, int j)
case 1:
if (_prefs_path) prefs_set_int_attribute (_prefs_path, "panel_mode", j);
if ( _fillable ) {
- Gtk::BuiltinIconSize currSize = _fillable->getPreviewSize();
+ Inkscape::IconSize currSize = _fillable->getPreviewSize();
switch ( j ) {
case 0:
{