Add a dumb script to make it easy to run the font test.

* test/Makefile.am:
	* test/font-test.sh:
	Add a dumb script to make it easy to run the font test.

	* test/test-nautilus-font.c: (main):
	Make the clipping test better; clip both vertically and
	horizontally.
This commit is contained in:
Ramiro Estrugo 2000-09-06 00:52:04 +00:00
parent 51f099caeb
commit 01e90c35c8
4 changed files with 20 additions and 1 deletions

View file

@ -1,3 +1,13 @@
2000-09-05 Ramiro Estrugo <ramiro@eazel.com>
* test/Makefile.am:
* test/font-test.sh:
Add a dumb script to make it easy to run the font test.
* test/test-nautilus-font.c: (main):
Make the clipping test better; clip both vertically and
horizontally.
2000-09-05 John Sullivan <sullivan@eazel.com>
Much context-menu-related cleanup and some bug fixes.

View file

@ -47,3 +47,8 @@ test_nautilus_mime_actions_set_SOURCES = test-nautilus-mime-actions-set.c
test_nautilus_password_dialog_SOURCES = test-nautilus-password-dialog.c
test_nautilus_preferences_SOURCES = test-nautilus-preferences.c
test_nautilus_widgets_SOURCES = test-nautilus-widgets.c
EXTRA_DIST =\
font-test.sh \
$(NULL)

4
test/font-test.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
make -s test-nautilus-font && rm -f font_test.png && ./test-nautilus-font && eog font_test.png

View file

@ -81,7 +81,7 @@ main (int argc, char* argv[])
blue_area.x = 300;
blue_area.y = 20;
blue_area.width = 100;
blue_area.height = 400;
blue_area.height = 30;
nautilus_gdk_pixbuf_fill_rectangle_with_color (pixbuf, &blue_area, NAUTILUS_RGBA_COLOR_PACK (0, 0, 255, 255));