[gnome-builder/document-manager] GbDocumentMenuButton: fix filter with empty search
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/document-manager] GbDocumentMenuButton: fix filter with empty search
- Date: Mon, 8 Dec 2014 08:29:26 +0000 (UTC)
commit f58fe95a45d12ebbf1961d53706bd48461b2c6e1
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]