Re: Dragging a TreeViewItem painted with custom CellRenderer
- From: Paul Davis <paul linuxaudiosystems com>
- To: Dirk Vanden Boer <dirk vdb gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Dragging a TreeViewItem painted with custom CellRenderer
- Date: Fri, 10 Apr 2009 08:50:08 -0400
On Fri, Apr 10, 2009 at 4:26 AM, Dirk Vanden Boer <dirk vdb gmail com> wrote:
>
> But isn't there an api call missing in Gtk::Style of Gtkmm that
> accepts a Gdk::Pixmap in stead of Gdk::Window, because painting the
> text on a pixmap using the widget style is possible using the c api.
>
> gtk_paint_layout (widget.get_style()->gobj(), window->gobj(),
> GTK_STATE_NORMAL, TRUE, const_cast<GdkRectangle*>(exposeArea.gobj()),
> widget.gobj(), "cellrendererplayqueue", cellArea.get_x() + (3 * xPad)
> + ALBUM_ART_WIDTH + xOffset, cellArea.get_y() + yPad, layout->gobj());
Its probably true that Gtk::Style's draw methods should probably take
Glib::RefPtr<Gdk::Drawable> not Glib::RefPtr<Gdk::Window>.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]