[gtk+] Fix warning: cast to gchar*



commit cbba733b47424cfe44f7a358317db14a406d2374
Author: Javier Jardón <jjardon gnome org>
Date:   Thu Oct 29 03:58:00 2009 +0100

    Fix warning: cast to gchar*

 gtk/gtkcolorsel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcolorsel.c b/gtk/gtkcolorsel.c
index a23ff5e..63f6fde 100644
--- a/gtk/gtkcolorsel.c
+++ b/gtk/gtkcolorsel.c
@@ -1068,7 +1068,7 @@ set_focus_line_attributes (GtkWidget *drawing_area,
 
   if (dash_list[0])
     {
-      gint n_dashes = strlen (dash_list);
+      gint n_dashes = strlen ((gchar *)dash_list);
       gdouble *dashes = g_new (gdouble, n_dashes);
       gdouble total_length = 0;
       gdouble dash_offset;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]