diff options
Diffstat (limited to 'test/test.c')
-rw-r--r-- | test/test.c | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/test/test.c b/test/test.c index fc708e9d1..ce43f9a99 100644 --- a/test/test.c +++ b/test/test.c @@ -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) |