summaryrefslogtreecommitdiff
path: root/gtk/gtkclist.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-11-23 23:55:19 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-11-23 23:55:19 +0000
commit46a8d6e80d8d735de2f89d49eaf6987acd906560 (patch)
tree700a8171cfdfd7347a1550113973eb82bb560c45 /gtk/gtkclist.c
parent1123956779445f285ab6b807cc7714141c47154b (diff)
downloadgdk-pixbuf-46a8d6e80d8d735de2f89d49eaf6987acd906560.tar.gz
Remove some strange arithmetic that was resulting in rows being drawn too
Fri Nov 23 18:49:53 2001 Owen Taylor <otaylor@redhat.com> * gtk/{gtkclist,gtkctree.c} (draw_row): Remove some strange arithmetic that was resulting in rows being drawn too low. (#65001, reported by Damon Chaplin)
Diffstat (limited to 'gtk/gtkclist.c')
-rw-r--r--gtk/gtkclist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkclist.c b/gtk/gtkclist.c
index 791bc9817..1e73ed5b6 100644
--- a/gtk/gtkclist.c
+++ b/gtk/gtkclist.c
@@ -5853,7 +5853,7 @@ draw_row (GtkCList *clist,
case GTK_CELL_TEXT:
if (layout)
{
- gint row_center_offset = 1.5 + (clist->row_height - logical_rect.height - 1) / 2;
+ gint row_center_offset = (clist->row_height - logical_rect.height - 1) / 2;
gdk_gc_set_clip_rectangle (fg_gc, &clip_rectangle);
gdk_draw_layout (clist->clist_window, fg_gc,