[giggle] Fix compilation warning: cast to guchar*



commit 84d1b374612615caf093d6f5d81a413ffb95816d
Author: Javier Jardón <jjardon gnome org>
Date:   Fri Jan 22 05:32:54 2010 +0100

    Fix compilation warning: cast to guchar*

 data/.gitignore        |    1 -
 src/giggle-view-file.c |    2 +-
 2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/data/.gitignore b/data/.gitignore
index 2b134ed..55d7f1a 100644
--- a/data/.gitignore
+++ b/data/.gitignore
@@ -1,5 +1,4 @@
 *.bak
-*.gladep
 Makefile.in
 Makefile
 giggle.desktop
diff --git a/src/giggle-view-file.c b/src/giggle-view-file.c
index 046e57b..6aa07d0 100644
--- a/src/giggle-view-file.c
+++ b/src/giggle-view-file.c
@@ -710,7 +710,7 @@ view_file_find_language (GiggleViewFile *view,
 	manager = gtk_source_language_manager_get_default ();
 	ids = gtk_source_language_manager_get_language_ids (manager);
 
-	content_type = g_content_type_guess (priv->current_file, text, len, NULL);
+	content_type = g_content_type_guess (priv->current_file, (guchar *)text, len, NULL);
 	filename = g_path_get_basename (priv->current_file);
 
 	for (; *ids; ++ids) {



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