Revision: 1008 http://svn.sourceforge.net/geany/?rev=1008&view=rev Author: ntrel Date: 2006-11-17 04:19:31 -0800 (Fri, 17 Nov 2006)
Log Message: ----------- Fix sign comparison warnings.
Modified Paths: -------------- trunk/ChangeLog trunk/src/callbacks.c trunk/src/document.c trunk/src/document.h trunk/src/sci_cb.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2006-11-17 12:16:20 UTC (rev 1007) +++ trunk/ChangeLog 2006-11-17 12:19:31 UTC (rev 1008) @@ -1,3 +1,11 @@ +2006-11-17 Nick Treleaven nick.treleaven@btinternet.com + + * src/search.c: + Change Find Next/Previous buttons to use better stock icons. + * src/callbacks.c, src/sci_cb.c, src/document.c, src/document.h: + Fix sign comparison warnings. + + 2006-11-16 Enrico Tröger enrico.troeger@uvena.de
* src/main.c: Enabled DnD also for the main notebook widget to drop
Modified: trunk/src/callbacks.c =================================================================== --- trunk/src/callbacks.c 2006-11-17 12:16:20 UTC (rev 1007) +++ trunk/src/callbacks.c 2006-11-17 12:19:31 UTC (rev 1008) @@ -2083,7 +2083,7 @@ drag_context->action = GDK_ACTION_COPY; }
- document_open_file_list(data->data, data->length); + document_open_file_list((const gchar *)data->data, data->length);
success = TRUE; }
Modified: trunk/src/document.c =================================================================== --- trunk/src/document.c 2006-11-17 12:16:20 UTC (rev 1007) +++ trunk/src/document.c 2006-11-17 12:19:31 UTC (rev 1008) @@ -765,7 +765,7 @@
/* Takes a new line separated list of filename URIs and opens each file. * length is the length of the string or -1 if it should be detected */ -void document_open_file_list(const gchar *data, gsize length) +void document_open_file_list(const gchar *data, gssize length) { gint i; gchar *filename; @@ -773,7 +773,7 @@
if (data == NULL) return;
- if (length == -1) + if (length < 0) length = strlen(data);
switch (utils_get_line_endings((gchar*) data, length))
Modified: trunk/src/document.h =================================================================== --- trunk/src/document.h 2006-11-17 12:16:20 UTC (rev 1007) +++ trunk/src/document.h 2006-11-17 12:19:31 UTC (rev 1008) @@ -133,7 +133,7 @@
/* Takes a new line separated list of filename URIs and opens each file. * length is the length of the string or -1 if it should be detected */ -void document_open_file_list(const gchar *data, gsize length); +void document_open_file_list(const gchar *data, gssize length);
int document_reload_file(gint idx, const gchar *forced_enc);
Modified: trunk/src/sci_cb.c =================================================================== --- trunk/src/sci_cb.c 2006-11-17 12:16:20 UTC (rev 1007) +++ trunk/src/sci_cb.c 2006-11-17 12:19:31 UTC (rev 1008) @@ -271,9 +271,7 @@ { if (nt->text != NULL) { - gsize len = strlen(nt->text); - if (len > 0) - document_open_file_list(nt->text, len); + document_open_file_list(nt->text, -1); } break; }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.