[Gtk-sharp-list] Change background of widget using theme colors

Mark A. Nicolosi mark.a.nicolosi at gmail.com
Sun Aug 3 14:28:00 EDT 2008


Sorry, meant to send this to the list, too.

---------- Forwarded message ----------
From: Mark A. Nicolosi <mark.a.nicolosi at gmail.com>
Date: Sun, Aug 3, 2008 at 1:27 PM
Subject: Re: [Gtk-sharp-list] Change background of widget using theme colors
To: Christian Hoff <christian_hoff at gmx.net>


On Sun, Aug 3, 2008 at 11:43 AM, Christian Hoff <christian_hoff at gmx.net>wrote:

> Sorry, I didn't think enough when I was writing... If it really is against
> the rules, you should be able to connect to the StyleSet event using the
> GLib.ConnectBefore attribute and modify the background there. But I think it
> should work since the style should have been set after you invoked
> base.OnStyleSet


Thanks Christian, I didn't think of connecting to the signal using
GLib.ConnectBefore. I'll give that a try. I'm not too hopeful because when I
overrode OnStyleSet, I tried calling the the base method before and after
calling ModifyBg() with no luck.

-- 
Mark A. Nicolosi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080803/194cc68d/attachment.html 


More information about the Gtk-sharp-list mailing list