summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorLogan Rathbone <poprocks@gmail.com>2023-02-01 09:09:28 -0500
committerLogan Rathbone <poprocks@gmail.com>2023-02-01 21:00:29 -0500
commit7a80b6702a3a3f2eac26640b369c9c87ae163041 (patch)
treea4d1e3a15300294c9ebaec55ca0b470b9e971840 /src/util.c
parente2df75b842334878f0b234eed6613544f102af48 (diff)
downloadzenity-7a80b6702a3a3f2eac26640b369c9c87ae163041.tar.gz
tree: Initial port to GtkColumnView
There are likely bugs. Search functionality still needs to be implemented.
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 1cc21af..8cfae93 100644
--- a/src/util.c
+++ b/src/util.c
@@ -105,6 +105,10 @@ zenity_util_load_ui_file (const char *root_widget, ...)
g_ptr_array_add (ptrarray, NULL);
objects = (char **)g_ptr_array_free (ptrarray, FALSE);
+ /* Make sure this custom widget type is registered before this initial
+ * GtkBuilder method call. */
+ g_type_ensure (ZENITY_TREE_TYPE_COLUMN_VIEW);
+
result = gtk_builder_add_objects_from_resource (builder,
ZENITY_UI_RESOURCE_PATH,
(const char **)objects,