diff options
author | Havoc Pennington <hp@pobox.com> | 2002-01-05 04:05:26 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2002-01-05 04:05:26 +0000 |
commit | e60f2abe9f114f800b22a824402fededf45a5ba7 (patch) | |
tree | f7220ba659cb7f50f4ea29fba649eb7b99837118 /test/test-nautilus-preferences-display.c | |
parent | d84dbfa0dd361f02f03673a2dc83d272a1e6fd62 (diff) | |
download | nautilus-e60f2abe9f114f800b22a824402fededf45a5ba7.tar.gz |
add preload of the gconf cache, to hopefully avoid a zillion round trips
2002-01-04 Havoc Pennington <hp@pobox.com>
* libnautilus-private/nautilus-global-preferences.c
(nautilus_global_preferences_init): add preload of the gconf
cache, to hopefully avoid a zillion round trips to gconfd on
startup.
* test/test.c (test_window_new): remove weird gtk_window_set_policy
* test/test-nautilus-preferences-display.c: remove user level
stuff
* test/test-nautilus-preferences-change.c: remove user level stuff
* libnautilus-private/nautilus-global-preferences.c: the default
click policy was SPEED_TRADEOFF_LOCAL_ONLY, fix
* libnautilus-private/nautilus.schemas: add schemas file,
incomplete, needs to be finished and installed
* libnautilus-private/nautilus-global-preferences.c: strip out
user levels
* src/nautilus-shell-ui.xml: strip out user level menu
* src/nautilus-window-menus.c: strip out user level menu
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); |