From 4220c40a422579d0cdaca0ffa8425c2d50357f77 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Sun, 7 Apr 2002 19:42:17 +0000 Subject: [PATCH] NAUTILUS_PREFERENCES_IMAGE_FILE_THUMBNAIL_LIMIT is an integer 2002-04-07 Alexander Larsson * libnautilus-private/nautilus-global-preferences.c: NAUTILUS_PREFERENCES_IMAGE_FILE_THUMBNAIL_LIMIT is an integer (global_preferences_register_enumerations): Allow integer enum prefs. * src/nautilus-preferences-dialog.c: Make NAUTILUS_PREFERENCES_IMAGE_FILE_THUMBNAIL_LIMIT a EEL_PREFERENCE_ITEM_ENUMERATION_MENU_INTEGER. --- ChangeLog | 11 +++++++++++ libnautilus-private/nautilus-global-preferences.c | 7 ++++--- src/nautilus-preferences-dialog.c | 2 +- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index aa62a4cf1..a0386472b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2002-04-07 Alexander Larsson + + * libnautilus-private/nautilus-global-preferences.c: + NAUTILUS_PREFERENCES_IMAGE_FILE_THUMBNAIL_LIMIT is an integer + (global_preferences_register_enumerations): Allow integer enum + prefs. + + * src/nautilus-preferences-dialog.c: + Make NAUTILUS_PREFERENCES_IMAGE_FILE_THUMBNAIL_LIMIT a + EEL_PREFERENCE_ITEM_ENUMERATION_MENU_INTEGER. + 2002-03-30 David Emory Watson This fixes single click activation in the list view, bug 76197. diff --git a/libnautilus-private/nautilus-global-preferences.c b/libnautilus-private/nautilus-global-preferences.c index e5ca05982..47d382cd4 100644 --- a/libnautilus-private/nautilus-global-preferences.c +++ b/libnautilus-private/nautilus-global-preferences.c @@ -369,8 +369,8 @@ static const PreferenceDefault preference_defaults[] = { "speed_tradeoff" }, { NAUTILUS_PREFERENCES_IMAGE_FILE_THUMBNAIL_LIMIT, - PREFERENCE_STRING, - "3145728", + PREFERENCE_INTEGER, + GINT_TO_POINTER(3145728), NULL, NULL, "file_size" }, @@ -613,7 +613,8 @@ global_preferences_register_enumerations (void) for (i = 0; preference_defaults[i].name != NULL; i++) { if (eel_strlen (preference_defaults[i].enumeration_id) > 0) { g_assert (preference_defaults[i].type == PREFERENCE_STRING - || preference_defaults[i].type == PREFERENCE_STRING_LIST); + || preference_defaults[i].type == PREFERENCE_STRING_LIST + || preference_defaults[i].type == PREFERENCE_INTEGER); eel_preferences_set_enumeration_id (preference_defaults[i].name, preference_defaults[i].enumeration_id); } diff --git a/src/nautilus-preferences-dialog.c b/src/nautilus-preferences-dialog.c index b3c2852ed..feadedee2 100644 --- a/src/nautilus-preferences-dialog.c +++ b/src/nautilus-preferences-dialog.c @@ -325,7 +325,7 @@ static EelPreferencesItemDescription tradeoffs_items[] = { { N_("Show Thumbnails for Image Files"), NAUTILUS_PREFERENCES_IMAGE_FILE_THUMBNAIL_LIMIT, N_("Don't make thumbnails for files larger than:"), - EEL_PREFERENCE_ITEM_ENUMERATION_MENU + EEL_PREFERENCE_ITEM_ENUMERATION_MENU_INTEGER }, { N_("Preview Sound Files"), NAUTILUS_PREFERENCES_PREVIEW_SOUND,