[gtk] recorder: Don't try to print info about a NULL list model
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] recorder: Don't try to print info about a NULL list model
- Date: Fri, 1 Feb 2019 17:53:55 +0000 (UTC)
commit 4dca2f9604e2a57d6b6b5ba7557b7cca391846af
Author: Timm Bäder <mail baedert org>
Date: Thu Jan 31 17:00:50 2019 +0100
recorder: Don't try to print info about a NULL list model
gtk/inspector/recorder.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtk/inspector/recorder.c b/gtk/inspector/recorder.c
index c9053f89c3..8601e77c37 100644
--- a/gtk/inspector/recorder.c
+++ b/gtk/inspector/recorder.c
@@ -396,13 +396,14 @@ recordings_list_row_selected (GtkListBox *box,
NULL, NULL);
g_object_unref (root_model);
g_object_unref (paintable);
+
+ g_print ("%u render nodes\n", g_list_model_get_n_items (G_LIST_MODEL (priv->render_node_model)));
}
else
{
gtk_picture_set_paintable (GTK_PICTURE (priv->render_node_view), NULL);
}
- g_print ("%u render nodes\n", g_list_model_get_n_items (G_LIST_MODEL (priv->render_node_model)));
gtk_list_box_bind_model (GTK_LIST_BOX (priv->render_node_list),
G_LIST_MODEL (priv->render_node_model),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]