comparison src/pan-view.c @ 1000:4fe8f9656107

For the sake of consistency, use glib basic types everywhere.
author zas_
date Tue, 26 Aug 2008 22:22:51 +0000
parents 1698baa37871
children 3096a47232ec
comparison
equal deleted inserted replaced
999:bbed8e9a5d33 1000:4fe8f9656107
2028 gint rx, ry; 2028 gint rx, ry;
2029 2029
2030 rx = ry = 0; 2030 rx = ry = 0;
2031 if (pr->scale) 2031 if (pr->scale)
2032 { 2032 {
2033 rx = (double)(pr->x_scroll + event->x - pr->x_offset) / pr->scale; 2033 rx = (gdouble)(pr->x_scroll + event->x - pr->x_offset) / pr->scale;
2034 ry = (double)(pr->y_scroll + event->y - pr->y_offset) / pr->scale; 2034 ry = (gdouble)(pr->y_scroll + event->y - pr->y_offset) / pr->scale;
2035 } 2035 }
2036 2036
2037 pi = pan_item_find_by_coord(pw, PAN_ITEM_BOX, rx, ry, "info"); 2037 pi = pan_item_find_by_coord(pw, PAN_ITEM_BOX, rx, ry, "info");
2038 if (pi && event->button == MOUSE_BUTTON_LEFT) 2038 if (pi && event->button == MOUSE_BUTTON_LEFT)
2039 { 2039 {