summaryrefslogtreecommitdiff
path: root/test/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.c')
-rw-r--r--test/test.c78
1 files changed, 39 insertions, 39 deletions
diff --git a/test/test.c b/test/test.c
index 103beec95..a62ca4d41 100644
--- a/test/test.c
+++ b/test/test.c
@@ -11,7 +11,7 @@ test_init (int *argc,
gdk_rgb_init ();
gnome_vfs_init ();
- nautilus_make_warnings_and_criticals_stop_in_debugger
+ eel_make_warnings_and_criticals_stop_in_debugger
(G_LOG_DOMAIN, g_log_domain_glib,
"Bonobo",
"Gdk",
@@ -73,17 +73,17 @@ void
test_gtk_widget_set_background_image (GtkWidget *widget,
const char *image_name)
{
- NautilusBackground *background;
+ EelBackground *background;
char *uri;
g_return_if_fail (GTK_IS_WIDGET (widget));
g_return_if_fail (image_name != NULL);
- background = nautilus_get_widget_background (widget);
+ background = eel_get_widget_background (widget);
uri = g_strdup_printf ("file://%s/%s", NAUTILUS_DATADIR, image_name);
- nautilus_background_set_image_uri (background, uri);
+ eel_background_set_image_uri (background, uri);
g_free (uri);
}
@@ -92,14 +92,14 @@ void
test_gtk_widget_set_background_color (GtkWidget *widget,
const char *color_spec)
{
- NautilusBackground *background;
+ EelBackground *background;
g_return_if_fail (GTK_IS_WIDGET (widget));
g_return_if_fail (color_spec != NULL);
- background = nautilus_get_widget_background (widget);
+ background = eel_get_widget_background (widget);
- nautilus_background_set_color (background, color_spec);
+ eel_background_set_color (background, color_spec);
}
GdkPixbuf *
@@ -149,9 +149,9 @@ test_image_new (const char *pixbuf_name,
GtkWidget *image;
if (with_background) {
- image = nautilus_image_new_with_background (NULL);
+ image = eel_image_new_with_background (NULL);
} else {
- image = nautilus_image_new (NULL);
+ image = eel_image_new (NULL);
}
if (pixbuf_name != NULL) {
@@ -160,7 +160,7 @@ test_image_new (const char *pixbuf_name,
pixbuf = test_pixbuf_new_named (pixbuf_name, scale);
if (pixbuf != NULL) {
- nautilus_image_set_pixbuf (NAUTILUS_IMAGE (image), pixbuf);
+ eel_image_set_pixbuf (EEL_IMAGE (image), pixbuf);
gdk_pixbuf_unref (pixbuf);
}
}
@@ -171,7 +171,7 @@ test_image_new (const char *pixbuf_name,
tile_pixbuf = test_pixbuf_new_named (tile_name, 1.0);
if (tile_pixbuf != NULL) {
- nautilus_image_set_tile_pixbuf (NAUTILUS_IMAGE (image), tile_pixbuf);
+ eel_image_set_tile_pixbuf (EEL_IMAGE (image), tile_pixbuf);
gdk_pixbuf_unref (tile_pixbuf);
}
}
@@ -192,15 +192,15 @@ test_label_new (const char *text,
}
if (with_background) {
- label = nautilus_label_new_with_background (text);
+ label = eel_label_new_with_background (text);
} else {
- label = nautilus_label_new (text);
+ label = eel_label_new (text);
}
if (num_sizes_larger < 0) {
- nautilus_label_make_smaller (NAUTILUS_LABEL (label), ABS (num_sizes_larger));
+ eel_label_make_smaller (EEL_LABEL (label), ABS (num_sizes_larger));
} else if (num_sizes_larger > 0) {
- nautilus_label_make_larger (NAUTILUS_LABEL (label), num_sizes_larger);
+ eel_label_make_larger (EEL_LABEL (label), num_sizes_larger);
}
if (tile_name != NULL) {
@@ -209,7 +209,7 @@ test_label_new (const char *text,
tile_pixbuf = test_pixbuf_new_named (tile_name, 1.0);
if (tile_pixbuf != NULL) {
- nautilus_label_set_tile_pixbuf (NAUTILUS_LABEL (label), tile_pixbuf);
+ eel_label_set_tile_pixbuf (EEL_LABEL (label), tile_pixbuf);
gdk_pixbuf_unref (tile_pixbuf);
}
}
@@ -219,86 +219,86 @@ test_label_new (const char *text,
/* Preferences hacks */
void
-test_text_caption_set_text_for_int_preferences (NautilusTextCaption *text_caption,
+test_text_caption_set_text_for_int_preferences (EelTextCaption *text_caption,
const char *name)
{
int int_value;
char *text;
- g_return_if_fail (NAUTILUS_IS_TEXT_CAPTION (text_caption));
+ g_return_if_fail (EEL_IS_TEXT_CAPTION (text_caption));
g_return_if_fail (name != NULL);
int_value = nautilus_preferences_get_integer (name);
text = g_strdup_printf ("%d", int_value);
- nautilus_text_caption_set_text (NAUTILUS_TEXT_CAPTION (text_caption), text);
+ eel_text_caption_set_text (EEL_TEXT_CAPTION (text_caption), text);
g_free (text);
}
void
-test_text_caption_set_text_for_string_preferences (NautilusTextCaption *text_caption,
+test_text_caption_set_text_for_string_preferences (EelTextCaption *text_caption,
const char *name)
{
char *text;
- g_return_if_fail (NAUTILUS_IS_TEXT_CAPTION (text_caption));
+ g_return_if_fail (EEL_IS_TEXT_CAPTION (text_caption));
g_return_if_fail (name != NULL);
text = nautilus_preferences_get (name);
- nautilus_text_caption_set_text (NAUTILUS_TEXT_CAPTION (text_caption), text);
+ eel_text_caption_set_text (EEL_TEXT_CAPTION (text_caption), text);
g_free (text);
}
void
-test_text_caption_set_text_for_default_int_preferences (NautilusTextCaption *text_caption,
+test_text_caption_set_text_for_default_int_preferences (EelTextCaption *text_caption,
const char *name)
{
int int_value;
char *text;
- g_return_if_fail (NAUTILUS_IS_TEXT_CAPTION (text_caption));
+ g_return_if_fail (EEL_IS_TEXT_CAPTION (text_caption));
g_return_if_fail (name != NULL);
int_value = 0;
text = g_strdup_printf ("%d", int_value);
- nautilus_text_caption_set_text (NAUTILUS_TEXT_CAPTION (text_caption), text);
+ eel_text_caption_set_text (EEL_TEXT_CAPTION (text_caption), text);
g_free (text);
}
void
-test_text_caption_set_text_for_default_string_preferences (NautilusTextCaption *text_caption,
+test_text_caption_set_text_for_default_string_preferences (EelTextCaption *text_caption,
const char *name)
{
char *text;
- g_return_if_fail (NAUTILUS_IS_TEXT_CAPTION (text_caption));
+ g_return_if_fail (EEL_IS_TEXT_CAPTION (text_caption));
g_return_if_fail (name != NULL);
text = g_strdup ("");
- nautilus_text_caption_set_text (NAUTILUS_TEXT_CAPTION (text_caption), text);
+ eel_text_caption_set_text (EEL_TEXT_CAPTION (text_caption), text);
g_free (text);
}
int
-test_text_caption_get_text_as_int (const NautilusTextCaption *text_caption)
+test_text_caption_get_text_as_int (const EelTextCaption *text_caption)
{
int result = 0;
char *text;
- g_return_val_if_fail (NAUTILUS_IS_TEXT_CAPTION (text_caption), 0);
+ g_return_val_if_fail (EEL_IS_TEXT_CAPTION (text_caption), 0);
- text = nautilus_text_caption_get_text (text_caption);
+ text = eel_text_caption_get_text (text_caption);
- nautilus_eat_str_to_int (text, &result);
+ eel_eat_str_to_int (text, &result);
return result;
}
@@ -328,19 +328,19 @@ test_pixbuf_draw_rectangle_tiled (GdkPixbuf *pixbuf,
ArtIRect area;
GdkPixbuf *tile_pixbuf;
- g_return_if_fail (nautilus_gdk_pixbuf_is_valid (pixbuf));
+ g_return_if_fail (eel_gdk_pixbuf_is_valid (pixbuf));
g_return_if_fail (tile_name != NULL);
- g_return_if_fail (opacity > NAUTILUS_OPACITY_FULLY_TRANSPARENT);
- g_return_if_fail (opacity <= NAUTILUS_OPACITY_FULLY_OPAQUE);
+ g_return_if_fail (opacity > EEL_OPACITY_FULLY_TRANSPARENT);
+ g_return_if_fail (opacity <= EEL_OPACITY_FULLY_OPAQUE);
tile_pixbuf = test_pixbuf_new_named (tile_name, 1.0);
g_return_if_fail (tile_pixbuf != NULL);
if (x0 == -1 && y0 == -1 && x1 == -1 && y1 == -1) {
- NautilusDimensions dimensions;
- dimensions = nautilus_gdk_pixbuf_get_dimensions (pixbuf);
- area = nautilus_art_irect_assign_dimensions (0, 0, &dimensions);
+ EelDimensions dimensions;
+ dimensions = eel_gdk_pixbuf_get_dimensions (pixbuf);
+ area = eel_art_irect_assign_dimensions (0, 0, &dimensions);
} else {
g_return_if_fail (x0 >= 0);
g_return_if_fail (y0 >= 0);
@@ -353,7 +353,7 @@ test_pixbuf_draw_rectangle_tiled (GdkPixbuf *pixbuf,
area.y1 = y1;
}
- nautilus_gdk_pixbuf_draw_to_pixbuf_tiled (tile_pixbuf,
+ eel_gdk_pixbuf_draw_to_pixbuf_tiled (tile_pixbuf,
pixbuf,
&area,
gdk_pixbuf_get_width (tile_pixbuf),