[gnome-themes-standard] entry: fix active state for GtkEntry



commit 4930ef7fd78558385b259d1301763c3469ba48e5
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Jun 25 20:48:02 2012 -0400

    entry: fix active state for GtkEntry

 themes/Adwaita/gtk-2.0/Entry/entry-active.png |  Bin 0 -> 3139 bytes
 themes/Adwaita/gtk-2.0/Makefile.am            |    1 +
 themes/Adwaita/gtk-2.0/gtkrc                  |   15 +++++++++++++++
 3 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/themes/Adwaita/gtk-2.0/Entry/entry-active.png b/themes/Adwaita/gtk-2.0/Entry/entry-active.png
new file mode 100644
index 0000000..2805031
Binary files /dev/null and b/themes/Adwaita/gtk-2.0/Entry/entry-active.png differ
diff --git a/themes/Adwaita/gtk-2.0/Makefile.am b/themes/Adwaita/gtk-2.0/Makefile.am
index 27d6f63..770a8fc 100644
--- a/themes/Adwaita/gtk-2.0/Makefile.am
+++ b/themes/Adwaita/gtk-2.0/Makefile.am
@@ -31,6 +31,7 @@ asset_data =
 	Check-Radio/option1.png \
 	Check-Radio/option2.png \
 	Entry/entry.png \
+	Entry/entry-active.png \
 	Expanders/ani.png \
 	Expanders/minus.png \
 	Expanders/plus.png \
diff --git a/themes/Adwaita/gtk-2.0/gtkrc b/themes/Adwaita/gtk-2.0/gtkrc
index bcdae18..a8125df 100755
--- a/themes/Adwaita/gtk-2.0/gtkrc
+++ b/themes/Adwaita/gtk-2.0/gtkrc
@@ -26,6 +26,8 @@ style "default"
 	GtkButton::default-border	= { 0, 0, 0, 0 }
 	GtkButton::default-outside_border	= { 0, 0, 0, 0 }
 
+        GtkEntry::state-hint            = 1
+
 	GtkScrollbar::trough-border	= 4
 	GtkRange::trough-border		= 0
 	GtkRange::slider-width		= 7
@@ -848,6 +850,7 @@ style "entry"
 	xthickness	= 3
 	ythickness   	= 3
 
+        base[ACTIVE] = @base_color
 
 	engine "pixmap"
 	{
@@ -855,11 +858,21 @@ style "entry"
 	{
 		function		= SHADOW
 		detail			= "entry"
+                state                   = NORMAL
 		shadow			= IN
 		file			= "Entry/entry.png"
 		border			= { 4,4,4,4 }
 		stretch			= TRUE
 	}
+        image
+        {
+		function		= SHADOW
+		detail			= "entry"
+                state                   = ACTIVE
+		file			= "Entry/entry-active.png"
+		border			= { 4,4,4,4 }
+		stretch			= TRUE
+        }
     }
 }
 
@@ -869,6 +882,8 @@ style "spinbutton"	= "default"
 	ythickness	= 3
 	GtkWidget::interior_focus	= 1
 
+        base[ACTIVE] = @base_color
+
 engine "pixmap"
   {
     image



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