[tracker] tracker-search-bar: Fixed some gobject NULL checking warnings
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] tracker-search-bar: Fixed some gobject NULL checking warnings
- Date: Mon, 2 Nov 2009 17:29:46 +0000 (UTC)
commit 06ef44b0ffe1762c509a632e5a0bcd5b1e41cf20
Author: Martyn Russell <martyn lanedo com>
Date: Mon Nov 2 17:24:33 2009 +0000
tracker-search-bar: Fixed some gobject NULL checking warnings
src/tracker-search-bar/tracker-results-window.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker-search-bar/tracker-results-window.c b/src/tracker-search-bar/tracker-results-window.c
index ac8c358..a1459ba 100644
--- a/src/tracker-search-bar/tracker-results-window.c
+++ b/src/tracker-search-bar/tracker-results-window.c
@@ -721,9 +721,11 @@ model_pixbuf_cell_data_func (GtkTreeViewColumn *tree_column,
COL_URN, &urn,
-1);
- /* FIXME: Should use category */
- pixbuf = pixbuf_get (window, urn, (category & CATEGORY_IMAGE));
- g_free (urn);
+ if (urn) {
+ /* FIXME: Should use category */
+ pixbuf = pixbuf_get (window, urn, category);
+ g_free (urn);
+ }
/* Cache it in the store */
gtk_list_store_set (GTK_LIST_STORE (model), iter,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]