diff options
author | Darin Adler <darin@src.gnome.org> | 2000-01-12 00:08:20 +0000 |
---|---|---|
committer | Darin Adler <darin@src.gnome.org> | 2000-01-12 00:08:20 +0000 |
commit | 32f075751e132d9789971506c93740b350799788 (patch) | |
tree | 20a6f38f7cb560a741a07f702e81cbae69341a36 /libnautilus-extensions/nautilus-background-canvas-group.c | |
parent | 8c92ececd0cc244f64c3c5b3857ac02a3df754a4 (diff) | |
download | nautilus-32f075751e132d9789971506c93740b350799788.tar.gz |
Made the index panel use NautilusBackground.
Diffstat (limited to 'libnautilus-extensions/nautilus-background-canvas-group.c')
-rw-r--r-- | libnautilus-extensions/nautilus-background-canvas-group.c | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/libnautilus-extensions/nautilus-background-canvas-group.c b/libnautilus-extensions/nautilus-background-canvas-group.c index d3cef3e2c..9dd8d70c6 100644 --- a/libnautilus-extensions/nautilus-background-canvas-group.c +++ b/libnautilus-extensions/nautilus-background-canvas-group.c @@ -84,8 +84,7 @@ nautilus_background_canvas_group_draw (GnomeCanvasItem *item, GdkDrawable *drawa NautilusBackground *background; /* Draw the background. */ - background = nautilus_background_canvas_group_get_background - (NAUTILUS_BACKGROUND_CANVAS_GROUP (item)); + background = nautilus_get_widget_background(GTK_WIDGET (item->canvas)); if (background != NULL) { GdkGC *gc; GdkColormap *colormap; @@ -124,31 +123,3 @@ nautilus_background_canvas_group_draw (GnomeCanvasItem *item, GdkDrawable *drawa drawable_corner_x, drawable_corner_y, drawable_width, drawable_height)); } - -NautilusBackground * -nautilus_background_canvas_group_get_background (NautilusBackgroundCanvasGroup *canvas_group) -{ - gpointer data; - - data = gtk_object_get_data (GTK_OBJECT (canvas_group), "nautilus_background"); - g_assert (data == NULL || NAUTILUS_IS_BACKGROUND (data)); - return data; -} - -void -nautilus_background_canvas_group_set_background (NautilusBackgroundCanvasGroup *canvas_group, - NautilusBackground *background) -{ - NautilusBackground *old_background; - - g_return_if_fail (NAUTILUS_IS_BACKGROUND_CANVAS_GROUP (canvas_group)); - g_return_if_fail (background == NULL || NAUTILUS_IS_BACKGROUND (background)); - - old_background = nautilus_background_canvas_group_get_background (canvas_group); - gtk_object_set_data (GTK_OBJECT (canvas_group), "nautilus_background", background); - - if (background != NULL) - gtk_object_ref (GTK_OBJECT (background)); - if (old_background != NULL) - gtk_object_unref (GTK_OBJECT (old_background)); -} |