summaryrefslogtreecommitdiffstats
path: root/src/ui/widget
diff options
context:
space:
mode:
authorThomas Holder <thomas@thomas-holder.de>2018-09-18 14:29:23 +0000
committerThomas Holder <thomas@thomas-holder.de>2018-09-20 13:17:31 +0000
commitc37ae911dde4dffe81173c39d6da7d9163b143f7 (patch)
treeff7a6dd9ba890a207d9ba51b3547dfaaa083f7e8 /src/ui/widget
parentFix build (diff)
downloadinkscape-c37ae911dde4dffe81173c39d6da7d9163b143f7.tar.gz
inkscape-c37ae911dde4dffe81173c39d6da7d9163b143f7.zip
fix transform dialog icons with inverted y-axis
Diffstat (limited to 'src/ui/widget')
-rw-r--r--src/ui/widget/labelled.cpp5
-rw-r--r--src/ui/widget/labelled.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/widget/labelled.cpp b/src/ui/widget/labelled.cpp
index 6ee2b752f..3480a2b6a 100644
--- a/src/ui/widget/labelled.cpp
+++ b/src/ui/widget/labelled.cpp
@@ -77,6 +77,11 @@ Labelled::setTooltipText(const Glib::ustring &tooltip)
_widget->set_tooltip_text(tooltip);
}
+void Labelled::flipIconVertically()
+{
+ _icon->set(_icon->get_pixbuf()->flip(false));
+}
+
bool Labelled::on_mnemonic_activate ( bool group_cycling )
{
return _widget->mnemonic_activate ( group_cycling );
diff --git a/src/ui/widget/labelled.h b/src/ui/widget/labelled.h
index 79dd271a0..0f59a4d68 100644
--- a/src/ui/widget/labelled.h
+++ b/src/ui/widget/labelled.h
@@ -57,6 +57,11 @@ public:
void setLabelText(const Glib::ustring &str);
void setTooltipText(const Glib::ustring &tooltip);
+ /**
+ * For matching flipped desktop y-direction
+ */
+ void flipIconVertically();
+
private:
bool on_mnemonic_activate( bool group_cycling ) override;