Revision: 1131 http://svn.sourceforge.net/geany/?rev=1131&view=rev Author: ntrel Date: 2006-12-20 07:57:28 -0800 (Wed, 20 Dec 2006)
Log Message: ----------- Remove unneeded static from current word strings.
Modified Paths: -------------- trunk/ChangeLog trunk/src/callbacks.c trunk/src/search.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2006-12-20 15:43:01 UTC (rev 1130) +++ trunk/ChangeLog 2006-12-20 15:57:28 UTC (rev 1131) @@ -7,6 +7,8 @@ Separate recreate_tag_list() from ui_update_tag_list(). * src/vte.c: Stop Valgrind complaining about a vc->emulation leak. + * src/callbacks.c, src/search.c: + Remove unneeded static from current word strings.
2006-12-18 Enrico Tröger enrico.troeger@uvena.de
Modified: trunk/src/callbacks.c =================================================================== --- trunk/src/callbacks.c 2006-12-20 15:43:01 UTC (rev 1130) +++ trunk/src/callbacks.c 2006-12-20 15:57:28 UTC (rev 1131) @@ -1245,7 +1245,7 @@ on_show_color_chooser1_activate (GtkMenuItem *menuitem, gpointer user_data) { - static gchar colour[9]; + gchar colour[9]; gint idx = document_get_cur_idx(); gint pos = sci_get_current_position(doc_list[idx].sci);
Modified: trunk/src/search.c =================================================================== --- trunk/src/search.c 2006-12-20 15:43:01 UTC (rev 1130) +++ trunk/src/search.c 2006-12-20 15:57:28 UTC (rev 1131) @@ -231,11 +231,11 @@ } else if (sci_get_lines_selected(doc_list[idx].sci) == 0) { // use the word at current cursor position - static gchar word[GEANY_MAX_WORD_LENGTH]; + gchar word[GEANY_MAX_WORD_LENGTH]; + sci_cb_find_current_word(doc_list[idx].sci, -1, word, sizeof(word)); if (word[0] != '\0') s = g_strdup(word); } - return s; }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.