Re: GtkAllocation accessor
- From: Patrick Welche <prlw1 cam ac uk>
- To: Tadej Borov??ak <tadeboro gmail com>
- Cc: gtk-list gnome org
- Subject: Re: GtkAllocation accessor
- Date: Wed, 2 Jun 2010 13:49:32 +0100
On Wed, Jun 02, 2010 at 02:47:26PM +0200, Tadej Borov??ak wrote:
> Hi.
>
> > No it doesn't, which is why GtkAllocation is causing the problem with
> > GSEAL_ENABLE, viz:
> >
> > GdkWindow *gtk_widget_get_window(GtkWidget *widget);
> >
> > not
> >
> > void gtk_widget_get_window(GtkWidget *widget, GdkWindow *window);
> >
> > and not the other accessor functions.
>
> You missed the most important word in Emmanuele's response: structure.
> GdkWindow is not a structure like GtkAllocation. GdkWindow should be
> treated as opaque object that is manipulated only through provided
> API. gdk_color_parse() function would be similar case to
> gtk_widget_get_allocation() in this respect.
OK - you did see my constructor example, no? It would be cleaner the other
way, wouldn't it?
Cheers,
Patrick
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]