[gtksourceview/gtksourceview-5-4] completion: hide before clearing values



commit afed404da794a267c3652686fdc60b0f1933773f
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 9f0b190d..5e6e29b8 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]