diff options
| author | Tomasz Boczkowski <penginsbacon@gmail.com> | 2014-05-24 13:07:28 +0000 |
|---|---|---|
| committer | Tomasz Boczkowski <penginsbacon@gmail.com> | 2014-05-24 13:07:28 +0000 |
| commit | a87f50a6174b65b8db1d0a091d30a5de206f03df (patch) | |
| tree | 22a182162fcc2f8d6f74ff1de4d135c575502c07 /src | |
| parent | SPColorSlider c++-sification: ported mouse events (diff) | |
| download | inkscape-a87f50a6174b65b8db1d0a091d30a5de206f03df.tar.gz inkscape-a87f50a6174b65b8db1d0a091d30a5de206f03df.zip | |
SPColorSlider c++-sification: fixed drawing border
(bzr r13341.6.7)
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/widget/color-slider.cpp | 18 |
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 } |
