[gnome-builder/wip/gtk4-port: 1275/1774] plugins/find-other-file: more assertions




commit fcd875bd0f8425d928201bfc88ecc967a5c2b625
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jun 1 13:00:36 2022 -0700

    plugins/find-other-file: more assertions

 src/plugins/find-other-file/gbp-find-other-file-workspace-addin.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/plugins/find-other-file/gbp-find-other-file-workspace-addin.c 
b/src/plugins/find-other-file/gbp-find-other-file-workspace-addin.c
index af287fe88..0e64b121f 100644
--- a/src/plugins/find-other-file/gbp-find-other-file-workspace-addin.c
+++ b/src/plugins/find-other-file/gbp-find-other-file-workspace-addin.c
@@ -115,6 +115,9 @@ gbp_find_other_file_workspace_addin_list_similar_cb (GObject      *object,
       IDE_EXIT;
     }
 
+  g_assert (GBP_IS_FIND_OTHER_FILE_BROWSER (self->browser));
+  g_assert (G_IS_LIST_MODEL (model));
+
   joined = join_models (G_LIST_MODEL (self->browser), model);
   gbp_find_other_file_popover_set_model (self->popover, joined);
   gtk_widget_show (GTK_WIDGET (self->menu_button));


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