Re: Dev_GuiInspector

From: Date: Fri, 27 Jan 2006 18:33:59 +0000
Subject: Re: Dev_GuiInspector
References: 1 2 3 4 5  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6573@lists.php.net to get a copy of this message
Christian Weiske wrote:
Madeleine,
$newStyle =& new GtkStyle(); $newStyle->base[GTK_STATE_NORMAL] = $newBBColor; $entryFld->set_style($newStyle);
Weirdily, making a new GtkStyle works. But all the style information is lost then, and if you have a theme set, the widget will loose that style.
I don't know how to fix the theme stuff but have you tried copying the original style from the entry? $style = $entry->get_style(); $style = $style->copy(); $style->base[Gtk::STATE_NORMAL] = GdkColor::parse('#F00'); $entry->set_style($style); Scott

« previous php.gtk.general (#6573) next »