Re: Help replacing GtkDrawingArea with GtkLayout



On Sun, 2014-03-09 at 14:03 +0000, Richard Shann wrote:
From: Jo?l Kr?hemann <joel weedlight ch>
To: gtk-app-devel-list gnome org
Subject: Re: Help replacing GtkDrawingArea with GtkLayout
Message-ID: <1394327737 3369 3 camel debian>
Content-Type: text/plain; charset="us-ascii"

Hi,

Didn't before but may be check the following:

g_object_set(G_OBJECT(layout),
  "app-paintable\0", TRUE, 
  NULL);

Hmm, I hadn't noticed that property. It is presumably set ok since I can
draw and place widgets on the GtkLayout. It was the configure and scroll
events that I didn't receive.
BTW why do you have two NULL bytes at the end of the property name
(AFAIK only one is needed)?

Richard



Assumed you get annoyed by warnings, you can slightly disable it. It's
distribution depend what flags are per default on. For further reading:

http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html

regards
Joël




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