Re: simple widget to draw on ?



On Wed, 2008-03-05 at 09:10 +0100, Sven Neumann wrote:
> Hi,
> 
> On Tue, 2008-03-04 at 20:36 +0100, Sven Neumann wrote:
> 
> > Even if this is classified as a theme bug, it would still be nice to
> > provide a simple way to draw without introducing an extra output window.
> > If the patch attached to bug #519317 is accepted, GtkDrawingArea could
> > serve this purpose.
> 
> Xan Lopez added a comment to this bug-report asking that API should be
> added to get and set the NO_WINDOW mode like in GtkFixed. I don't think
> this is necessary as it would only duplicate GTK_WIDGET_SET_FLAGS(). But
> I would like to get another opinion on this...

GTK_WIDGET_SET_FLAGS is "protected" API; also there is no way a GUI
builder would know what widgets you could toggle into 
no-window mode, and no way to express "set the NO_WINDOW flag" in 
GtkBuilder. And no notification or handling of it when the widget is
already realized.

There's a reason GtkFixed and GtkEventBox have API. (Why they don't have
the *same* API, I don't know...)

- Owen

Attachment: signature.asc
Description: This is a digitally signed message part



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