changeset 1264:de24174d9e55

Silent two minor warnings: GtkSelectionData data field is guchar* while g_strndup() wants gchar * as first parameter.
author zas_
date Mon, 26 Jan 2009 14:59:49 +0000
parents 267943c58be1
children 0b94f0e6e3d0
files src/view_file_icon.c src/view_file_list.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/view_file_icon.c	Mon Jan 26 14:50:56 2009 +0000
+++ b/src/view_file_icon.c	Mon Jan 26 14:59:49 2009 +0000
@@ -565,7 +565,7 @@
 		if (id && id->fd) {
 			/* Add keywords to file */
 			FileData *fd = id->fd;
-			gchar *str = g_strndup(selection->data, selection->length);
+			gchar *str = g_strndup((gchar *)selection->data, selection->length);
 			GList *kw_list = string_to_keywords_list(str);
 			
 			metadata_append_list(fd, KEYWORD_KEY, kw_list);
--- a/src/view_file_list.c	Mon Jan 26 14:50:56 2009 +0000
+++ b/src/view_file_list.c	Mon Jan 26 14:59:49 2009 +0000
@@ -320,7 +320,7 @@
 
 		if (fd) {
 			/* Add keywords to file */
-			gchar *str = g_strndup(selection->data, selection->length);
+			gchar *str = g_strndup((gchar *)selection->data, selection->length);
 			GList *kw_list = string_to_keywords_list(str);
 			
 			metadata_append_list(fd, KEYWORD_KEY, kw_list);