diff options
| author | Jabiertxof <jabier.arraiza@marker.es> | 2018-11-09 12:01:12 +0000 |
|---|---|---|
| committer | Jabiertxof <jabier.arraiza@marker.es> | 2018-11-09 12:01:12 +0000 |
| commit | 2a57459e1a0d01debbafe0884eae15fb15ea3745 (patch) | |
| tree | 0d8101590e06bb6d09d58e71d8cfa7da20021cb9 /src/widgets/toolbox.cpp | |
| parent | Move icon-loader and provide a temporary fallback to render pixbuf (diff) | |
| download | inkscape-2a57459e1a0d01debbafe0884eae15fb15ea3745.tar.gz inkscape-2a57459e1a0d01debbafe0884eae15fb15ea3745.zip | |
Fix codding style
Diffstat (limited to 'src/widgets/toolbox.cpp')
| -rw-r--r-- | src/widgets/toolbox.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp index 41b237b29..0a7c4c79c 100644 --- a/src/widgets/toolbox.cpp +++ b/src/widgets/toolbox.cpp @@ -137,15 +137,12 @@ GtkIconSize ToolboxFactory::prefToSize( Glib::ustring const &path, int base ) { return sizeChoices[index]; } -Gtk::IconSize ToolboxFactory::prefToSize_mm( Glib::ustring const &path, int base ) { - static Gtk::IconSize sizeChoices[] = { - Gtk::ICON_SIZE_LARGE_TOOLBAR, - Gtk::ICON_SIZE_SMALL_TOOLBAR, - Gtk::ICON_SIZE_MENU, - Gtk::ICON_SIZE_DIALOG - }; +Gtk::IconSize ToolboxFactory::prefToSize_mm(Glib::ustring const &path, int base) +{ + static Gtk::IconSize sizeChoices[] = { Gtk::ICON_SIZE_LARGE_TOOLBAR, Gtk::ICON_SIZE_SMALL_TOOLBAR, + Gtk::ICON_SIZE_MENU, Gtk::ICON_SIZE_DIALOG }; Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - int index = prefs->getIntLimited( path, base, 0, G_N_ELEMENTS(sizeChoices) ); + int index = prefs->getIntLimited(path, base, 0, G_N_ELEMENTS(sizeChoices)); return sizeChoices[index]; } |
