On Fri, 2012-07-27 at 20:39 +0100, Nate Donmez wrote:

> I am trying to make my button green. Can someone please tell me what
> am I doing wrong ?

Nothing, so far as I can tell.

I ran your code, and tried

      * adding the overrideBackground() call to the parent Window
        [worked to set the background outside the Button, but didn't
        change the button background] and
      * extracting the Button's child Label and setting the background
        there [did not work].
      * I even tried adding an EventBox in between the Label and the
        Button [that didn't work either].

Not sure why it isn't doing what you think it should; I would have
expected it to. I'm sorta guessing that it is a themeing issue, but why
would button's drawing logic be so hard wired like this? like I said, I
should have thought it would work.

At this point I'd suggest coming to #java-gnome and then we can go to
#gtk+ together and see if we can find someone who knows what's up. Or
feel free to send an email to gtk-list directly if you like.

AfC
Sydney



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
java-gnome-developer mailing list
java-gnome-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/java-gnome-developer

Reply via email to