[gnome-builder] GbDocumentMenuButton: fix filter with empty search
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] GbDocumentMenuButton: fix filter with empty search
- Date: Thu, 11 Dec 2014 00:09:22 +0000 (UTC)
commit 75f1806949d5002b0379094993a849fb854576ad
Author: Christian Hergert <christian hergert me>
Date: Mon Dec 8 00:28:23 2014 -0800
GbDocumentMenuButton: fix filter with empty search
src/documents/gb-document-menu-button.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/documents/gb-document-menu-button.c b/src/documents/gb-document-menu-button.c
index 24f6fc2..2a65f74 100644
--- a/src/documents/gb-document-menu-button.c
+++ b/src/documents/gb-document-menu-button.c
@@ -434,9 +434,12 @@ gb_document_menu_button_filter_func (GtkListBoxRow *row,
g_return_val_if_fail (GB_IS_DOCUMENT_MENU_BUTTON (button), FALSE);
+ str = gtk_entry_get_text (GTK_ENTRY (button->priv->search_entry));
+ if (gb_str_empty0 (str))
+ return TRUE;
+
document = g_object_get_data (G_OBJECT (row), "GB_DOCUMENT");
title = gb_document_get_title (document);
- str = gtk_entry_get_text (GTK_ENTRY (button->priv->search_entry));
/*
* TODO: Replace this with a proper fuzzy search with scoring and
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]