osb-nrcit 20050430: add patch to improve 'stop' handling, courtesy Philippe De Swert...
authorKoen Kooi <koen@openembedded.org>
Sun, 27 Nov 2005 17:54:51 +0000 (17:54 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Sun, 27 Nov 2005 17:54:51 +0000 (17:54 +0000)
packages/gtk-webcore/files/stop-load.image-loading.patch [new file with mode: 0644]
packages/gtk-webcore/osb-nrcit_20050430.bb

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 (file)
index 0000000..4720082
--- /dev/null
@@ -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)
index 6d53ff3..6daa6a2 100644 (file)
@@ -7,12 +7,13 @@ SECTION = "gpe"
 
 FIXEDCVSDATE = "${@bb.data.getVar('FILE', d, 1).split('_')[-1].split('.')[0]}"
 PV = "0.5.0+cvs${FIXEDCVSDATE}"
-PR = "r1"
+PR = "r2"
 
 DEPENDS = "curl librsvg osb-nrcore"
 
 SRC_URI = "cvs://anonymous@cvs.sourceforge.net/cvsroot/gtk-webcore;module=NRCit;date=${FIXEDCVSDATE} \
-           file://gdk-colorspace.diff;patch=1"
+          file://stop-load.image-loading.patch;patch=1 \
+          file://gdk-colorspace.diff;patch=1"
 S = "${WORKDIR}/NRCit"
 
 inherit autotools pkgconfig