summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2016-03-22 14:26:07 +0000
committertavmjong-free <tavmjong@free.fr>2016-03-22 14:26:07 +0000
commit6fa580b554e03eb7e53593d10a2e97c5975ee3f8 (patch)
tree307f2b770ef3311e34459c846c5ad20a79e6f028 /src/ui
parentinkex.py code simplification (more compact if conditions, unreachable code) (diff)
parentAdd line-height unit selector to text toolbar. (diff)
downloadinkscape-6fa580b554e03eb7e53593d10a2e97c5975ee3f8.tar.gz
inkscape-6fa580b554e03eb7e53593d10a2e97c5975ee3f8.zip
More complete handling of units for 'line-height' in text toolbar.
(bzr r14735)
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/widget/preferences-widget.cpp4
-rw-r--r--src/ui/widget/unit-tracker.cpp10
-rw-r--r--src/ui/widget/unit-tracker.h1
3 files changed, 0 insertions, 15 deletions
diff --git a/src/ui/widget/preferences-widget.cpp b/src/ui/widget/preferences-widget.cpp
index e906762e3..d56506d62 100644
--- a/src/ui/widget/preferences-widget.cpp
+++ b/src/ui/widget/preferences-widget.cpp
@@ -468,12 +468,8 @@ ZoomCorrRuler::on_draw(const Cairo::RefPtr<Cairo::Context>& cr) {
Glib::ustring abbr = prefs->getString("/options/zoomcorrection/unit");
if (abbr == "cm") {
draw_marks(cr, 0.1, 10);
- } else if (abbr == "ft") {
- draw_marks(cr, 1/12.0, 12);
} else if (abbr == "in") {
draw_marks(cr, 0.25, 4);
- } else if (abbr == "m") {
- draw_marks(cr, 1/10.0, 10);
} else if (abbr == "mm") {
draw_marks(cr, 10, 10);
} else if (abbr == "pc") {
diff --git a/src/ui/widget/unit-tracker.cpp b/src/ui/widget/unit-tracker.cpp
index a1501c229..c6318db25 100644
--- a/src/ui/widget/unit-tracker.cpp
+++ b/src/ui/widget/unit-tracker.cpp
@@ -12,7 +12,6 @@
* Released under GNU GPL, read the file 'COPYING' for more information
*/
-#include "style-internal.h"
#include "unit-tracker.h"
#include "widgets/ege-select-one-action.h"
@@ -122,15 +121,6 @@ void UnitTracker::addUnit(Inkscape::Util::Unit const *u)
gtk_list_store_set(_store, &iter, COLUMN_STRING, u ? u->abbr.c_str() : "NULL", -1);
}
-void UnitTracker::prependUnit(Inkscape::Util::Unit const *u)
-{
- GtkTreeIter iter;
- gtk_list_store_prepend(_store, &iter);
- gtk_list_store_set(_store, &iter, COLUMN_STRING, u ? u->abbr.c_str() : "NULL", -1);
- /* Re-shuffle our default selection here (_active gets out of sync) */
- setActiveUnit(_activeUnit);
-}
-
void UnitTracker::setFullVal(GtkAdjustment *adj, gdouble val)
{
_priorValues[adj] = val;
diff --git a/src/ui/widget/unit-tracker.h b/src/ui/widget/unit-tracker.h
index 0fe5bda80..06245930e 100644
--- a/src/ui/widget/unit-tracker.h
+++ b/src/ui/widget/unit-tracker.h
@@ -42,7 +42,6 @@ public:
Inkscape::Util::Unit const * getActiveUnit() const;
void addUnit(Inkscape::Util::Unit const *u);
- void prependUnit(Inkscape::Util::Unit const *u);
void addAdjustment(GtkAdjustment *adj);
void setFullVal(GtkAdjustment *adj, gdouble val);