Improved ws_entry_visible
This commit is contained in:
parent
686f828c81
commit
130ce196a2
@ -19,7 +19,7 @@ static gboolean mainWindow_workspace_entry_visible(GtkTreeModel *model,
|
|||||||
|
|
||||||
searchString = (gchar *)gtk_entry_get_text(GTK_ENTRY(mainWindow->workspaceSearch));
|
searchString = (gchar *)gtk_entry_get_text(GTK_ENTRY(mainWindow->workspaceSearch));
|
||||||
|
|
||||||
if (g_strcmp0(searchString, "")) {
|
if (searchString[0]) {
|
||||||
regex = g_regex_new(searchString, G_REGEX_CASELESS, 0, NULL);
|
regex = g_regex_new(searchString, G_REGEX_CASELESS, 0, NULL);
|
||||||
gtk_tree_model_get(model, iter, WSCOL_PATH, &temp, -1);
|
gtk_tree_model_get(model, iter, WSCOL_PATH, &temp, -1);
|
||||||
if (g_regex_match(regex, temp, 0, &match_info) && g_match_info_matches(match_info))
|
if (g_regex_match(regex, temp, 0, &match_info) && g_match_info_matches(match_info))
|
||||||
|
Loading…
Reference in New Issue
Block a user