[gnome-builder] spellchecker: fix clearing the suggestion box



commit 0f414ac080cd558c49dbf890e10c36aaab2035b4
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Sat Jan 14 00:58:24 2017 +0100

    spellchecker: fix clearing the suggestion box
    
    Clearing the suggestion box trigger a selected row
    with a NULL ref, we change the g_assert to
    allow that.

 libide/editor/ide-editor-spell-widget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/editor/ide-editor-spell-widget.c b/libide/editor/ide-editor-spell-widget.c
index aa10164..4b96c7b 100644
--- a/libide/editor/ide-editor-spell-widget.c
+++ b/libide/editor/ide-editor-spell-widget.c
@@ -484,7 +484,7 @@ ide_editor_spell_widget__row_selected_cb (IdeEditorSpellWidget *self,
   GtkLabel *label;
 
   g_assert (IDE_IS_EDITOR_SPELL_WIDGET (self));
-  g_assert (GTK_IS_LIST_BOX_ROW (row));
+  g_assert (GTK_IS_LIST_BOX_ROW (row) || row == NULL);
   g_assert (GTK_IS_LIST_BOX (listbox));
 
   if (row != NULL)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]