Re: "drag-leave" signal

2007-05-15 Thread Dominique Würtz
I think your drag target widgets need to create their own GdkWindows. GtkContainers are windowless and thus inherit their parent widget's window. Consequently, D'n'D can't distinguish between those nested containers. Regards, Dominique Johannes Schmid schrieb: > Hi! > > I have a question regar

Maximum height of line of text in Pango

2007-02-10 Thread Dominique Würtz
Hi, how can I efficiently obtain the minimum height in pixels which is guaranteed to cover a text line in a given font? Basically, I need something like (metrics.get_ascent() + metrics.get_descent()) / pango.SCALE where metrics is a pango.FontMetrics. Unfotunately, the operation given above t

Re: GObject docs improvements

2007-02-08 Thread Dominique Würtz
Great work so far! A point I miss in the tutorial is to mention the G_DEFINE_TYPE()-like macros which should be prefered over manually defining a _get_type() function whenever possible. As I see it this affects the following sections: Boilerplate code How To define Interfaces? How To define imple