summaryrefslogtreecommitdiff
path: root/packages/gtk-webcore/files
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-11-27 17:54:51 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-11-27 17:54:51 +0000
commita76c9a11d5dc4d2d7df13ce3a9a6d0e09ab06903 (patch)
treef61196dd0c41013830da836c02e0da8c55dc551b /packages/gtk-webcore/files
parentc9036b05aedc8b6c7df13f63087110fc48291b98 (diff)
osb-nrcit 20050430: add patch to improve 'stop' handling, courtesy Philippe De Swert, closes #477
Diffstat (limited to 'packages/gtk-webcore/files')
-rw-r--r--packages/gtk-webcore/files/stop-load.image-loading.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/packages/gtk-webcore/files/stop-load.image-loading.patch b/packages/gtk-webcore/files/stop-load.image-loading.patch
new file mode 100644
index 0000000000..47200825c0
--- /dev/null
+++ b/packages/gtk-webcore/files/stop-load.image-loading.patch
@@ -0,0 +1,44 @@
+--- NRCit/src/frameimpl.cpp.orig 2005-02-16 11:33:16.000000000 +0200
++++ NRCit/src/frameimpl.cpp 2005-10-28 00:44:15.000000000 +0300
+@@ -152,6 +152,7 @@
+
+ void FrameImpl::stopLoad()
+ {
++ frameLoadDelegate()->onFrameLoadFinished(this, 1);
+ closeURL();
+ }
+
+--- NRCit/src/ImageRenderer.cpp.orig 2005-02-16 11:33:16.000000000 +0200
++++ NRCit/src/ImageRenderer.cpp 2005-10-28 20:43:42.000000000 +0300
+@@ -133,19 +133,19 @@
+ g_object_ref(pixbuf);
+ } else {
+ // not loading
+- if (ir.anim) {
++ /*if (ir.anim) {
+ // is an animation => get own pixbuf, owned by iterator
+ anim = ir.anim;
+ g_object_ref(anim);
+ assert(ir.iter);
+ iter = gdk_pixbuf_animation_get_iter(anim, NULL);
+- } else {
++ } else {*/
+ // not an animation
+ assert(!ir.iter);
+ pixbuf = ir.pixbuf;
+ if (pixbuf)
+ g_object_ref(pixbuf);
+- }
++ //}
+ }
+ }
+
+@@ -415,7 +417,7 @@
+
+ void ImageRenderer::stopAnimation()
+ {
+- //stopped = true;
++ stopped = true;
+ }
+
+ void ImageRenderer::tileInRect(GdkRectangle* r, int sx, int sy, CGContextRef context)