summaryrefslogtreecommitdiff
path: root/src/gui/widgets/widget2.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-20 01:15:01 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-20 13:55:43 +0300
commit230e3d909340a3fb501ab1e67ae95a86eb58e2aa (patch)
treedbfa9e9724f8836a02ffa1b49edf6f1e1f060851 /src/gui/widgets/widget2.h
parent79b4bbbe0ead006bec273c247eaa50c2fd585863 (diff)
downloadmv-230e3d909340a3fb501ab1e67ae95a86eb58e2aa.tar.gz
mv-230e3d909340a3fb501ab1e67ae95a86eb58e2aa.tar.bz2
mv-230e3d909340a3fb501ab1e67ae95a86eb58e2aa.tar.xz
mv-230e3d909340a3fb501ab1e67ae95a86eb58e2aa.zip
Add palette inheritance to shortcutcontainer class.
Diffstat (limited to 'src/gui/widgets/widget2.h')
-rw-r--r--src/gui/widgets/widget2.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/widgets/widget2.h b/src/gui/widgets/widget2.h
index 8a602be63..02107b3c1 100644
--- a/src/gui/widgets/widget2.h
+++ b/src/gui/widgets/widget2.h
@@ -56,10 +56,9 @@ class Widget2
return Palette::BLACK;
}
- void setPalette(int p)
+ void setWidget2(const Widget2 *const widget)
{
- if (p >= 1 && p <= THEME_PALETTES)
- mPalette = p;
+ mPalette = widget ? widget->mPalette : 1;
}
private: