$OpenBSD: patch-unico_unico-cairo-support_c,v 1.1 2012/06/08 14:58:05 dcoppa Exp $

Fix segfault in draw_background(GtkThemingEngine *engine, ...)

--- unico/unico-cairo-support.c.orig	Fri Jun  8 15:19:53 2012
+++ unico/unico-cairo-support.c	Fri Jun  8 15:20:50 2012
@@ -298,7 +298,7 @@ draw_background (GtkThemingEngine *engine,
 
   /* create the path to fill */
   _gtk_rounded_box_init_rect (&border_box, 0, 0, width, height);
-  _gtk_rounded_box_apply_border_radius (&border_box, engine, state, junction);
+  _gtk_rounded_box_apply_border_radius_for_engine (&border_box, engine, state, junction);
   _gtk_rounded_box_shrink (&border_box, border.top, border.right, border.bottom, border.left);
   _gtk_rounded_box_path (&border_box, cr);
 
@@ -361,7 +361,7 @@ draw_glow (GtkThemingEngine *engine,
 
   /* create the path to clip */
   _gtk_rounded_box_init_rect (&border_box, 0, 0, width, height);
-  _gtk_rounded_box_apply_border_radius (&border_box, engine, state, junction);
+  _gtk_rounded_box_apply_border_radius_for_engine (&border_box, engine, state, junction);
   _gtk_rounded_box_shrink (&border_box, border.top, border.right, border.bottom, border.left);
   _gtk_rounded_box_path (&border_box, cr);
 
@@ -451,7 +451,7 @@ draw_texture (GtkThemingEngine *engine,
 
       /* create the path to fill */
       _gtk_rounded_box_init_rect (&border_box, 0, 0, width, height);
-      _gtk_rounded_box_apply_border_radius (&border_box, engine, state, junction);
+      _gtk_rounded_box_apply_border_radius_for_engine (&border_box, engine, state, junction);
       _gtk_rounded_box_shrink (&border_box, border.top, border.right, border.bottom, border.left);
       _gtk_rounded_box_path (&border_box, cr);
 
@@ -788,7 +788,7 @@ draw_border (GtkThemingEngine *engine,
 
   /* create the path to fill */
   _gtk_rounded_box_init_rect (&border_box, 0, 0, width, height);
-  _gtk_rounded_box_apply_border_radius (&border_box, engine, state, junction);
+  _gtk_rounded_box_apply_border_radius_for_engine (&border_box, engine, state, junction);
   padding_box = border_box;
   _gtk_rounded_box_shrink (&padding_box, border.top, border.right, border.bottom, border.left);
 
@@ -922,7 +922,7 @@ draw_inner_stroke (GtkThemingEngine *engine,
 
   /* create the path to fill */
   _gtk_rounded_box_init_rect (&border_box, 0, 0, width, height);
-  _gtk_rounded_box_apply_border_radius (&border_box, engine, state, junction);
+  _gtk_rounded_box_apply_border_radius_for_engine (&border_box, engine, state, junction);
   padding_box = border_box;
   _gtk_rounded_box_shrink (&padding_box, inner_border->top,
                                          inner_border->right,
@@ -1052,7 +1052,7 @@ draw_outer_stroke (GtkThemingEngine *engine,
 
   /* create the path to fill */
   _gtk_rounded_box_init_rect (&border_box, 0, 0, width, height);
-  _gtk_rounded_box_apply_border_radius (&border_box, engine, state, junction);
+  _gtk_rounded_box_apply_border_radius_for_engine (&border_box, engine, state, junction);
   padding_box = border_box;
   _gtk_rounded_box_shrink (&padding_box, outer_border->top,
                                          outer_border->right,
