[gnome-builder/wip/gtk4-port] plugins/find-other-file: more assertions
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] plugins/find-other-file: more assertions
- Date: Wed, 1 Jun 2022 20:07:26 +0000 (UTC)
commit 68b23d27308358fd8ce471b78ef4006e513f0e51
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]