st: Fix signed-unsigned comparisons
This commit is contained in:
parent
051413550f
commit
18b6f13395
@ -94,8 +94,8 @@ st_drawing_area_paint (ClutterActor *self)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (priv->texture != NULL &&
|
if (priv->texture != NULL &&
|
||||||
(width != cogl_texture_get_width (priv->texture) ||
|
(width != (int)cogl_texture_get_width (priv->texture) ||
|
||||||
height != cogl_texture_get_height (priv->texture)))
|
height != (int)cogl_texture_get_height (priv->texture)))
|
||||||
{
|
{
|
||||||
cogl_object_unref (priv->texture);
|
cogl_object_unref (priv->texture);
|
||||||
priv->texture = NULL;
|
priv->texture = NULL;
|
||||||
|
@ -211,7 +211,7 @@ calculate_gaussian_kernel (gdouble sigma,
|
|||||||
{
|
{
|
||||||
gdouble *ret, sum;
|
gdouble *ret, sum;
|
||||||
gdouble exp_divisor;
|
gdouble exp_divisor;
|
||||||
gint half, i;
|
guint half, i;
|
||||||
|
|
||||||
g_return_val_if_fail (sigma > 0, NULL);
|
g_return_val_if_fail (sigma > 0, NULL);
|
||||||
|
|
||||||
|
@ -960,7 +960,7 @@ st_theme_node_prerender_background (StThemeNode *node,
|
|||||||
gboolean draw_background_image_shadow = FALSE;
|
gboolean draw_background_image_shadow = FALSE;
|
||||||
gboolean has_visible_outline;
|
gboolean has_visible_outline;
|
||||||
ClutterColor border_color;
|
ClutterColor border_color;
|
||||||
int border_width[4];
|
guint border_width[4];
|
||||||
guint rowstride;
|
guint rowstride;
|
||||||
guchar *data;
|
guchar *data;
|
||||||
ClutterActorBox actor_box;
|
ClutterActorBox actor_box;
|
||||||
@ -1588,10 +1588,10 @@ st_theme_node_paint_borders (StThemeNodePaintState *state,
|
|||||||
{
|
{
|
||||||
StThemeNode *node = state->node;
|
StThemeNode *node = state->node;
|
||||||
float width, height;
|
float width, height;
|
||||||
int border_width[4];
|
guint border_width[4];
|
||||||
guint border_radius[4];
|
guint border_radius[4];
|
||||||
int max_border_radius = 0;
|
guint max_border_radius = 0;
|
||||||
int max_width_radius[4];
|
guint max_width_radius[4];
|
||||||
int corner_id, side_id;
|
int corner_id, side_id;
|
||||||
ClutterColor border_color;
|
ClutterColor border_color;
|
||||||
guint8 alpha;
|
guint8 alpha;
|
||||||
|
@ -349,7 +349,7 @@ static void
|
|||||||
st_widget_finalize (GObject *gobject)
|
st_widget_finalize (GObject *gobject)
|
||||||
{
|
{
|
||||||
StWidgetPrivate *priv = ST_WIDGET (gobject)->priv;
|
StWidgetPrivate *priv = ST_WIDGET (gobject)->priv;
|
||||||
int i;
|
guint i;
|
||||||
|
|
||||||
g_free (priv->style_class);
|
g_free (priv->style_class);
|
||||||
g_free (priv->pseudo_class);
|
g_free (priv->pseudo_class);
|
||||||
@ -1495,7 +1495,7 @@ static void
|
|||||||
st_widget_init (StWidget *actor)
|
st_widget_init (StWidget *actor)
|
||||||
{
|
{
|
||||||
StWidgetPrivate *priv;
|
StWidgetPrivate *priv;
|
||||||
int i;
|
guint i;
|
||||||
|
|
||||||
actor->priv = priv = ST_WIDGET_GET_PRIVATE (actor);
|
actor->priv = priv = ST_WIDGET_GET_PRIVATE (actor);
|
||||||
priv->transition_animation = NULL;
|
priv->transition_animation = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user