From kde-devel Fri Aug 20 21:37:58 1999 From: "Stefan Siegel [Inf]" Date: Fri, 20 Aug 1999 21:37:58 +0000 To: kde-devel Subject: 1.1.2 thumbnail support X-MARC-Message: https://marc.info/?l=kde-devel&m=93518510319562 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--ibTvN161/egqYuK8" --ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii Hi, Please test this patch and commit it if, no problem occurs. By building the "1.1.2pre_19990720" snapshots, i realized that kfm still lacks png-thumbnail support. So I looked through source code and realized, by adding a handfull lines we'll gain "image/x-bmp", "image/png", "image/tiff" and "image/x-xbm" support (at least worked fine for me). 2nd file attached is the therefore needed "$KDEDIR/share/mimelib/image/x-bmp.kdelink" I hope it'll make it also in 1.1.2 release. greetings Stefan --ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="thumbnail.patch" diff -uNr kdebase/kfm/kfmman.cpp kdebase.new/kfm/kfmman.cpp --- kdebase/kfm/kfmman.cpp Mon Jun 7 22:44:12 1999 +++ kdebase.new/kfm/kfmman.cpp Fri Aug 20 22:33:00 1999 @@ -1821,10 +1821,12 @@ // At this time the icon protocol works for local files only. KMimeType *mime = KMimeType::getMagicMimeType( _url ); - if ( strcmp( mime->getMimeType(), "image/jpeg" ) == 0 || + if ( strcmp( mime->getMimeType(), "image/x-bmp" ) == 0 || strcmp( mime->getMimeType(), "image/gif" ) == 0 || - strcmp( mime->getMimeType(), "image/bmp" ) == 0 || - // Added bmp, because it seems to work. David. + strcmp( mime->getMimeType(), "image/jpeg" ) == 0 || + strcmp( mime->getMimeType(), "image/png" ) == 0 || + strcmp( mime->getMimeType(), "image/tiff" ) == 0 || + strcmp( mime->getMimeType(), "image/x-xbm" ) == 0 || strcmp( mime->getMimeType(), "image/x-xpm" ) == 0 ) { QString result; --ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="x-bmp.kdelnk" # KDE Config File [KDE Desktop Entry] Type=MimeType MimeType=image/x-bmp Icon=image.xpm Patterns=*.bmp;*.BMP; Comment=bitmap image --ibTvN161/egqYuK8--