From: John Darrington Date: Fri, 21 Nov 2008 10:31:34 +0000 (+0900) Subject: Avoid annoying double line at beginning of rows/columns X-Git-Tag: v0.7.1~126 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a760713a0ee9873d9b992be3aa8bdcdcdb0b963d;p=pspp-builds.git Avoid annoying double line at beginning of rows/columns --- diff --git a/lib/gtksheet/gtksheet.c b/lib/gtksheet/gtksheet.c index ad6d6165..0fda3a06 100644 --- a/lib/gtksheet/gtksheet.c +++ b/lib/gtksheet/gtksheet.c @@ -1,6 +1,3 @@ -#define GLIB_DISABLE_DEPRECATED 1 -#define GDK_DISABLE_DEPRECATED 1 -#define GTK_DISABLE_DEPRECATED 1 /* * Copyright (C) 2006, 2008 Free Software Foundation * @@ -59,6 +56,7 @@ #include "gtkextra-marshal.h" #include "gsheetmodel.h" #include +#include /* sheet flags */ enum @@ -426,14 +424,14 @@ rectangle_from_range (GtkSheet *sheet, const GtkSheetRange *range, g_return_val_if_fail (range, FALSE); r->x = g_sheet_column_start_pixel (sheet->column_geometry, range->col0); - r->x -= sheet->hadjustment->value; + r->x -= round (sheet->hadjustment->value); if ( sheet->row_titles_visible) r->x += sheet->row_title_area.width; r->y = g_sheet_row_start_pixel (sheet->row_geometry, range->row0); - r->y -= sheet->vadjustment->value; + r->y -= round (sheet->vadjustment->value); if ( sheet->column_titles_visible) r->y += sheet->column_title_area.height;