diff options
Diffstat (limited to 'src/plugins/fs/search.c')
-rw-r--r-- | src/plugins/fs/search.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c index a3ac8bc0..8597fdb8 100644 --- a/src/plugins/fs/search.c +++ b/src/plugins/fs/search.c | |||
@@ -83,8 +83,10 @@ static void updateSearchSummary(SearchList * searchContext) { | |||
83 | 83 | ||
84 | /* update tab title with the number of results */ | 84 | /* update tab title with the number of results */ |
85 | new_title = | 85 | new_title = |
86 | g_strdup_printf("%s (%u)", | 86 | g_strdup_printf("%.*s%s (%u)", |
87 | 20, | ||
87 | searchContext->searchString, | 88 | searchContext->searchString, |
89 | strlen(searchContext->searchString) > 20 ? "..." : "", | ||
88 | searchContext->resultsReceived); | 90 | searchContext->resultsReceived); |
89 | label = GTK_LABEL(glade_xml_get_widget(searchContext->labelXML, | 91 | label = GTK_LABEL(glade_xml_get_widget(searchContext->labelXML, |
90 | "searchTabLabel")); | 92 | "searchTabLabel")); |