GtkTreeView rules_hint is deprecated after version 3.14

Rules hint is deprecated after version 3.14, add version test to remove.
This commit is contained in:
Robert Fewell 2017-06-24 12:01:30 +01:00
parent 4d61403037
commit 44cf167297
3 changed files with 6 additions and 2 deletions

View File

@ -297,7 +297,9 @@ gnc_find_account_dialog_create (GtkWidget *parent, FindAccountDialog *facc_dialo
G_CALLBACK(row_double_clicked), (gpointer)facc_dialog);
/* Enable alternative line colors */
#if !GTK_CHECK_VERSION(3, 14, 0)
gtk_tree_view_set_rules_hint (GTK_TREE_VIEW(facc_dialog->view), TRUE);
#endif
/* default to 'close' button */
gtk_dialog_set_default_response (GTK_DIALOG(dialog), GTK_RESPONSE_CLOSE);

View File

@ -688,8 +688,9 @@ gnc_imap_dialog_create (GtkWidget *parent, ImapDialog *imap_dialog)
gtk_tree_model_filter_set_visible_column (GTK_TREE_MODEL_FILTER(filter), FILTER);
/* Enable alternative line colors */
#if !GTK_CHECK_VERSION(3, 14, 0)
gtk_tree_view_set_rules_hint (GTK_TREE_VIEW(imap_dialog->view), TRUE);
#endif
/* default to 'close' button */
gtk_dialog_set_default_response (GTK_DIALOG(dialog), GTK_RESPONSE_CLOSE);

View File

@ -435,8 +435,9 @@ gnc_assoc_dialog_create (AssocDialog *assoc_dialog)
G_CALLBACK(row_selected_cb), (gpointer)assoc_dialog);
/* Enable alternative line colors */
#if !GTK_CHECK_VERSION(3, 14, 0)
gtk_tree_view_set_rules_hint (GTK_TREE_VIEW(assoc_dialog->view), TRUE);
#endif
/* default to 'close' button */
gtk_dialog_set_default_response (GTK_DIALOG(dialog), GTK_RESPONSE_CLOSE);