Commit 1a361d7a authored by Rebecca Schulman's avatar Rebecca Schulman Committed by Rebecca Schulman

completely got rid of the committed, half-written code. I fixed this last

2000-07-27  Rebecca Schulman  <rebecka@eazel.com>

	* src/nautilus-complex-search-bar.c:
	(nautilus_complex_search_bar_get_location):
	completely got rid of the committed,
	half-written code.
	I fixed this last night, but Mathieu's
	commit seems to have overwritten mine.
parent 1d48e920
2000-07-27 Rebecca Schulman <rebecka@eazel.com>
* src/nautilus-complex-search-bar.c:
(nautilus_complex_search_bar_get_location):
completely got rid of the committed,
half-written code.
I fixed this last night, but Mathieu's
commit seems to have overwritten mine.
2000-07-27 Darin Adler <darin@eazel.com>
* src/nautilus-complex-search-bar.c:
......
......@@ -149,24 +149,7 @@ nautilus_complex_search_bar_initialize (NautilusComplexSearchBar *bar)
static char *
nautilus_complex_search_bar_get_location (NautilusComplexSearchBar *bar)
{
char *location;
GSList *criteria;
g_return_val_if_fail (bar->details->search_criteria != NULL, g_strdup ("search:[file:///]"));
location = g_strdup ("search:[file:///]");
for (criteria = bar->details->search_criteria; criteria != NULL; criteria = criteria->next) {
/* FIXME: 1: It's missing a NULL on the end so it
* crashes unless you are "lucky". 2: It leaks because
* the old location isn't freed. Perhaps use GString
* instead? 3: It's 1/2-written code that doesn't do
* anything.
*/
/* location = g_strconcat (location, ""); */
}
/* FIXME: Not implemented yet. */
return location;
return "search:[file:///]";
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment