Re: Drawing on gtk textview
- From: "Miroslav Rajcic" <rajcic sokrates hr>
- To: <gtk-app-devel-list gnome org>
- Cc: Soren Berg <berg soren gmail com>
- Subject: Re: Drawing on gtk textview
- Date: Mon, 20 Oct 2008 08:47:04 +0200
I had a same problem a while ago with expose drawing, and it turned out that
the problem was this:
to draw something in your handler, you must use "event->window" as a pointer
to the window that is being drawn, not "widget->window" or anything else.
Once I've made that change, my expose drawing started to work fine.
You can see an example of this within my Notecase project source code
(http://notecase.sourceforge.net/)
I hope this helps.
Regards,
Miroslav
----- Original Message -----
From: "Soren Berg" <berg soren gmail com>
To: <gtk-app-devel-list gnome org>
Sent: Friday, October 17, 2008 4:43 PM
Subject: Drawing on gtk textview
I am trying to draw on a gtk textview's gdk window. I have set the
textview
as app paintable before initialization and done the drawing in a callback
for the expose event of the textview as suggested
here<http://mail.gnome.org/archives/gtk-app-devel-list/2007-June/msg00060.html>(
http://mail.gnome.org/archives/gtk-app-devel-list/2007-June/msg00060.html)
but have not had any luck. Has this functionality been depreciated? Do I
need to use composited windows somehow? The previously linked discution
suggests that the OP got it working without them but he did not say how.
I would appricate any advice or information you could give me.
Thank you,
-Soren Berg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]