diff options
| author | Thomas Holder <thomas@thomas-holder.de> | 2018-09-18 14:29:23 +0000 |
|---|---|---|
| committer | Thomas Holder <thomas@thomas-holder.de> | 2018-09-20 13:17:31 +0000 |
| commit | c37ae911dde4dffe81173c39d6da7d9163b143f7 (patch) | |
| tree | ff7a6dd9ba890a207d9ba51b3547dfaaa083f7e8 /src/ui/widget | |
| parent | Fix build (diff) | |
| download | inkscape-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.cpp | 5 | ||||
| -rw-r--r-- | src/ui/widget/labelled.h | 5 |
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; |
