Removed property widget tests.

2002-11-05  Dave Camp  <dave@ximian.com>

	* test/Makefile.am:
	* test/test.c:
	* test/test.h: Removed property widget tests.
This commit is contained in:
Dave Camp 2002-11-06 01:32:10 +00:00 committed by Dave Camp
parent c0939bb808
commit f8b8fe558a
5 changed files with 7 additions and 103 deletions

View file

@ -1,3 +1,9 @@
2002-11-05 Dave Camp <dave@ximian.com>
* test/Makefile.am:
* test/test.c:
* test/test.h: Removed property widget tests.
2002-11-05 James Willcox <jwillcox@gnome.org>
* libnautilus-private/Makefile.am:

View file

@ -51,6 +51,7 @@ icons/tahoe/tahoe.xml
libbackground/preview-file-selection.c
libnautilus-private/filesystem-attributes.xml
libnautilus-private/eggtreemultidnd.c
libnautilus-private/egg-recent-vfs-utils.c
libnautilus-private/egg-screen-help.c
libnautilus-private/nautilus-authn-manager.c
libnautilus-private/nautilus-customization-data.c
@ -81,7 +82,6 @@ libnautilus/nautilus-clipboard.c
nautilus.desktop.in
nautilus-file-management-properties.desktop.in
src/Nautilus_shell.server.in
src/file-manager/egg-recent-vfs-utils.c
src/file-manager/fm-desktop-icon-view.c
src/file-manager/fm-directory-view.c
src/file-manager/fm-error-reporting.c

View file

@ -18,14 +18,12 @@ noinst_PROGRAMS =\
test-nautilus-mime-actions \
test-nautilus-mime-actions-set \
test-nautilus-preferences-change \
test-nautilus-preferences-display \
test-nautilus-wrap-table \
$(NULL)
test_nautilus_mime_actions_SOURCES = test-nautilus-mime-actions.c test.c
test_nautilus_mime_actions_set_SOURCES = test-nautilus-mime-actions-set.c test.c
test_nautilus_preferences_change_SOURCES = test-nautilus-preferences-change.c test.c
test_nautilus_preferences_display_SOURCES = test-nautilus-preferences-display.c test.c
test_nautilus_wrap_table_SOURCES = test-nautilus-wrap-table.c test.c
EXTRA_DIST = \

View file

@ -139,94 +139,6 @@ test_label_new (const char *text,
return label;
}
/* Preferences hacks */
void
test_text_caption_set_text_for_int_preferences (EelTextCaption *text_caption,
const char *name)
{
int int_value;
char *text;
g_return_if_fail (EEL_IS_TEXT_CAPTION (text_caption));
g_return_if_fail (name != NULL);
int_value = eel_preferences_get_integer (name);
text = g_strdup_printf ("%d", int_value);
eel_text_caption_set_text (EEL_TEXT_CAPTION (text_caption), text);
g_free (text);
}
void
test_text_caption_set_text_for_string_preferences (EelTextCaption *text_caption,
const char *name)
{
char *text;
g_return_if_fail (EEL_IS_TEXT_CAPTION (text_caption));
g_return_if_fail (name != NULL);
text = eel_preferences_get (name);
eel_text_caption_set_text (EEL_TEXT_CAPTION (text_caption), text);
g_free (text);
}
void
test_text_caption_set_text_for_default_int_preferences (EelTextCaption *text_caption,
const char *name)
{
int int_value;
char *text;
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);
eel_text_caption_set_text (EEL_TEXT_CAPTION (text_caption), text);
g_free (text);
}
void
test_text_caption_set_text_for_default_string_preferences (EelTextCaption *text_caption,
const char *name)
{
char *text;
g_return_if_fail (EEL_IS_TEXT_CAPTION (text_caption));
g_return_if_fail (name != NULL);
text = g_strdup ("");
eel_text_caption_set_text (EEL_TEXT_CAPTION (text_caption), text);
g_free (text);
}
int
test_text_caption_get_text_as_int (const EelTextCaption *text_caption)
{
int result = 0;
char *text;
g_return_val_if_fail (EEL_IS_TEXT_CAPTION (text_caption), 0);
text = eel_text_caption_get_text (text_caption);
eel_str_to_int (text, &result);
g_free (text);
return result;
}
void
test_window_set_title_with_pid (GtkWindow *window,
const char *title)

View file

@ -20,7 +20,6 @@
#include <eel/eel-string.h>
#include <libnautilus-private/nautilus-file-utilities.h>
#include <eel/eel-text-caption.h>
#include <eel/eel-string-picker.h>
void test_init (int *argc,
@ -49,16 +48,5 @@ void test_pixbuf_draw_rectangle_tiled (GdkPixbuf *pi
int opacity);
void test_window_set_title_with_pid (GtkWindow *window,
const char *title);
int test_text_caption_get_text_as_int (const EelTextCaption *text_caption);
/* Preferences hacks */
void test_text_caption_set_text_for_int_preferences (EelTextCaption *text_caption,
const char *name);
void test_text_caption_set_text_for_string_preferences (EelTextCaption *text_caption,
const char *name);
void test_text_caption_set_text_for_default_int_preferences (EelTextCaption *text_caption,
const char *name);
void test_text_caption_set_text_for_default_string_preferences (EelTextCaption *text_caption,
const char *name);
#endif /* TEST_H */