[gnome-builder] search: handle clearing of selected row
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] search: handle clearing of selected row
- Date: Thu, 22 Jan 2015 21:48:33 +0000 (UTC)
commit d1436fd3a36f62135825861d24aeb63c5fc7aefe
Author: Christian Hergert <christian hergert me>
Date: Thu Jan 22 13:47:57 2015 -0800
search: handle clearing of selected row
src/search/gb-search-display-group.c | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/src/search/gb-search-display-group.c b/src/search/gb-search-display-group.c
index 765f1a5..c5180fb 100644
--- a/src/search/gb-search-display-group.c
+++ b/src/search/gb-search-display-group.c
@@ -269,15 +269,18 @@ gb_search_display_group_row_selected (GbSearchDisplayGroup *group,
g_return_if_fail (!row || GTK_IS_LIST_BOX_ROW (row));
g_return_if_fail (GTK_IS_LIST_BOX (list_box));
- child = gtk_bin_get_child (GTK_BIN (row));
-
- if (GB_IS_SEARCH_DISPLAY_ROW (child))
+ if (row)
{
- GbSearchResult *result;
+ child = gtk_bin_get_child (GTK_BIN (row));
- result = gb_search_display_row_get_result (GB_SEARCH_DISPLAY_ROW (child));
- if (result)
- g_signal_emit (group, gSignals [RESULT_SELECTED], 0, result);
+ if (GB_IS_SEARCH_DISPLAY_ROW (child))
+ {
+ GbSearchResult *result;
+
+ result = gb_search_display_row_get_result (GB_SEARCH_DISPLAY_ROW (child));
+ if (result)
+ g_signal_emit (group, gSignals [RESULT_SELECTED], 0, result);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]