Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorBenjamin Berg <benjamin@sipsolutions.net>2007-10-01 19:39:34 (GMT)
committer Benjamin Berg <benjamin@sipsolutions.net>2007-10-01 19:39:34 (GMT)
commit8a6898ac48d267a08a9b6e1931bca70780794812 (patch)
tree4631d1f0b30e38a6b18c30759252582489bb7b6b /gtk
parent1fb24aabe84e97e9fda510cbcb0fa18ad081e940 (diff)
Fixed #3351 by increasing the top/bottom of GtkEntry::inner-border.
My quick tests suggest that we need 3 pixel more to the top, now we have 4 pixel to the top and 3 to the bottom, instead of 1 to the top, and 2 to the bottom. This is hopefully enough space for all characters.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/theme/gtkrc.em11
1 files changed, 6 insertions, 5 deletions
diff --git a/gtk/theme/gtkrc.em b/gtk/theme/gtkrc.em
index 27ca888..26b429f 100644
--- a/gtk/theme/gtkrc.em
+++ b/gtk/theme/gtkrc.em
@@ -458,17 +458,18 @@ style "panel"
style "entry"
{
color["focus_line"] = $text_field_grey
- ${ entry_thickness = my_ceil(0.3 * (subcell_size*3.0/2.0 - thickness) + thickness) }
+ ${ 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) }
# small inner border and a large x/ythickness for entries
# to reduce the number of hacks needed :-)
- xthickness = $(entry_thickness)
- ythickness = $(entry_thickness)
+ xthickness = $entry_xthickness
+ ythickness = $entry_ythickness
GtkWidget::focus-line-width = 0
# This tries to get a height of exactly 45 pixel for the entry.
- GtkEntry::inner-border = { $(max(subcell_size - entry_thickness, 0)), $(max(subcell_size - entry_thickness, 0)),
- $(max(my_floor((3*subcell_size - font_height - entry_thickness*2)/2.0),0)), $(max(my_ceil((3*subcell_size - font_height - entry_thickness*2)/2.0), 0)) }
+ GtkEntry::inner-border = { $(max(subcell_size - entry_xthickness, 0)), $(max(subcell_size - entry_xthickness, 0)),
+ $(max(my_ceil((3*subcell_size - font_height - entry_ythickness*2)/2.0),0)), $(max(my_floor((3*subcell_size - font_height - entry_ythickness*2)/2.0), 0)) }
}
style "button"