Re: [GTK3] get background color of a textview

On 12/08/13 18:48, Yann Leboulanger wrote:
On 08/12/2013 04:39 PM, "Andrés G. Aragoneses" wrote:
On 11/08/13 14:56, Yann Leboulanger wrote:
On 08/10/2013 11:42 AM, "Andrés G. Aragoneses" wrote:
On 31/07/13 22:09, Yann Leboulanger wrote:
Any idea how to get it?

Thanks in advance,

Here is a very simple test script that shows the problem. For me it
always prints:
<Gdk.Color(red=0.000000, green=0.000000, blue=0.000000,

Oh, I think I just realised what your problem might be: you are using
Gtk.StateType.NORMAL instead of Gtk.StateFlags.NORMAL.

Thanks for your answer. But using StateFlags gives me the same output

Well, your script works on my machine perfectly. So maybe you have
some old Gtk+ version with a bug? I'm using gtk+ 3.6.4 (the one that
comes by default in Ubuntu 13.04).

I have GTK 3.8.2, and I run the script from XFCE (that doesn't use GTK3).

Haven't ever used XFCE, and don't plan to, so I guess I cannot help you more, sorry :(

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