index b1ed7d3d23fd81537decc9e9656e17bd03b97116..edd429f0d10b2a40cd4a2dc7aefef865172eaf68 100644 (file)
static int
pick_current_item (SPCanvas *canvas, GdkEvent *event)
{
- int button_down;
+ int button_down = 0;
double x, y;
int retval = FALSE;
buf.rect.y0 = y0;
buf.rect.x1 = x1;
buf.rect.y1 = y1;
+ buf.visible_rect.x0 = draw_x1;
+ buf.visible_rect.y0 = draw_y1;
+ buf.visible_rect.x1 = draw_x2;
+ buf.visible_rect.y1 = draw_y2;
GdkColor *color = &widget->style->bg[GTK_STATE_NORMAL];
buf.bg_color = (((color->red & 0xff00) << 8)
| (color->green & 0xff00)