I am facing issue to set background color of selected text of GtkText widget, can anybody check it ?
I tried this way, but it didn’t work! —
static const char *css =
".one text.selection {"
" all: unset;"
" min-width: 100px;"
" min-height:20px;"
" background-color: blue;"
" outline-color: gray;"
"}";
GtkWidget *w = gtk_text_new ();
gtk_widget_add_css_class (w, "one");