1
1

1998-12-11 Federico Mena Quintero <federico@nuclecu.unam.mx>

* gicon.c (gicon_get_icon_for_file): First try to fetch the inline
	icon data (i.e. thumbnails), second try the generic icon filename.
Этот коммит содержится в:
Miguel de Icaza 1998-12-11 17:58:43 +00:00
родитель 0a00605ba6
Коммит b14a0d3432
2 изменённых файлов: 16 добавлений и 11 удалений

Просмотреть файл

@ -1,3 +1,8 @@
1998-12-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gicon.c (gicon_get_icon_for_file): First try to fetch the inline
icon data (i.e. thumbnails), second try the generic icon filename.
1998-12-11 Owen Taylor <otaylor@redhat.com>
* gdesktop.c (window_button_press): Ehen cancelling editing

Просмотреть файл

@ -223,17 +223,7 @@ gicon_get_icon_for_file (file_entry *fe)
/*
* 2. Try to fetch the icon from the metadata.
*/
if (gnome_metadata_get (fe->fname, "icon-filename", &size, &buf) == 0){
image = gicon_get_by_filename (buf);
if (image)
return image;
}
/*
* 3. Try to fetch the icon as an inline png from the metadata.
* 2. Try to fetch the icon as an inline png from the metadata.
*/
if (gnome_metadata_get (fe->fname, "icon-inline-png", &size, &buf) == 0){
image = gdk_imlib_inlined_png_to_image (buf, size);
@ -244,6 +234,16 @@ gicon_get_icon_for_file (file_entry *fe)
return image;
}
/*
* 3. Try to fetch the icon from the metadata.
*/
if (gnome_metadata_get (fe->fname, "icon-filename", &size, &buf) == 0){
image = gicon_get_by_filename (buf);
if (image)
return image;
}
/*
* 4. Try to find an appropiate icon from the stat information or
* the hard coded filename.