[gnome-themes-standard] Add RTL spinbuttons



commit bed168a765cabeb8efacd6b9c941b354122cd999
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun Jul 8 19:40:43 2012 -0400

    Add RTL spinbuttons

 themes/Adwaita/gtk-2.0/Makefile.am                 |    4 +
 .../gtk-2.0/Spin/down-background-disable-rtl.png   |  Bin 0 -> 337 bytes
 .../Adwaita/gtk-2.0/Spin/down-background-rtl.png   |  Bin 0 -> 302 bytes
 .../gtk-2.0/Spin/up-background-disable-rtl.png     |  Bin 0 -> 314 bytes
 themes/Adwaita/gtk-2.0/Spin/up-background-rtl.png  |  Bin 0 -> 286 bytes
 themes/Adwaita/gtk-2.0/gtkrc                       |  112 +++++++++++++++++++-
 6 files changed, 114 insertions(+), 2 deletions(-)
---
diff --git a/themes/Adwaita/gtk-2.0/Makefile.am b/themes/Adwaita/gtk-2.0/Makefile.am
index 30b7cf7..47d9261 100644
--- a/themes/Adwaita/gtk-2.0/Makefile.am
+++ b/themes/Adwaita/gtk-2.0/Makefile.am
@@ -76,6 +76,10 @@ asset_data =
 	Spin/up-background.png \
 	Spin/down-background-disable.png \
 	Spin/up-background-disable.png \
+	Spin/down-background-rtl.png \
+	Spin/up-background-rtl.png \
+	Spin/down-background-disable-rtl.png \
+	Spin/up-background-disable-rtl.png \
 	Tabs/notebook-gap-horiz.png \
 	Tabs/notebook-gap-vert.png \
 	Tabs/notebook.png \
diff --git a/themes/Adwaita/gtk-2.0/Spin/down-background-disable-rtl.png b/themes/Adwaita/gtk-2.0/Spin/down-background-disable-rtl.png
new file mode 100644
index 0000000..d0051cb
Binary files /dev/null and b/themes/Adwaita/gtk-2.0/Spin/down-background-disable-rtl.png differ
diff --git a/themes/Adwaita/gtk-2.0/Spin/down-background-rtl.png b/themes/Adwaita/gtk-2.0/Spin/down-background-rtl.png
new file mode 100644
index 0000000..9fff5f4
Binary files /dev/null and b/themes/Adwaita/gtk-2.0/Spin/down-background-rtl.png differ
diff --git a/themes/Adwaita/gtk-2.0/Spin/up-background-disable-rtl.png b/themes/Adwaita/gtk-2.0/Spin/up-background-disable-rtl.png
new file mode 100644
index 0000000..19c0e48
Binary files /dev/null and b/themes/Adwaita/gtk-2.0/Spin/up-background-disable-rtl.png differ
diff --git a/themes/Adwaita/gtk-2.0/Spin/up-background-rtl.png b/themes/Adwaita/gtk-2.0/Spin/up-background-rtl.png
new file mode 100644
index 0000000..3064d02
Binary files /dev/null and b/themes/Adwaita/gtk-2.0/Spin/up-background-rtl.png differ
diff --git a/themes/Adwaita/gtk-2.0/gtkrc b/themes/Adwaita/gtk-2.0/gtkrc
index 0a8f7a0..a57a252 100755
--- a/themes/Adwaita/gtk-2.0/gtkrc
+++ b/themes/Adwaita/gtk-2.0/gtkrc
@@ -883,7 +883,7 @@ engine "pixmap"
       function			= ARROW
     }
 
-    # Spin-Up
+    # Spin-Up LTR
     image
     {
       function			= BOX
@@ -894,6 +894,7 @@ engine "pixmap"
       stretch			= TRUE
       overlay_file		= "Spin/arrow-up.png"
       overlay_stretch		= FALSE
+      direction                 = LTR
     }
     image
     {
@@ -905,6 +906,7 @@ engine "pixmap"
       stretch			= TRUE
       overlay_file		= "Spin/arrow-up-prelight.png"
       overlay_stretch		= FALSE
+      direction                 = LTR
     }
     image
     {
@@ -916,6 +918,7 @@ engine "pixmap"
       stretch			= TRUE
       overlay_file		= "Spin/arrow-up-disable.png"
       overlay_stretch		= FALSE
+      direction                 = LTR
     }
     image
     {
@@ -927,9 +930,60 @@ engine "pixmap"
       stretch			= TRUE
       overlay_file		= "Spin/arrow-up-prelight.png"
       overlay_stretch		= FALSE
+      direction                 = LTR
     }
 
