|
Lines 333-341
tomoe_context_search_by_strokes (TomoeCo
Link Here
|
| 333 |
g_return_val_if_fail (TOMOE_IS_RECOGNIZER (priv->recognizer), matched); |
333 |
g_return_val_if_fail (TOMOE_IS_RECOGNIZER (priv->recognizer), matched); |
| 334 |
} |
334 |
} |
| 335 |
|
335 |
|
| 336 |
if (tomoe_recognizer_is_available (priv->recognizer)) |
336 |
if (tomoe_recognizer_is_available (priv->recognizer)) { |
| 337 |
matched = g_list_sort (tomoe_recognizer_search (priv->recognizer, input), |
337 |
// no need to search again, simple search already return with sorted list |
| 338 |
_candidate_compare_func); |
338 |
// avoid empty glist search as well |
|
|
339 |
matched = tomoe_recognizer_search (priv->recognizer, input); |
| 340 |
} |
| 339 |
|
341 |
|
| 340 |
return matched; |
342 |
return matched; |
| 341 |
} |
343 |
} |