Avoid gtk_tree_view_set_rules_hint() with GTK+4

This commit is contained in:
Paul Cornett
2017-12-19 09:56:23 -08:00
parent 35f6a7c1d8
commit 96befc88c0
2 changed files with 6 additions and 1 deletions

View File

@@ -118,7 +118,9 @@ GtkWidget *gtk_assert_dialog_create_backtrace_list_model ()
treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL(store));
g_object_unref (store);
#ifndef __WXGTK4__
wxGCC_WARNING_SUPPRESS(deprecated-declarations)
gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (treeview), TRUE);
wxGCC_WARNING_RESTORE()
#endif
/* append columns */

View File

@@ -4627,8 +4627,11 @@ bool wxDataViewCtrl::Create(wxWindow *parent,
gtk_tree_view_set_grid_lines( GTK_TREE_VIEW(m_treeview), grid );
}
#endif
#ifndef __WXGTK4__
wxGCC_WARNING_SUPPRESS(deprecated-declarations)
gtk_tree_view_set_rules_hint( GTK_TREE_VIEW(m_treeview), (style & wxDV_ROW_LINES) != 0 );
wxGCC_WARNING_RESTORE()
#endif
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (m_widget),
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);