From 0ba9c077fdd98eaedcb4cc6d0f5dd460cf914454 Mon Sep 17 00:00:00 2001 From: Darin Adler Date: Tue, 29 Jan 2002 19:21:59 +0000 Subject: 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. --- test/.cvsignore | 3 -- test/Makefile.am | 2 -- test/test-nautilus-smooth-graphics.c | 68 ------------------------------------ 3 files changed, 73 deletions(-) delete mode 100644 test/test-nautilus-smooth-graphics.c (limited to 'test') 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 - -#include -#include -#include - -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; -} -- cgit v1.2.1