[gtk+] GtkCssProvider: use selected fg/bg for selected menu items in CSS.



commit b33d48a802c6259f649640e8d672e53ffc09f5cc
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Nov 22 21:43:44 2010 +0100

    GtkCssProvider: use selected fg/bg for selected menu items in CSS.

 gtk/gtkcssprovider.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 0b8036e..0097d9d 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -3559,6 +3559,12 @@ gtk_css_provider_get_default (void)
         "  border-style: outset;\n"
         "  border-width: 1;\n"
         "}\n"
+        "\n"
+        ".menu:hover,\n"
+        ".menubar:hover {\n"
+        "  background-color: @selected_bg_color;\n"
+        "  color: @selected_fg_color;\n"
+        "}\n"
         "\n";
 
       provider = gtk_css_provider_new ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]