diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2010-10-09 15:39:14 +0200 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2010-10-09 15:41:41 +0200 |
commit | 66cd22c908cc73954fad3e261d28ae6a05ea1bc2 (patch) | |
tree | 6b564d89b9756c980d072a24c4c7f4f4b86a22c6 /test/test.c | |
parent | 3bcd8464bcc9bdc44086275df8f6d1d29829bd8d (diff) | |
download | nautilus-66cd22c908cc73954fad3e261d28ae6a05ea1bc2.tar.gz |
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.
Diffstat (limited to 'test/test.c')
-rw-r--r-- | test/test.c | 33 |
1 files changed, 0 insertions, 33 deletions
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) { |