Re: Changing background of TextView makes selection invisible

2015-06-14 Thread Bálint Réczey
2015-06-14 23:51 GMT+02:00 Kasper Peeters : >> Before you start following the page it is owth noting that >> gtk_widget_override_color(), which function is recommended here for >> you want to do > > No, that overrides the color of the text of the widget, not the > background color. > > There is '

Re: Changing background of TextView makes selection invisible

2015-06-14 Thread Kasper Peeters
> Before you start following the page it is owth noting that > gtk_widget_override_color(), which function is recommended here for > you want to do No, that overrides the color of the text of the widget, not the background color. There is 'gtk_override_background_color' (also deprecated since 3.1

Re: Changing background of TextView makes selection invisible

2015-06-14 Thread Yann Leboulanger
On 06/14/2015 11:33 PM, Bálint Réczey wrote: > Hi, > > 2015-06-13 18:34 GMT+02:00 Stefan Salewski : >> On Sat, 2015-06-13 at 11:03 +0100, Kasper Peeters wrote: >>> I am trying to make the background colour of all TextViews white, >> Have you followed this page: >> >> https://developer.gnome.org/gtk

Re: Changing background of TextView makes selection invisible

2015-06-14 Thread Bálint Réczey
Hi, 2015-06-13 18:34 GMT+02:00 Stefan Salewski : > On Sat, 2015-06-13 at 11:03 +0100, Kasper Peeters wrote: >> I am trying to make the background colour of all TextViews white, > > Have you followed this page: > > https://developer.gnome.org/gtk3/stable/TextWidget.html Before you start following t

Re: Changing background of TextView makes selection invisible

2015-06-13 Thread Stefan Salewski
On Sat, 2015-06-13 at 11:03 +0100, Kasper Peeters wrote: > I am trying to make the background colour of all TextViews white, Have you followed this page: https://developer.gnome.org/gtk3/stable/TextWidget.html ___ gtk-list mailing list gtk-list@gnome.

Changing background of TextView makes selection invisible

2015-06-13 Thread Kasper Peeters
I am trying to make the background colour of all TextViews white, using something along the lines of (this is gtkmm, but the problem is the same in pure gtk): Glib::ustring data = "GtkTextView { background: white; }"; auto css = Gtk::CssProvider::create(); css->load_from_data(data); auto s