Re: gdk_gc_predraw error



On Thu, Aug 23, 2001 at 04:49:30PM +0200, Sven Neumann wrote : 
> Hi,
> 
> Markus Fischer <mfischer guru josefine at> writes:
> 
> > A GtkWindow is derived from GtkWidget which provides ->window .
> > ->window is always its associated GdkWindow (or its parent
> > GdkWindow in some cases). Your widget needs to be realize'd so
> > you can access its GdkWindow:
> > 
> > window_edit = gtk_window_new();
> > gtk_widget_realize(GTK_WIDGET(window_edit));
> > [...]
> > 
> > gdk_window_set_cursor(window_edit->window, ...
> 
> explicitely realizing the window is ugly, try:

Why?

I had the need for connect_after only ever when building widgets
on my own.

- Markus




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