Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2012-03-14 19:44:20 (GMT)
committer Simon Schampijer <simon@schampijer.de>2012-03-14 20:28:57 (GMT)
commit6836c87df081e03378d76da5359011c4d2b45043 (patch)
tree7d540eb542e689f1fe36523216dc4ad07945f5d4
parent59ba1871b3060a5f6ae9cca1c38e952d2710b3e0 (diff)
Use border/padding properties in Gtk.Entry instead of inner-border property
The inner-border property has been removed from the Gtk.Entry [1]. We use the standard CSS border/padding properties instead. Basically I have re-ordered the formula, for the inner-border it was left, right, top, bottom [2] now it is clockwise top, right, bottom, left [3]. Signed-off-by: Simon Schampijer <simon@laptop.org> Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org> [1] http://git.gnome.org/browse/gtk+/commit/?id=d140411698ec71cc775625988c39e57b7d2cd11c [2] http://www.pygtk.org/docs/pygtk/class-gtkborder.html [3] http://www.w3schools.com/css/css_padding.asp
-rw-r--r--gtk3/theme/gtk-widgets.css.em4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em
index a5ee921..c5f8ee0 100644
--- a/gtk3/theme/gtk-widgets.css.em
+++ b/gtk3/theme/gtk-widgets.css.em
@@ -223,7 +223,7 @@ GtkToggleButton.button:active GtkLabel {
}
.entry {
- border-radius: $(2*subcell_size)px;
+ border-radius: $(2 * subcell_size)px;
border-width: $(thickness)px;
border-color: @selection_grey;
border-style: solid;
@@ -231,7 +231,7 @@ GtkToggleButton.button:active GtkLabel {
color: @black;
${ entry_ythickness = my_ceil(0.2 * (subcell_size*3.0/2.0 - thickness) + thickness) }
${ entry_xthickness = my_ceil(0.32 * (subcell_size*3.0/2.0 - thickness) + thickness) }
- -GtkEntry-inner-border: $(2 * max(subcell_size - entry_xthickness, 0)), $(2 * max(subcell_size - entry_xthickness, 0)), $(2 * max(my_ceil((3*subcell_size - font_height - entry_ythickness*2)/2.0),0)), $(2 * max(my_floor((3*subcell_size - font_height - entry_ythickness*2)/2.0), 0))
+ padding: $(2 * max(my_ceil((3*subcell_size - font_height - entry_ythickness*2)/2.0),0))px $(2 * max(subcell_size - entry_xthickness, 0))px $(2 * max(my_floor((3*subcell_size - font_height - entry_ythickness*2)/2.0), 0))px $(2 * max(subcell_size - entry_xthickness, 0))px;
}
.entry.progressbar {