diff options
author | Mike Engber <engber@src.gnome.org> | 2000-09-14 23:32:13 +0000 |
---|---|---|
committer | Mike Engber <engber@src.gnome.org> | 2000-09-14 23:32:13 +0000 |
commit | 3a658a4ff14bf340635bc5b4894d8f1782cbc363 (patch) | |
tree | 8a9638d881d0a8a15677ddd39cf644d9bf1da0db /libnautilus-extensions/nautilus-background-canvas-group.c | |
parent | 5462727ff7290ce0d7165d84b41cf5d0a8b51725 (diff) | |
download | nautilus-3a658a4ff14bf340635bc5b4894d8f1782cbc363.tar.gz |
Cleaned up fixme's (bugs 2549, 2550, 2548) while working on a related
Cleaned up fixme's (bugs 2549, 2550, 2548) while
working on a related background drawing bug.
* libnautilus-extensions/nautilus-background-canvas-group.c:
(nautilus_background_canvas_group_render):
* libnautilus-extensions/nautilus-background.c:
(nautilus_background_draw), (nautilus_background_draw_aa):
Diffstat (limited to 'libnautilus-extensions/nautilus-background-canvas-group.c')
-rw-r--r-- | libnautilus-extensions/nautilus-background-canvas-group.c | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/libnautilus-extensions/nautilus-background-canvas-group.c b/libnautilus-extensions/nautilus-background-canvas-group.c index de78b3371..5c40b2a98 100644 --- a/libnautilus-extensions/nautilus-background-canvas-group.c +++ b/libnautilus-extensions/nautilus-background-canvas-group.c @@ -116,29 +116,14 @@ nautilus_background_canvas_group_draw (GnomeCanvasItem *item, GdkDrawable *drawa static void nautilus_background_canvas_group_render (GnomeCanvasItem *item, GnomeCanvasBuf *buffer) { - NautilusBackground *background; - double left, top, bottom, right; - int entire_width, entire_height; + NautilusBackground *background; background = nautilus_get_widget_background (GTK_WIDGET (item->canvas)); if (background != NULL) { - /* FIXME bugzilla.eazel.com 2548: Don't we want to draw the background for the size of the window - * rather than the whole canvas? This won't work right for gradients, will it? - */ - gnome_canvas_get_scroll_region (GNOME_CANVAS(item->canvas), - &left, &top, &right, &bottom); - - /* FIXME bugzilla.eazel.com 2549: Icons can go past bounds? News to me! (Darin) - * This slop value of 24 must die. - */ - entire_width = right - left + 24; /* add some slop since icons can go past bounds */ - entire_height = bottom - top + 24; - - nautilus_background_draw_aa (background, buffer, entire_width, entire_height); - - /* FIXME bugzilla.eazel.com 2550: Shouldn't nautilus_background_draw_aa do these? */ - buffer->is_bg = FALSE; - buffer->is_buf = TRUE; + nautilus_background_draw_aa (background, + buffer, + GTK_WIDGET (item->canvas)->allocation.width, + GTK_WIDGET (item->canvas)->allocation.height); } /* Call through to the GnomeCanvasGroup implementation, which will draw all |