Re: set custom entry background?

2015-11-16 Thread Liam R E Quin
On Mon, 16 Nov 2015 17:53:59 + Emmanuele Bassi wrote: [...] > .error-entry { background-color: red; } If you do this, watch that if the theme's foreground colour is red, the user will be screwed... Setting background-color without setting the text color (color: yellow) is usually a mistak

Re: set custom entry background?

2015-11-16 Thread Allin Cottrell
On Mon, 16 Nov 2015, Emmanuele Bassi wrote: Hi; On 15 November 2015 at 19:32, Allin Cottrell wrote: I'm trying to set a custom background for a GtkEntry (as a temporary thing, by way of an alert for invalid input). I can do that fine for gtk 2 using gtk_widget_modify_base(), but am struggling

Re: set custom entry background?

2015-11-16 Thread Allin Cottrell
On Mon, 16 Nov 2015, Stefan Salewski wrote: On Sun, 2015-11-15 at 19:30 -0500, Allin Cottrell wrote: But how can I "undo" this? (I mean, make it so that the background color for the selected state reverts to what it was before I messed with it, for subsequent selections.) That's trivial with th

Re: Get a list of object *names* from GtkBuilder

2015-11-16 Thread Emmanuele Bassi
Hi; On 16 November 2015 at 02:26, Daniel Kasak wrote: > Greetings all. > > I'd like to get a list of object names from a GtkBuilder object ( I'm > using Perl ). I know about > https://developer.gnome.org/gtk3/stable/GtkBuilder.html#gtk-builder-get-objects > - which returns a list of objects, but

Re: set custom entry background?

2015-11-16 Thread Emmanuele Bassi
Hi; On 15 November 2015 at 19:32, Allin Cottrell wrote: > I'm trying to set a custom background for a GtkEntry (as a temporary thing, > by way of an alert for invalid input). I can do that fine for gtk 2 using > gtk_widget_modify_base(), but am struggling with gtk 3. Use: gtk_style_context_ad

Re: set custom entry background?

2015-11-16 Thread Stefan Salewski
On Sun, 2015-11-15 at 19:30 -0500, Allin Cottrell wrote: > But how can I "undo" this? (I mean, make it so that the background > color for the selected state reverts to what it was before I messed > with it, for subsequent selections.) That's trivial with the old > APIs but I have no idea how it