summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/widget/color-slider.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/ui/widget/color-slider.cpp b/src/ui/widget/color-slider.cpp
index 2c330e9ca..31ae5fbdf 100644
--- a/src/ui/widget/color-slider.cpp
+++ b/src/ui/widget/color-slider.cpp
@@ -330,10 +330,11 @@ bool ColorSlider::on_draw(const Cairo::RefPtr<Cairo::Context>& cr) {
context->render_frame(cr, 0, 0,
allocation.get_width(), allocation.get_height());
#else
- style->paint_shadow(window, get_state(), Gtk::SHADOW_IN,
- Gdk::Rectangle(), *this, "colorslider",
- 0, 0,
- allocation.get_width(), allocation.get_height());
+ gtk_paint_shadow( style->gobj(), window->gobj(),
+ gtk_widget_get_state(gobj()), GTK_SHADOW_IN,
+ NULL, gobj(), "colorslider",
+ 0, 0,
+ allocation.get_width(), allocation.get_height());
#endif
}
@@ -425,10 +426,11 @@ bool ColorSlider::on_draw(const Cairo::RefPtr<Cairo::Context>& cr) {
context->render_frame(cr, 0, 0,
allocation.get_width(), allocation.get_height());
#else
- style->paint_shadow(window, get_state(), Gtk::SHADOW_IN,
- Gdk::Rectangle(), *this, "colorslider",
- 0, 0,
- allocation.get_width(), allocation.get_height());
+ gtk_paint_shadow( style->gobj(), window->gobj(),
+ gtk_widget_get_state(gobj()), GTK_SHADOW_IN,
+ NULL, gobj(), "colorslider",
+ 0, 0,
+ allocation.get_width(), allocation.get_height());
#endif
}