style: Convert draw_handle vfunc to Cairo version
This commit is contained in:
		| @ -872,10 +872,9 @@ draw_slider (GtkStyle      *style, | ||||
|  | ||||
| static void | ||||
| draw_handle (GtkStyle      *style, | ||||
| 	     GdkWindow     *window, | ||||
| 	     cairo_t       *cr, | ||||
| 	     GtkStateType   state, | ||||
| 	     GtkShadowType  shadow, | ||||
| 	     GdkRectangle  *area, | ||||
| 	     GtkWidget     *widget, | ||||
| 	     const gchar   *detail, | ||||
| 	     gint           x, | ||||
| @ -886,9 +885,6 @@ draw_handle (GtkStyle      *style, | ||||
| { | ||||
|   ThemeMatchData match_data; | ||||
|    | ||||
|   g_return_if_fail (style != NULL); | ||||
|   g_return_if_fail (window != NULL); | ||||
|  | ||||
|   match_data.function = TOKEN_D_HANDLE; | ||||
|   match_data.detail = (gchar *)detail; | ||||
|   match_data.flags = (THEME_MATCH_SHADOW |  | ||||
| @ -898,9 +894,9 @@ draw_handle (GtkStyle      *style, | ||||
|   match_data.state = state; | ||||
|   match_data.orientation = orientation; | ||||
|  | ||||
|   if (!draw_simple_image_no_cairo (style, window, area, widget, &match_data, TRUE, TRUE, | ||||
|   if (!draw_simple_image (style, cr, widget, &match_data, TRUE, TRUE, | ||||
| 			  x, y, width, height)) | ||||
|     parent_class->draw_handle (style, window, state, shadow, area, widget, detail, | ||||
|     parent_class->draw_handle (style, cr, state, shadow, widget, detail, | ||||
| 			       x, y, width, height, orientation); | ||||
| } | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Benjamin Otte
					Benjamin Otte