1999-06-14 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (icon_is_in_area): Fixed off-by-one error in intersection computation. * gdesktop-icon.c (desktop_icon_reshape): Set the correct values for dicon->text_x and dicon->text_y.
Этот коммит содержится в:
родитель
386c434f73
Коммит
b24460e51c
@ -1,3 +1,11 @@
|
|||||||
|
1999-06-14 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||||
|
|
||||||
|
* gdesktop.c (icon_is_in_area): Fixed off-by-one error in
|
||||||
|
intersection computation.
|
||||||
|
|
||||||
|
* gdesktop-icon.c (desktop_icon_reshape): Set the correct values
|
||||||
|
for dicon->text_x and dicon->text_y.
|
||||||
|
|
||||||
1999-06-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
1999-06-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||||
|
|
||||||
* gwidget.c (x_update_input): Unblock the changed signal *after*
|
* gwidget.c (x_update_input): Unblock the changed signal *after*
|
||||||
|
@ -417,6 +417,8 @@ desktop_icon_reshape (DesktopIcon *dicon)
|
|||||||
dicon->icon_w = icon_width;
|
dicon->icon_w = icon_width;
|
||||||
dicon->icon_h = icon_height;
|
dicon->icon_h = icon_height;
|
||||||
|
|
||||||
|
gnome_canvas_item_get_bounds (dicon->text, &x1, &y1, &x2, &y2);
|
||||||
|
|
||||||
dicon->text_x = x1;
|
dicon->text_x = x1;
|
||||||
dicon->text_y = y1;
|
dicon->text_y = y1;
|
||||||
dicon->text_w = text_width;
|
dicon->text_w = text_width;
|
||||||
|
@ -2543,16 +2543,16 @@ icon_is_in_area (DesktopIconInfo *dii, int x1, int y1, int x2, int y2)
|
|||||||
if (x1 == x2 && y1 == y2)
|
if (x1 == x2 && y1 == y2)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (x1 < dicon->icon_x + dicon->icon_w - 1
|
if (x1 < dicon->icon_x + dicon->icon_w
|
||||||
&& x2 > dicon->icon_x
|
&& x2 >= dicon->icon_x
|
||||||
&& y1 < dicon->icon_y + dicon->icon_h - 1
|
&& y1 < dicon->icon_y + dicon->icon_h
|
||||||
&& y2 > dicon->icon_y)
|
&& y2 >= dicon->icon_y)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
if (x1 < dicon->text_x + dicon->text_w - 1
|
if (x1 < dicon->text_x + dicon->text_w
|
||||||
&& x2 > dicon->text_x
|
&& x2 >= dicon->text_x
|
||||||
&& y1 < dicon->text_y + dicon->text_h - 1
|
&& y1 < dicon->text_y + dicon->text_h
|
||||||
&& y2 > dicon->text_y)
|
&& y2 >= dicon->text_y)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@ -2600,7 +2600,8 @@ update_drag_selection (int x, int y)
|
|||||||
if (in_area) {
|
if (in_area) {
|
||||||
if (invert) {
|
if (invert) {
|
||||||
if (dii->selected == dii->tmp_selected) {
|
if (dii->selected == dii->tmp_selected) {
|
||||||
desktop_icon_select (DESKTOP_ICON (dii->dicon), !dii->selected);
|
desktop_icon_select (DESKTOP_ICON (dii->dicon),
|
||||||
|
!dii->selected);
|
||||||
dii->selected = !dii->selected;
|
dii->selected = !dii->selected;
|
||||||
}
|
}
|
||||||
} else if (additive) {
|
} else if (additive) {
|
||||||
@ -2967,5 +2968,3 @@ desktop_create_url (const char *filename, const char *title, const char *url, co
|
|||||||
gnome_metadata_set (filename, "icon-filename", strlen (icon) + 1, icon);
|
gnome_metadata_set (filename, "icon-filename", strlen (icon) + 1, icon);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user