From 66cd22c908cc73954fad3e261d28ae6a05ea1bc2 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Sat, 9 Oct 2010 15:39:14 +0200 Subject: background: refactor code into NautilusDesktopBackground Remove the DirectoryBackground->EelBackground->GnomeBG abstraction and add a new object, NautilusDesktopBackground, which is a thin wrapper around GnomeBG, which takes care of handling background changes. --- test/test.c | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'test/test.c') diff --git a/test/test.c b/test/test.c index 76fd44ce3..5481044f5 100644 --- a/test/test.c +++ b/test/test.c @@ -48,39 +48,6 @@ test_window_new (const char *title, guint border_width) return window; } -void -test_gtk_widget_set_background_image (GtkWidget *widget, - const char *image_name) -{ - EelBackground *background; - char *uri; - - g_return_if_fail (GTK_IS_WIDGET (widget)); - g_return_if_fail (image_name != NULL); - - background = eel_get_widget_background (widget); - - uri = g_strdup_printf ("file://%s/%s", NAUTILUS_DATADIR, image_name); - - eel_background_set_image_uri (background, uri); - - g_free (uri); -} - -void -test_gtk_widget_set_background_color (GtkWidget *widget, - const char *color_spec) -{ - EelBackground *background; - - g_return_if_fail (GTK_IS_WIDGET (widget)); - g_return_if_fail (color_spec != NULL); - - background = eel_get_widget_background (widget); - - eel_background_set_color (background, color_spec); -} - GdkPixbuf * test_pixbuf_new_named (const char *name, float scale) { -- cgit v1.2.1