mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
NAUTILUS_PREFERENCES_IMAGE_FILE_THUMBNAIL_LIMIT is an integer
2002-04-07 Alexander Larsson <alla@lysator.liu.se> * 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.
This commit is contained in:
parent
49f8deeb15
commit
4220c40a42
3 changed files with 16 additions and 4 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
2002-04-07 Alexander Larsson <alla@lysator.liu.se>
|
||||
|
||||
* 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 <dwatson@cs.ucr.edu>
|
||||
|
||||
This fixes single click activation in the list view, bug 76197.
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue