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 | |
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')
-rw-r--r-- | test/Makefile.am | 3 | ||||
-rw-r--r-- | test/test.c | 33 |
2 files changed, 0 insertions, 36 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index 50f967538..af4780c2b 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -18,7 +18,6 @@ noinst_PROGRAMS =\ test-nautilus-search-engine \ test-nautilus-directory-async \ test-nautilus-copy \ - test-eel-background \ test-eel-editable-label \ $(NULL) @@ -28,8 +27,6 @@ test_nautilus_search_engine_SOURCES = test-nautilus-search-engine.c test_nautilus_directory_async_SOURCES = test-nautilus-directory-async.c -test_eel_background_SOURCES = test-eel-background.c - EXTRA_DIST = \ test.h \ $(NULL) 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) { |