summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gryniewicz <dang@gentoo.org>2007-02-22 22:35:05 +0000
committerDaniel Gryniewicz <dang@gentoo.org>2007-02-22 22:35:05 +0000
commit6b9a659fcadf784ede45f9d9d6649a31f8df7503 (patch)
tree8df5cf068f97ff7bf45adf66e7046dd8f5754890 /x11-themes/gtk-engines/files
parentVersion bump, based on the 8.33.6-r2 ebuild with some further cleanup. Closes... (diff)
downloadgentoo-2-6b9a659fcadf784ede45f9d9d6649a31f8df7503.tar.gz
gentoo-2-6b9a659fcadf784ede45f9d9d6649a31f8df7503.tar.bz2
gentoo-2-6b9a659fcadf784ede45f9d9d6649a31f8df7503.zip
Bump to 2.8.2-r1
- fix crasher in smooth engine. Bug #167569 (Portage version: 2.1.2-r10)
Diffstat (limited to 'x11-themes/gtk-engines/files')
-rw-r--r--x11-themes/gtk-engines/files/digest-gtk-engines-2.8.2-r13
-rw-r--r--x11-themes/gtk-engines/files/gtk-engines-2.8.2-smooth-arrow.patch87
2 files changed, 90 insertions, 0 deletions
diff --git a/x11-themes/gtk-engines/files/digest-gtk-engines-2.8.2-r1 b/x11-themes/gtk-engines/files/digest-gtk-engines-2.8.2-r1
new file mode 100644
index 000000000000..03a47b9f5b4e
--- /dev/null
+++ b/x11-themes/gtk-engines/files/digest-gtk-engines-2.8.2-r1
@@ -0,0 +1,3 @@
+MD5 0c5b0254b57910b1ebcda47ac6a3b1ba gtk-engines-2.8.2.tar.bz2 461623
+RMD160 f82a5d5a5a3833759a3edba4f18f9135b1daccbf gtk-engines-2.8.2.tar.bz2 461623
+SHA256 c789ceb35f9972cdc41655d663e579150bfb3703a917a8be254f227c57730734 gtk-engines-2.8.2.tar.bz2 461623
diff --git a/x11-themes/gtk-engines/files/gtk-engines-2.8.2-smooth-arrow.patch b/x11-themes/gtk-engines/files/gtk-engines-2.8.2-smooth-arrow.patch
new file mode 100644
index 000000000000..60953902ce05
--- /dev/null
+++ b/x11-themes/gtk-engines/files/gtk-engines-2.8.2-smooth-arrow.patch
@@ -0,0 +1,87 @@
+diff --exclude-from=/home/dang/bin/scripts/diffrc -up -ruN gtk-engines-2.8.2.orig/engines/smooth/src/engine/shared/gtk/smooth_gtk_rc.c gtk-engines-2.8.2/engines/smooth/src/engine/shared/gtk/smooth_gtk_rc.c
+--- gtk-engines-2.8.2.orig/engines/smooth/src/engine/shared/gtk/smooth_gtk_rc.c 2006-11-13 11:07:12.000000000 -0500
++++ gtk-engines-2.8.2/engines/smooth/src/engine/shared/gtk/smooth_gtk_rc.c 2007-02-22 16:12:41.000000000 -0500
+@@ -2207,11 +2207,12 @@ smooth_arrow_merge (SmoothArrowPart *des
+ {
+ SmoothArrow dummy;
+
+- if (dest_arrow->DefaultStyle)
+- g_free(dest_arrow->DefaultStyle);
+-
++ /* what is this for? */
+ smooth_style_get_arrow(src_arrow, 0, 0, &dummy);
+- memcpy(dest_arrow, src_arrow, sizeof(SmoothArrowPart));
++
++ SmoothCopyArrowPart(dest_arrow, src_arrow);
++
++ /* Only used to inherit in one rc style. So this should work fine, I think. */
+ dest_arrow->Inherited = NULL;
+ }
+
+diff --exclude-from=/home/dang/bin/scripts/diffrc -up -ruN gtk-engines-2.8.2.orig/engines/smooth/src/utils/draw_arrows.c gtk-engines-2.8.2/engines/smooth/src/utils/draw_arrows.c
+--- gtk-engines-2.8.2.orig/engines/smooth/src/utils/draw_arrows.c 2006-07-25 05:46:47.000000000 -0400
++++ gtk-engines-2.8.2/engines/smooth/src/utils/draw_arrows.c 2007-02-22 16:12:41.000000000 -0500
+@@ -685,3 +685,52 @@ void SmoothFreeArrowStyles(SmoothArrowPa
+ }
+ }
+ }
++
++
++void SmoothCopyArrowPart(SmoothArrowPart *dst, SmoothArrowPart *src)
++{
++ gint i, j;
++ g_assert (dst != NULL);
++ g_assert (src != NULL);
++
++ SmoothFreeArrowStyles(dst);
++
++ if (src->DefaultStyle)
++ {
++ dst->DefaultStyle = g_new0(SmoothArrow, 1);
++ memcpy(dst->DefaultStyle, src->DefaultStyle, sizeof(SmoothArrow));
++ }
++
++ if (src->DefaultStateStyles)
++ {
++ dst->DefaultStateStyles = g_new0(SmoothArrow, 1);
++ memcpy(dst->DefaultStateStyles, src->DefaultStateStyles, sizeof(SmoothArrow));
++ }
++
++ if (src->DefaultTypeStyles)
++ {
++ dst->DefaultTypeStyles = g_new0(SmoothArrow, 1);
++ memcpy(dst->DefaultTypeStyles, src->DefaultTypeStyles, sizeof(SmoothArrow));
++ }
++
++ for (i=0; i < 5; i++)
++ {
++ if (src->Styles[i])
++ {
++ dst->Styles[i] = g_new0(SmoothArrow, 1);
++ memcpy(dst->Styles[i], src->Styles[i], sizeof(SmoothArrow));
++ }
++ }
++
++ dst->StylesFreed = src->StylesFreed;
++ dst->Inherited = src->Inherited;
++
++ for (i=0; i < 5; i++)
++ {
++ for (j=0; j < SMOOTH_ARROW_TYPE_COUNT; j++)
++ {
++ dst->CompositeArrows[i][j] = src->CompositeArrows[i][j];
++ dst->CompositeArrowsSet[i][j] = src->CompositeArrowsSet[i][j];
++ }
++ }
++}
+diff --exclude-from=/home/dang/bin/scripts/diffrc -up -ruN gtk-engines-2.8.2.orig/engines/smooth/src/utils/draw_arrows.h gtk-engines-2.8.2/engines/smooth/src/utils/draw_arrows.h
+--- gtk-engines-2.8.2.orig/engines/smooth/src/utils/draw_arrows.h 2006-08-14 15:25:41.000000000 -0400
++++ gtk-engines-2.8.2/engines/smooth/src/utils/draw_arrows.h 2007-02-22 16:12:41.000000000 -0500
+@@ -112,5 +112,7 @@ SmoothDrawArrow(SmoothCanvas *Canvas,
+
+ GE_INTERNAL void
+ SmoothFreeArrowStyles(SmoothArrowPart *arrow);
++GE_INTERNAL void
++SmoothCopyArrowPart(SmoothArrowPart *dst, SmoothArrowPart *src);
+
+ #endif /* DRAW_ARROWS_H */