RE: Gtk::Style painting help



Hi, I am trying to paint a shadow onto a Gtk.DrawingArea using the
following code:

---

LogoDrawingArea::LogoDrawingArea() : Gtk::DrawingArea()
{
    ...
}

bool LogoDrawingArea::_on_expose_event(GdkEventExpose* event)
{
    ...
    get_style()->paint_shadow(get_window(), get_state(), Gtk::SHADOW_IN,
       Gdk::Rectangle(0, 0, width, height),
       this, Glib::ustring::ustring("viewport"), 0, 0, width, height);
    ...
}
---

However when I do this, I get the following error:

---
ui/dialog/ocaldialogs.cpp: In member function ‘bool
Inkscape::UI::Dialog::OCAL::LogoDrawingArea::_on_expose_event(GdkEventExpose*)’:

ui/dialog/ocaldialogs.cpp:304: error: no matching function for call to
‘Gtk::Style::paint_shadow(Glib::RefPtr<Gdk::Window>, Gtk::StateType,
Gtk::ShadowType, Gdk::Rectangle,
Inkscape::UI::Dialog::OCAL::LogoDrawingArea* const, Glib::ustring, int,
int, int&, int&)’

/usr/include/gtkmm-2.4/gtkmm/style.h:533: note: candidates are: void
Gtk::Style::paint_shadow(const Glib::RefPtr<Gdk::Window>&,
Gtk::StateType, Gtk::ShadowType, const Gdk::Rectangle&, Gtk::Widget&,
const Glib::ustring&, int, int, int, int) const
---

I can't tell where I am going wrong, can anyone help?

-- 
Andrew


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]