[gnome-control-center] shell: Fix warning in renderer
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] shell: Fix warning in renderer
- Date: Mon, 7 Mar 2011 18:02:54 +0000 (UTC)
commit 6653f3276e3b450cbf987a5d5c57ef67f499c410
Author: Bastien Nocera <hadess hadess net>
Date: Mon Mar 7 17:54:57 2011 +0000
shell: Fix warning in renderer
shell/shell-search-renderer.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/shell/shell-search-renderer.c b/shell/shell-search-renderer.c
index 42368da..2bee82c 100644
--- a/shell/shell-search-renderer.c
+++ b/shell/shell-search-renderer.c
@@ -148,7 +148,10 @@ shell_search_renderer_set_layout (ShellSearchRenderer *cell, GtkWidget *widget)
full_string = priv->search_target;
- needle = g_utf8_casefold (priv->search_string, -1);
+ if (priv->search_string != NULL)
+ needle = g_utf8_casefold (priv->search_string, -1);
+ else
+ needle = NULL;
haystack = g_utf8_casefold (full_string, -1);
/* clear any previous attributes */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]