[gtk: 1/2] Allow passing a `NULL` factory to `gtk_column_view_column_new()`
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/2] Allow passing a `NULL` factory to `gtk_column_view_column_new()`
- Date: Thu, 10 Feb 2022 11:42:39 +0000 (UTC)
commit 8245fd4beb5db4fc7ea2dc3b5b82890673ea81c2
Author: Sebastian Dröge <sebastian centricular com>
Date: Tue Feb 8 16:25:28 2022 +0200
Allow passing a `NULL` factory to `gtk_column_view_column_new()`
gtk/gtkcolumnviewcolumn.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkcolumnviewcolumn.c b/gtk/gtkcolumnviewcolumn.c
index ad62b34eca..557b9debd4 100644
--- a/gtk/gtkcolumnviewcolumn.c
+++ b/gtk/gtkcolumnviewcolumn.c
@@ -379,7 +379,7 @@ gtk_column_view_column_new (const char *title,
{
GtkColumnViewColumn *result;
- g_return_val_if_fail (GTK_IS_LIST_ITEM_FACTORY (factory), NULL);
+ g_return_val_if_fail (factory == NULL || GTK_IS_LIST_ITEM_FACTORY (factory), NULL);
result = g_object_new (GTK_TYPE_COLUMN_VIEW_COLUMN,
"factory", factory,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]