Skip to content

Commit 69ade8a

Browse files
Merge pull request #1 from linuxmint/master
@mtwebster nemo-query-editor.c: Don't use new glib function. [42c6152](42c6152) @zquestz Add Matcha to Supported Theme Hints (linuxmint#3573) [94d5975](94d5975)
2 parents 9730abb + 94d5975 commit 69ade8a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/nemo-application.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ add_fallback_mandatory_css_provider (const gchar *theme_name)
243243
static const char *supported_theme_hints[] = {
244244
"mint",
245245
"arc",
246-
"numix"
246+
"numix",
247+
"matcha"
247248
};
248249

249250
static gboolean

src/nemo-query-editor.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ NemoQuery *
492492
nemo_query_editor_get_query (NemoQueryEditor *editor)
493493
{
494494
NemoQuery *query;
495+
gchar *sanitized = NULL;
495496
const gchar *content_search_text = NULL;
496497

497498
if (editor == NULL || editor->priv == NULL || editor->priv->file_entry == NULL) {
@@ -509,7 +510,10 @@ nemo_query_editor_get_query (NemoQueryEditor *editor)
509510
nemo_query_set_recurse (query, gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (editor->priv->file_recurse_toggle)));
510511
nemo_query_set_location (query, editor->priv->current_uri);
511512

512-
GString *file_string = g_string_new_take (get_sanitized_file_search_string (editor));
513+
sanitized = get_sanitized_file_search_string (editor);
514+
GString *file_string = g_string_new (sanitized);
515+
g_free (sanitized);
516+
513517
/* - Search for 'all' needs to be different depending on whether regex is enabled for files.
514518
- Our non-regex search traditionally implied '*words*', not 'words'. Now that we're using
515519
GPatternSpec, we need to add those ourselves. */

0 commit comments

Comments
 (0)