[gtksourceview] completion: hide before clearing values
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] completion: hide before clearing values
- Date: Sun, 12 Jun 2022 03:38:38 +0000 (UTC)
commit e15ef026ff9e2f6a5993475b105df53142345f20
Author: Christian Hergert <chergert redhat com>
Date: Sat Jun 11 20:34:45 2022 -0700
completion: hide before clearing values
This just results in doing less work while the widget is already hidden.
gtksourceview/gtksourcecompletionlistbox.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtksourceview/gtksourcecompletionlistbox.c b/gtksourceview/gtksourcecompletionlistbox.c
index b525c4f8..02600900 100644
--- a/gtksourceview/gtksourcecompletionlistbox.c
+++ b/gtksourceview/gtksourcecompletionlistbox.c
@@ -871,9 +871,9 @@ gtk_source_completion_list_box_do_update (GtkSourceCompletionListBox *self,
}
else
{
+ gtk_widget_hide (GTK_WIDGET (iter));
_gtk_source_completion_list_box_row_display (GTK_SOURCE_COMPLETION_LIST_BOX_ROW
(iter),
NULL, NULL, NULL, self->show_icons,
FALSE);
- gtk_widget_hide (GTK_WIDGET (iter));
}
state.position++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]