cast pointers to fix warnings about signdness.

2007-11-14  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkstyle.c (gtk_default_draw_focus): cast pointers to fix
	warnings about signdness.


svn path=/trunk/; revision=18988
This commit is contained in:
Michael Natterer 2007-11-14 09:45:14 +00:00 committed by Michael Natterer
parent 50f412114b
commit 24a6e04cb2
2 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2007-11-14 Michael Natterer <mitch@imendio.com>
* gtk/gtkstyle.c (gtk_default_draw_focus): cast pointers to fix
warnings about signdness.
2007-11-12 Sven Herzberg <herzi@imendio.com>
Reviewed by Richard:

View File

@ -4521,7 +4521,7 @@ gtk_default_draw_focus (GtkStyle *style,
cairo_t *cr;
gboolean free_dash_list = FALSE;
gint line_width = 1;
gint8 *dash_list = "\1\1";
gint8 *dash_list = (gint8 *) "\1\1";
if (widget)
{
@ -4537,15 +4537,15 @@ gtk_default_draw_focus (GtkStyle *style,
{
if (free_dash_list)
g_free (dash_list);
dash_list = "\4\4";
dash_list = (gint8 *) "\4\4";
free_dash_list = FALSE;
}
sanitize_size (window, &width, &height);
cr = gdk_cairo_create (window);
if (detail && !strcmp (detail, "colorwheel_light"))
cairo_set_source_rgb (cr, 0., 0., 0.);
else if (detail && !strcmp (detail, "colorwheel_dark"))
@ -4557,7 +4557,7 @@ gtk_default_draw_focus (GtkStyle *style,
if (dash_list[0])
{
gint n_dashes = strlen (dash_list);
gint n_dashes = strlen ((const gchar *) dash_list);
gdouble *dashes = g_new (gdouble, n_dashes);
gdouble total_length = 0;
gdouble dash_offset;