GTK4: no support for gtk_tree_view_set_rules_hint

Don't use gtk_tree_view_set_rules_hint() in GTK+4, it's not available.

It is also deprecated in GTK+3 since 3.14, and the documentation advises
to not use it at all, but I will leave the decision about whether to
remove it entirely to someone else.
This commit is contained in:
Rafael Kitover
2017-12-11 02:30:43 -08:00
committed by paulcor
parent 9f3aa0b4e5
commit 52f231c9ff

View File

@@ -106,7 +106,9 @@ GtkWidget *gtk_assert_dialog_create_backtrace_list_model ()
/* create the tree view */ /* create the tree view */
treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL(store)); treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL(store));
g_object_unref (store); g_object_unref (store);
#ifndef __WXGTK4__
gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (treeview), TRUE); gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (treeview), TRUE);
#endif
/* append columns */ /* append columns */
gtk_assert_dialog_append_text_column(treeview, "#", STACKFRAME_LEVEL_COLIDX); gtk_assert_dialog_append_text_column(treeview, "#", STACKFRAME_LEVEL_COLIDX);