Changing background of TextView makes selection invisible
- From: Kasper Peeters <kasper peeters phi-sci com>
- To: gtk-list gnome org
- Subject: Changing background of TextView makes selection invisible
- Date: Sat, 13 Jun 2015 11:03:08 +0100
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 screen = Gdk::Screen::get_default();
Gtk::StyleContext::add_provider_for_screen(screen,css,GTK_STYLE_PROVIDER_PRIORITY_USER);
This does make the background white, but it also makes the colour used
for selection highlight white. As a result, I can't see anymore what I
am selecting.
A different colour leads to the same result: the highlight colour
becomes the same as the background colour, and hence the selection
becomes invisible. The same also happens when using the
override_background_color(..) function of the widget.
Is this a bug? (this is with gtk-3.10.8). Or am I doing something wrong?
Thanks!
Cheers,
Kasper
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]