-    # Spin-Down
+    # Spin-Up RTL
+    image
+    {
+      function			= BOX
+      state 			= NORMAL
+      detail			= "spinbutton_up"
+      file			= "Spin/up-background-rtl.png"
+      border			= { 5, 5, 5, 5 }
+      stretch			= TRUE
+      overlay_file		= "Spin/arrow-up.png"
+      overlay_stretch		= FALSE
+      direction                 = RTL
+    }
+    image
+    {
+      function			= BOX
+      state 			= PRELIGHT
+      detail			= "spinbutton_up"
+      file			= "Spin/up-background-rtl.png"
+      border			= { 5, 5, 5, 5 }
+      stretch			= TRUE
+      overlay_file		= "Spin/arrow-up-prelight.png"
+      overlay_stretch		= FALSE
+      direction                 = RTL
+    }
+    image
+    {
+      function			= BOX
+      state 			= INSENSITIVE
+      detail			= "spinbutton_up"
+      file			= "Spin/up-background-disable-rtl.png"
+      border			= { 5, 5, 5, 5 }
+      stretch			= TRUE
+      overlay_file		= "Spin/arrow-up-disable.png"
+      overlay_stretch		= FALSE
+      direction                 = RTL
+    }
+    image
+    {
+      function			= BOX
+      state 			= ACTIVE
+      detail			= "spinbutton_up"
+      file			= "Spin/up-background-rtl.png"
+      border			= { 5, 5, 5, 5 }
+      stretch			= TRUE
+      overlay_file		= "Spin/arrow-up-prelight.png"
+      overlay_stretch		= FALSE
+      direction                 = RTL
+    }
+
+    # Spin-Down LTR
     image
     {
       function			= BOX
@@ -940,6 +994,7 @@ engine "pixmap"
       stretch			= TRUE
       overlay_file		= "Spin/arrow-down.png"
       overlay_stretch		= FALSE
+      direction                 = LTR
     }
     image
     {
@@ -951,6 +1006,7 @@ engine "pixmap"
       stretch			= TRUE
       overlay_file		= "Spin/arrow-down-prelight.png"
       overlay_stretch		= FALSE
+      direction                 = LTR
     }
     image
     {
@@ -962,6 +1018,7 @@ engine "pixmap"
       stretch			= TRUE
       overlay_file		= "Spin/arrow-down-disable.png"
       overlay_stretch		= FALSE
+      direction                 = LTR
     }
     image
     {
@@ -973,6 +1030,57 @@ engine "pixmap"
       stretch			= TRUE
       overlay_file		= "Spin/arrow-down-prelight.png"
       overlay_stretch		= FALSE
+      direction                 = LTR
+    }
+
+    # Spin-Down RTL
+    image
+    {
+      function			= BOX
+      state 			= NORMAL
+      detail			= "spinbutton_down"
+      file			= "Spin/down-background-rtl.png"
+      border			= { 5, 5, 5, 5 }
+      stretch			= TRUE
+      overlay_file		= "Spin/arrow-down.png"
+      overlay_stretch		= FALSE
+      direction                 = RTL
+    }
+    image
+    {
+      function			= BOX
+      state 			= PRELIGHT
+      detail			= "spinbutton_down"
+      file			= "Spin/down-background-rtl.png"
+      border			= { 5, 5, 5, 5 }
+      stretch			= TRUE
+      overlay_file		= "Spin/arrow-down-prelight.png"
+      overlay_stretch		= FALSE
+      direction                 = RTL
+    }
+    image
+    {
+      function			= BOX
+      state 			= INSENSITIVE
+      detail			= "spinbutton_down"
+      file			= "Spin/down-background-disable-rtl.png"
+      border			= { 5, 5, 5, 5 }
+      stretch			= TRUE
+      overlay_file		= "Spin/arrow-down-disable.png"
+      overlay_stretch		= FALSE
+      direction                 = RTL
+    }
+    image
+    {
+      function			= BOX
+      state 			= ACTIVE
+      detail			= "spinbutton_down"
+      file			= "Spin/down-background-rtl.png"
+      border			= { 5, 5, 5, 5 }
+      stretch			= TRUE
+      overlay_file		= "Spin/arrow-down-prelight.png"
+      overlay_stretch		= FALSE
+      direction                 = RTL
     }
   }
 }



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