diff options
Diffstat (limited to 'test/test-nautilus-preferences-display.c')
-rw-r--r-- | test/test-nautilus-preferences-display.c | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/test/test-nautilus-preferences-display.c b/test/test-nautilus-preferences-display.c index bd3442186..ae4a0f311 100644 --- a/test/test-nautilus-preferences-display.c +++ b/test/test-nautilus-preferences-display.c @@ -21,33 +21,6 @@ text_caption_update (EelTextCaption *text_caption, } static void -user_level_caption_update (EelTextCaption *text_caption) -{ - char *old_text; - char *new_text; - - g_return_if_fail (EEL_IS_TEXT_CAPTION (text_caption)); - - old_text = eel_text_caption_get_text (text_caption); - new_text = eel_preferences_get ("user_level"); - - g_print ("'%s' changed from '%s' to '%s'\n", - "user_level", - old_text, new_text); - - g_free (old_text); - g_free (new_text); - - test_text_caption_set_text_for_string_preferences (text_caption, "user_level"); -} - -static void -user_level_changed_callback (gpointer callback_data) -{ - user_level_caption_update (EEL_TEXT_CAPTION (callback_data)); -} - -static void green_changed_callback (gpointer callback_data) { text_caption_update (EEL_TEXT_CAPTION (callback_data), "green"); @@ -114,28 +87,6 @@ entry_new (const char *name, } static GtkWidget * -user_level_frame_new (void) -{ - GtkWidget *user_level_caption; - GtkWidget *user_level_default_caption; - GtkWidget *user_level_hbox; - GtkWidget *frame; - - frame = gtk_frame_new ("user_level"); - - user_level_hbox = entry_new ("user_level", &user_level_caption, &user_level_default_caption); - test_text_caption_set_text_for_string_preferences (EEL_TEXT_CAPTION (user_level_caption), "user_level"); - test_text_caption_set_text_for_default_string_preferences (EEL_TEXT_CAPTION (user_level_default_caption), "user_level"); - eel_preferences_add_callback ("user_level", user_level_changed_callback, user_level_caption); - - gtk_container_add (GTK_CONTAINER (frame), user_level_hbox); - - gtk_widget_show_all (frame); - - return frame; -} - -static GtkWidget * colors_frame_new (void) { GtkWidget *green_caption; @@ -237,7 +188,6 @@ main (int argc, char *argv[]) GtkWidget *window; GtkWidget *vbox; - GtkWidget *user_level_frame; GtkWidget *colors_frame; GtkWidget *fruits_frame; @@ -251,11 +201,9 @@ main (int argc, char *argv[]) vbox = gtk_vbox_new (FALSE, 2); gtk_container_add (GTK_CONTAINER (window), vbox); - user_level_frame = user_level_frame_new (); colors_frame = colors_frame_new (); fruits_frame = fruits_frame_new (); - gtk_box_pack_start (GTK_BOX (vbox), user_level_frame, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (vbox), colors_frame, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (vbox), fruits_frame, TRUE, TRUE, 0); |