svnno****@sourc*****
svnno****@sourc*****
Fri Apr 13 14:57:46 JST 2007
Revision: 3174 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3174 Author: kous Date: 2007-04-13 14:57:46 +0900 (Fri, 13 Apr 2007) Log Message: ----------- * module/embed/gecko/kz-gecko-embed.cpp (net_stop_proccess): Gecko 1.8 generates thumbnail on net-stop. Modified Paths: -------------- kazehakase/trunk/ChangeLog kazehakase/trunk/module/embed/gecko/kz-gecko-embed.cpp Modified: kazehakase/trunk/ChangeLog =================================================================== --- kazehakase/trunk/ChangeLog 2007-04-13 05:41:33 UTC (rev 3173) +++ kazehakase/trunk/ChangeLog 2007-04-13 05:57:46 UTC (rev 3174) @@ -1,5 +1,8 @@ 2007-04-13 Kouhei Sutou <kou****@cozmi*****> + * module/embed/gecko/kz-gecko-embed.cpp (net_stop_proccess): + Gecko 1.8 generates thumbnail on net-stop. + * **/.cvsignore: removed. * ext/ruby/kz-rb-embed.c (rb_kz_embed_create_thumbnail): followed Modified: kazehakase/trunk/module/embed/gecko/kz-gecko-embed.cpp =================================================================== --- kazehakase/trunk/module/embed/gecko/kz-gecko-embed.cpp 2007-04-13 05:41:33 UTC (rev 3173) +++ kazehakase/trunk/module/embed/gecko/kz-gecko-embed.cpp 2007-04-13 05:57:46 UTC (rev 3174) @@ -1104,6 +1104,19 @@ const gchar *uri = sURI.get(); rv = NewURI(getter_AddRefs(inURI), uri); +#ifdef MOZ_NSICANVASRENDERINGCONTEXTINTERNAL_HAVE_GETINPUTSTREAM_ + gboolean create_thumbnail = FALSE; + KZ_CONF_GET("Global", "create_thumbnail", + create_thumbnail, BOOL); + if (create_thumbnail && + (!last_modified || + (thumbnail_get_last_modified(uri) < last_modified))) + { + kz_gecko_embed_create_thumbnail(KZ_EMBED(kzembed), + EGG_PIXBUF_THUMB_LARGE); + } +#endif + if ((!last_modified || (history_get_last_modified(uri) < last_modified)) && !g_str_has_prefix(location, "history-search:")) {