Don't use the deprecated Gtk.TreeView.rules_hint feature (#201)

According to the Gtk documentation, the appearance of the ruled tree
depends on the selected theme. Hence, if you need “zebra striping”,
just use the related theme.
This commit is contained in:
Yegor Yefremov 2023-05-24 17:25:56 +02:00 committed by GitHub
parent 8818fc4218
commit 7ab8afc51b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 0 additions and 5 deletions

View File

@ -70,7 +70,6 @@ class ExcludeAppsBox : Gtk.Box{
treeview = new TreeView();
treeview.get_selection().mode = SelectionMode.MULTIPLE;
treeview.headers_visible = false;
treeview.rules_hint = true;
treeview.reorderable = true;
treeview.set_tooltip_column(2);
//treeview.row_activated.connect(treeview_row_activated);

View File

@ -84,7 +84,6 @@ public class ExcludeMessageWindow : Gtk.Dialog{
tv_exclude = new TreeView();
tv_exclude.get_selection().mode = SelectionMode.MULTIPLE;
tv_exclude.headers_visible = false;
tv_exclude.set_rules_hint (true);
//sw_exclude
sw_exclude = new ScrolledWindow(null, null);

View File

@ -447,7 +447,6 @@ public class RsyncLogBox : Gtk.Box {
treeview.headers_clickable = true;
treeview.rubber_banding = true;
treeview.has_tooltip = true;
treeview.set_rules_hint(true);
treeview.show_expanders = false;
// scrolled

View File

@ -81,7 +81,6 @@ class SnapshotListBox : Gtk.Box{
treeview.get_selection().mode = SelectionMode.MULTIPLE;
treeview.headers_clickable = true;
treeview.has_tooltip = true;
treeview.set_rules_hint (true);
//sw_backups
var sw_backups = new ScrolledWindow(null, null);

View File

@ -84,7 +84,6 @@ class UsersBox : Gtk.Box{
treeview = new TreeView();
treeview.get_selection().mode = SelectionMode.MULTIPLE;
treeview.headers_visible = true;
treeview.rules_hint = true;
treeview.reorderable = false;
treeview.set_tooltip_text(_("Click to edit. Drag and drop to re-order."));
//treeview.row_activated.connect(treeview_row_activated);