summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2002-01-29 19:21:59 +0000
committerDarin Adler <darin@src.gnome.org>2002-01-29 19:21:59 +0000
commit0ba9c077fdd98eaedcb4cc6d0f5dd460cf914454 (patch)
treec9f615323b2bb8837c4599b6c5eeb7afc2b8793f /test
parent81bceb3e69cdaa9bbad22ffbaf8f7089c0a732c9 (diff)
downloadnautilus-0ba9c077fdd98eaedcb4cc6d0f5dd460cf914454.tar.gz
Remove smooth mode and unused font and font size machinery.
* components/tree/nautilus-tree-view.c: (create_tree), (nautilus_tree_view_destroy): * libnautilus-private/nautilus-directory.c: (add_preferences_callbacks): * libnautilus-private/nautilus-global-preferences.c: * libnautilus-private/nautilus-global-preferences.h: * libnautilus-private/nautilus-icon-canvas-item.c: (measure_label_text), (nautilus_icon_canvas_item_render), (nautilus_icon_canvas_item_set_show_stretch_handles): * libnautilus-private/nautilus-icon-container.c: (start_rubberbanding), (finalize), (nautilus_icon_container_init), (nautilus_icon_container_update_icon), (nautilus_icon_container_theme_changed): * libnautilus-private/nautilus-icon-container.h: * libnautilus-private/nautilus-icon-private.h: * src/file-manager/fm-directory-view.c: (fm_directory_view_init), (fm_directory_view_finalize): * src/file-manager/fm-directory-view.h: * src/file-manager/fm-icon-view.c: (fm_icon_view_update_icon_container_font_size_table), (create_icon_container), (fm_icon_view_class_init): Remove smooth mode and unused font and font size machinery. * test/.cvsignore: Remove test-nautilus-smooth-graphics. * test/Makefile.am: Remove test-nautilus-smooth-graphics. * test/test-nautilus-smooth-graphics.c: Remove. * src/nautilus-preferences-dialog.c: (dialog_delete_event_callback), (dialog_button_response_callback), (preferences_dialog_create): Fix bug where we'd lose the preferences dialog if you closed it with a delete_event.
Diffstat (limited to 'test')
-rw-r--r--test/.cvsignore3
-rw-r--r--test/Makefile.am2
-rw-r--r--test/test-nautilus-smooth-graphics.c68
3 files changed, 0 insertions, 73 deletions
diff --git a/test/.cvsignore b/test/.cvsignore
index 4744f044d..32b1fd7b8 100644
--- a/test/.cvsignore
+++ b/test/.cvsignore
@@ -1,5 +1,3 @@
-*.la
-*.lo
.deps
.libs
Makefile
@@ -9,5 +7,4 @@ test-nautilus-mime-actions
test-nautilus-mime-actions-set
test-nautilus-preferences-change
test-nautilus-preferences-display
-test-nautilus-smooth-graphics
test-nautilus-wrap-table
diff --git a/test/Makefile.am b/test/Makefile.am
index 9279cf208..dcb8d2941 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -20,7 +20,6 @@ noinst_PROGRAMS =\
test-nautilus-mime-actions-set \
test-nautilus-preferences-change \
test-nautilus-preferences-display \
- test-nautilus-smooth-graphics \
test-nautilus-wrap-table \
$(NULL)
@@ -29,7 +28,6 @@ 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_smooth_graphics_SOURCES = test-nautilus-smooth-graphics.c test.c
test_nautilus_wrap_table_SOURCES = test-nautilus-wrap-table.c test.c
EXTRA_DIST = \
diff --git a/test/test-nautilus-smooth-graphics.c b/test/test-nautilus-smooth-graphics.c
deleted file mode 100644
index e274aa703..000000000
--- a/test/test-nautilus-smooth-graphics.c
+++ /dev/null
@@ -1,68 +0,0 @@
-#include <config.h>
-
-#include <gtk/gtk.h>
-#include <libgnomeui/libgnomeui.h>
-#include <libnautilus-private/nautilus-global-preferences.h>
-
-static void
-button_toggled (GtkWidget *button,
- gpointer callback_data)
-{
- eel_preferences_set_boolean (NAUTILUS_PREFERENCES_SMOOTH_GRAPHICS_MODE,
- GTK_TOGGLE_BUTTON (button)->active);
-}
-
-static void
-smooth_graphics_mode_changed_callback (gpointer callback_data)
-{
- gboolean is_smooth;
-
- is_smooth = eel_preferences_get_boolean (NAUTILUS_PREFERENCES_SMOOTH_GRAPHICS_MODE);
-
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (callback_data),
- eel_preferences_get_boolean (NAUTILUS_PREFERENCES_SMOOTH_GRAPHICS_MODE));
-}
-
-static void
-delete_event (GtkWidget *widget, GdkEvent *event, gpointer callback_data)
-{
- gtk_main_quit ();
-}
-
-int
-main (int argc, char * argv[])
-{
- GtkWidget *window;
- GtkWidget *button;
-
- gnome_program_init ("test-nautilus-smooth-graphics", "1.0",
- LIBGNOMEUI_MODULE, argc, argv, NULL);
-
- nautilus_global_preferences_init ();
-
- window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- g_signal_connect (window, "delete_event", G_CALLBACK (delete_event), NULL);
-
- button = gtk_toggle_button_new_with_label ("Smooth Graphics");
-
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button),
- eel_preferences_get_boolean (NAUTILUS_PREFERENCES_SMOOTH_GRAPHICS_MODE));
-
- gtk_container_add (GTK_CONTAINER (window), button);
-
- g_signal_connect (button,
- "toggled",
- G_CALLBACK (button_toggled),
- NULL);
-
- eel_preferences_add_callback (NAUTILUS_PREFERENCES_SMOOTH_GRAPHICS_MODE,
- smooth_graphics_mode_changed_callback,
- button);
-
- gtk_widget_show (button);
- gtk_widget_show (window);
-
- gtk_main ();
-
- return 0;
-}