talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 50a05744c402a511d5382ddfa723c1be4ca32cb2
parent 471fdc18503eb51ed0c4917ca20701e985e2953e
Author: Ricardo Mones <ricardo@mones.org>
Date:   Mon, 15 Apr 2024 12:35:10 +0200

Remove deprecated gtk_tree_view_set_rules_hint

This call has been deprecated since version 3.14 and removal doesn't
change current visual appearance. CSS support for this was removed 8
years ago, and it also seems strips in TreeViews are never going to
come back¹. The only option for now seems to use ListBox² after having
migrated to GTK 4…

¹ https://gitlab.gnome.org/GNOME/gtk/-/issues/581
² https://docs.gtk.org/gtk4/class.ListBox.html

Removes thirty “warning: ‘gtk_tree_view_set_rules_hint’ is deprecated”

Diffstat:
Msrc/account.c | 4+---
Msrc/addr_compl.c | 4+---
Msrc/addrcustomattr.c | 4+---
Msrc/addrduplicates.c | 4+---
Msrc/addressadd.c | 1-
Msrc/addressbook_foldersel.c | 4+---
Msrc/compose.c | 2--
Msrc/edittags.c | 4+---
Msrc/foldersel.c | 4+---
Msrc/gtk/pluginwindow.c | 3+--
Msrc/gtk/prefswindow.c | 5++---
Msrc/gtk/progressdialog.c | 5+----
Msrc/mimeview.c | 4+---
Msrc/plugins/att_remover/att_remover.c | 3+--
Msrc/plugins/notification/notification_foldercheck.c | 4+---
Msrc/prefs_actions.c | 3+--
Msrc/prefs_customheader.c | 5++---
Msrc/prefs_display_header.c | 8++------
Msrc/prefs_filtering.c | 5++---
Msrc/prefs_filtering_action.c | 5++---
Msrc/prefs_folder_column.c | 5+----
Msrc/prefs_matcher.c | 5++---
Msrc/prefs_summaries.c | 4+---
Msrc/prefs_summary_column.c | 7++-----
Msrc/prefs_summary_open.c | 8++------
Msrc/prefs_template.c | 3+--
Msrc/prefs_toolbar.c | 4+---
Msrc/ssl_manager.c | 5++---
Msrc/uri_opener.c | 5++---
29 files changed, 37 insertions(+), 90 deletions(-)

diff --git a/src/account.c b/src/account.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2023 the Claws Mail team and Hiroyuki Yamamoto + * Copyright (C) 1999-2024 the Claws Mail team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -14,7 +14,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * */ #ifdef HAVE_CONFIG_H @@ -1576,7 +1575,6 @@ static GtkWidget *account_list_view_create(void) #ifdef GENERIC_UMPC g_object_set(list_view, "allow-checkbox-mode", FALSE, NULL); #endif - gtk_tree_view_set_rules_hint(list_view, prefs_common.use_stripes_everywhere); gtk_tree_view_set_reorderable(list_view, TRUE); selector = gtk_tree_view_get_selection(list_view); diff --git a/src/addr_compl.c b/src/addr_compl.c @@ -1,7 +1,7 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client * - * Copyright (C) 2000-2021 the Claws Mail team and Alfons Hoogervorst + * Copyright (C) 2000-2024 the Claws Mail team and Alfons Hoogervorst * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +15,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * */ #ifdef HAVE_CONFIG_H @@ -1771,7 +1770,6 @@ static GtkWidget *addr_compl_list_view_create(CompletionWindow *window) list_view = GTK_TREE_VIEW(gtk_tree_view_new_with_model(model)); g_object_unref(model); - gtk_tree_view_set_rules_hint(list_view, prefs_common.use_stripes_everywhere); gtk_tree_view_set_headers_visible(list_view, FALSE); selector = gtk_tree_view_get_selection(list_view); diff --git a/src/addrcustomattr.c b/src/addrcustomattr.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 2007-2022 The Claws Mail Team + * Copyright (C) 2007-2024 The Claws Mail Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -276,8 +276,6 @@ static GtkWidget *custom_attr_window_list_view_create (void) gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(model), CUSTOM_ATTR_NAME, GTK_SORT_ASCENDING); - gtk_tree_view_set_rules_hint(list_view, prefs_common.use_stripes_everywhere); - selector = gtk_tree_view_get_selection(list_view); gtk_tree_selection_set_mode(selector, GTK_SELECTION_BROWSE); diff --git a/src/addrduplicates.c b/src/addrduplicates.c @@ -1,5 +1,5 @@ /* Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 2007-2022 Holger Berndt <hb@claws-mail.org> + * Copyright (C) 2007-2024 Holger Berndt <hb@claws-mail.org> * and the Claws Mail team * * This program is free software; you can redistribute it and/or modify @@ -436,7 +436,6 @@ static GtkWidget* create_email_view(GtkListStore *store) GtkCellRenderer *renderer; view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store)); - gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(view), prefs_common.use_stripes_everywhere); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(view), -1, @@ -456,7 +455,6 @@ static GtkWidget* create_detail_view(GtkListStore *store) GList *walk; view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store)); - gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(view), prefs_common.use_stripes_everywhere); renderer = gtk_cell_renderer_text_new(); /* col 1 */ diff --git a/src/addressadd.c b/src/addressadd.c @@ -267,7 +267,6 @@ static void addressadd_create( void ) { tree_folder = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store)); gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(store), ADDRADD_COL_NAME, GTK_SORT_ASCENDING); g_object_unref(store); - gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(tree_folder), prefs_common.use_stripes_everywhere); gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(tree_folder), TRUE); gtk_tree_view_set_enable_tree_lines(GTK_TREE_VIEW(tree_folder), FALSE); gtk_tree_view_set_search_column(GTK_TREE_VIEW(tree_folder), diff --git a/src/addressbook_foldersel.c b/src/addressbook_foldersel.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 2001-2022 the Claws Mail team and Match Grun + * Copyright (C) 2001-2024 the Claws Mail team and Match Grun * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -14,7 +14,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * */ /* @@ -185,7 +184,6 @@ static void addressbook_foldersel_create( void ) view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store)); gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(store), COL_NAME, GTK_SORT_ASCENDING); - gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(view), prefs_common.use_stripes_everywhere); gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(view), TRUE); gtk_tree_view_set_enable_tree_lines(GTK_TREE_VIEW(view), FALSE); gtk_tree_view_set_search_column(GTK_TREE_VIEW(view), COL_NAME); diff --git a/src/compose.c b/src/compose.c @@ -7505,8 +7505,6 @@ static GtkWidget *compose_create_attach(Compose *compose) COL_NAME, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(attach_clist), column); - gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(attach_clist), - prefs_common.use_stripes_everywhere); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(attach_clist)); gtk_tree_selection_set_mode(selection, GTK_SELECTION_MULTIPLE); diff --git a/src/edittags.c b/src/edittags.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 2007-2022 Colin Leroy and The Claws Mail Team + * Copyright (C) 2007-2024 Colin Leroy and The Claws Mail Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -361,8 +361,6 @@ static GtkWidget *tags_window_list_view_create (void) g_object_unref(model); gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(model), TAG_NAME, GTK_SORT_ASCENDING); - gtk_tree_view_set_rules_hint(list_view, prefs_common.use_stripes_everywhere); - selector = gtk_tree_view_get_selection(list_view); gtk_tree_selection_set_mode(selector, GTK_SELECTION_BROWSE); diff --git a/src/foldersel.c b/src/foldersel.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto + * Copyright (C) 1999-2024 the Claws Mail team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -295,8 +295,6 @@ static void foldersel_create(const gchar *title) treeview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(tree_store)); g_object_unref(G_OBJECT(tree_store)); gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(treeview), FALSE); - gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(treeview), - prefs_common.use_stripes_everywhere); gtk_tree_view_set_enable_tree_lines(GTK_TREE_VIEW(treeview), FALSE); gtk_tree_view_set_search_column(GTK_TREE_VIEW(treeview), FOLDERSEL_FOLDERNAME); diff --git a/src/gtk/pluginwindow.c b/src/gtk/pluginwindow.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2022 the Claws Mail Team and Hiroyuki Yamamoto + * Copyright (C) 1999-2024 the Claws Mail Team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -464,7 +464,6 @@ static GtkWidget *pluginwindow_list_view_create(PluginWindow *pluginwindow) list_view = GTK_TREE_VIEW(gtk_tree_view_new_with_model(model)); g_object_unref(model); - gtk_tree_view_set_rules_hint(list_view, prefs_common.use_stripes_everywhere); gtk_tree_view_set_search_column (list_view, 0); selector = gtk_tree_view_get_selection(list_view); diff --git a/src/gtk/prefswindow.c b/src/gtk/prefswindow.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2022 the Claws Mail Team and Hiroyuki Yamamoto + * Copyright (C) 1999-2024 the Claws Mail Team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -624,8 +624,7 @@ static GtkWidget *prefswindow_tree_view_create(PrefsWindow *prefswindow) model = GTK_TREE_MODEL(prefswindow_create_data_store()); tree_view = GTK_TREE_VIEW(gtk_tree_view_new_with_model(model)); g_object_unref(model); - gtk_tree_view_set_rules_hint(tree_view, prefs_common.use_stripes_everywhere); - + selector = gtk_tree_view_get_selection(tree_view); gtk_tree_selection_set_mode(selector, GTK_SELECTION_BROWSE); gtk_tree_selection_set_select_function(selector, prefswindow_row_selected, diff --git a/src/gtk/progressdialog.c b/src/gtk/progressdialog.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto + * Copyright (C) 1999-2024 the Claws Mail team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -14,7 +14,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * */ #ifdef HAVE_CONFIG_H @@ -116,8 +115,6 @@ ProgressDialog *progress_dialog_create(void) treeview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store)); g_object_unref(G_OBJECT(store)); gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(treeview), TRUE); - gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(treeview), - prefs_common.use_stripes_everywhere); gtk_widget_show(treeview); gtk_container_add(GTK_CONTAINER(scrolledwin), treeview); gtk_widget_set_size_request(treeview, -1, 120); diff --git a/src/mimeview.c b/src/mimeview.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2023 the Claws Mail team and Hiroyuki Yamamoto + * Copyright (C) 1999-2024 the Claws Mail team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -325,8 +325,6 @@ MimeView *mimeview_create(MainWindow *mainwin) ctree = gtk_tree_view_new_with_model(GTK_TREE_MODEL(model)); g_object_unref(model); gtk_tree_view_set_enable_search(GTK_TREE_VIEW(ctree), FALSE); - gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(ctree), - prefs_common.use_stripes_everywhere); gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(ctree), prefs_common.show_col_headers); diff --git a/src/plugins/att_remover/att_remover.c b/src/plugins/att_remover/att_remover.c @@ -352,8 +352,7 @@ static void remove_attachments_dialog(AttRemover *attremover) G_TYPE_BOOLEAN, -1)); list_view = GTK_TREE_VIEW(gtk_tree_view_new_with_model(model)); - gtk_tree_view_set_rules_hint(list_view, prefs_common_get_prefs()->use_stripes_everywhere); - + renderer = gtk_cell_renderer_toggle_new(); g_signal_connect(renderer, "toggled", G_CALLBACK(remove_toggled_cb), model); g_object_unref(model); diff --git a/src/plugins/notification/notification_foldercheck.c b/src/plugins/notification/notification_foldercheck.c @@ -1,6 +1,6 @@ /* Notification plugin for Claws Mail - * Copyright (C) 2005-2022 Holger Berndt and the Claws Mail Team + * Copyright (C) 2005-2024 Holger Berndt and the Claws Mail Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -525,8 +525,6 @@ static void foldercheck_create_window(SpecificFolderArrayEntry *entry) gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(entry->treeview), FALSE); gtk_tree_view_set_search_column(GTK_TREE_VIEW(entry->treeview), FOLDERCHECK_FOLDERNAME); - gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(entry->treeview), - prefs_common_get_prefs()->use_stripes_everywhere); gtk_tree_view_set_enable_tree_lines(GTK_TREE_VIEW(entry->treeview), FALSE); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(entry->treeview)); diff --git a/src/prefs_actions.c b/src/prefs_actions.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2022 the Claws Mail Team and Hiroyuki Yamamoto + * Copyright (C) 1999-2024 the Claws Mail Team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -1201,7 +1201,6 @@ static GtkWidget *prefs_actions_list_view_create(void) g_signal_connect(G_OBJECT(list_view), "button-press-event", G_CALLBACK(prefs_actions_list_btn_pressed), list_view); - gtk_tree_view_set_rules_hint(list_view, prefs_common.use_stripes_everywhere); gtk_tree_view_set_reorderable(list_view, TRUE); selector = gtk_tree_view_get_selection(list_view); diff --git a/src/prefs_customheader.c b/src/prefs_customheader.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto + * Copyright (C) 1999-2024 the Claws Mail team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -844,8 +844,7 @@ static GtkWidget *prefs_custom_header_list_view_create(void) model = GTK_TREE_MODEL(prefs_custom_header_create_data_store()); list_view = GTK_TREE_VIEW(gtk_tree_view_new_with_model(model)); g_object_unref(model); - - gtk_tree_view_set_rules_hint(list_view, prefs_common.use_stripes_everywhere); + gtk_tree_view_set_reorderable(list_view, TRUE); selector = gtk_tree_view_get_selection(list_view); diff --git a/src/prefs_display_header.c b/src/prefs_display_header.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto + * Copyright (C) 1999-2024 the Claws Mail team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -14,7 +14,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * */ #ifdef HAVE_CONFIG_H @@ -766,10 +765,7 @@ static GtkWidget *prefs_display_header_list_view_create(const gchar *name) model = GTK_TREE_MODEL(prefs_display_header_create_store()); list_view = gtk_tree_view_new_with_model(model); g_object_unref(G_OBJECT(model)); - - gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(list_view), - prefs_common.use_stripes_everywhere); - + selector = gtk_tree_view_get_selection(GTK_TREE_VIEW(list_view)); gtk_tree_selection_set_mode(selector, GTK_SELECTION_BROWSE); diff --git a/src/prefs_filtering.c b/src/prefs_filtering.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto + * Copyright (C) 1999-2024 the Claws Mail team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -1801,8 +1801,7 @@ static GtkWidget *prefs_filtering_list_view_create(void) G_CALLBACK(prefs_filtering_list_popup_menu), list_view); g_signal_connect(G_OBJECT(list_view), "button-press-event", G_CALLBACK(prefs_filtering_list_btn_pressed), list_view); - - gtk_tree_view_set_rules_hint(list_view, prefs_common.use_stripes_everywhere); + gtk_tree_view_set_reorderable(list_view, TRUE); selector = gtk_tree_view_get_selection(list_view); diff --git a/src/prefs_filtering_action.c b/src/prefs_filtering_action.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 2003-2022 the Claws Mail team + * Copyright (C) 2003-2024 the Claws Mail team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -1452,8 +1452,7 @@ static GtkWidget *prefs_filtering_action_list_view_create(void) model = GTK_TREE_MODEL(prefs_filtering_action_create_data_store()); list_view = GTK_TREE_VIEW(gtk_tree_view_new_with_model(model)); g_object_unref(model); - - gtk_tree_view_set_rules_hint(list_view, prefs_common.use_stripes_everywhere); + gtk_tree_view_set_reorderable(list_view, TRUE); selector = gtk_tree_view_get_selection(list_view); diff --git a/src/prefs_folder_column.c b/src/prefs_folder_column.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto + * Copyright (C) 1999-2024 the Claws Mail team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -732,9 +732,6 @@ static GtkWidget *prefs_folder_column_list_view_create(const gchar *name) model = GTK_TREE_MODEL(prefs_folder_column_create_store()); list_view = gtk_tree_view_new_with_model(model); g_object_unref(G_OBJECT(model)); - - gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(list_view), - prefs_common.use_stripes_everywhere); selector = gtk_tree_view_get_selection(GTK_TREE_VIEW(list_view)); gtk_tree_selection_set_mode(selector, GTK_SELECTION_BROWSE); diff --git a/src/prefs_matcher.c b/src/prefs_matcher.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto + * Copyright (C) 1999-2024 the Claws Mail team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -2309,8 +2309,7 @@ static GtkWidget *prefs_matcher_list_view_create(void) model = GTK_TREE_MODEL(prefs_matcher_create_data_store()); list_view = GTK_TREE_VIEW(gtk_tree_view_new_with_model(model)); g_object_unref(model); - - gtk_tree_view_set_rules_hint(list_view, prefs_common.use_stripes_everywhere); + gtk_tree_view_set_reorderable(list_view, TRUE); selector = gtk_tree_view_get_selection(list_view); diff --git a/src/prefs_summaries.c b/src/prefs_summaries.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 2005-2023 the Claws Mail Team and Colin Leroy + * Copyright (C) 2005-2024 the Claws Mail Team and Colin Leroy * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -257,8 +257,6 @@ static GtkWidget *date_format_create(GtkButton *button, void *data) datefmt_list_view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store)); g_object_unref(G_OBJECT(store)); - gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(datefmt_list_view), - prefs_common.use_stripes_everywhere); gtk_widget_show(datefmt_list_view); gtk_container_add(GTK_CONTAINER(scrolledwindow1), datefmt_list_view); diff --git a/src/prefs_summary_column.c b/src/prefs_summary_column.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto + * Copyright (C) 1999-2024 the Claws Mail team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -747,10 +747,7 @@ static GtkWidget *prefs_summary_column_list_view_create(const gchar *name) model = GTK_TREE_MODEL(prefs_summary_column_create_store()); list_view = gtk_tree_view_new_with_model(model); g_object_unref(G_OBJECT(model)); - - gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(list_view), - prefs_common.use_stripes_everywhere); - + selector = gtk_tree_view_get_selection(GTK_TREE_VIEW(list_view)); gtk_tree_selection_set_mode(selector, GTK_SELECTION_BROWSE); diff --git a/src/prefs_summary_open.c b/src/prefs_summary_open.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto + * Copyright (C) 1999-2024 the Claws Mail team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -14,7 +14,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * */ #ifdef HAVE_CONFIG_H @@ -599,10 +598,7 @@ static GtkWidget *prefs_summary_open_list_view_create(const gchar *name) model = GTK_TREE_MODEL(prefs_summary_open_create_store()); list_view = gtk_tree_view_new_with_model(model); g_object_unref(G_OBJECT(model)); - - gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(list_view), - prefs_common.use_stripes_everywhere); - + selector = gtk_tree_view_get_selection(GTK_TREE_VIEW(list_view)); gtk_tree_selection_set_mode(selector, GTK_SELECTION_BROWSE); diff --git a/src/prefs_template.c b/src/prefs_template.c @@ -1199,8 +1199,7 @@ static GtkWidget *prefs_template_list_view_create(void) G_CALLBACK(prefs_template_list_popup_menu), list_view); g_signal_connect(G_OBJECT(list_view), "button-press-event", G_CALLBACK(prefs_template_list_btn_pressed), list_view); - - gtk_tree_view_set_rules_hint(list_view, prefs_common.use_stripes_everywhere); + gtk_tree_view_set_reorderable(list_view, TRUE); selector = gtk_tree_view_get_selection(list_view); diff --git a/src/prefs_toolbar.c b/src/prefs_toolbar.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 2002-2021 the Claws Mail team + * Copyright (C) 2002-2024 the Claws Mail team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -1376,8 +1376,6 @@ static GtkWidget *create_set_list_view(ToolbarPage *prefs_toolbar) gtk_tree_view_append_column(list_view, column); /* various other tree view attributes */ - gtk_tree_view_set_rules_hint(list_view, prefs_common.use_stripes_everywhere); - selector = gtk_tree_view_get_selection(list_view); gtk_tree_selection_set_mode(selector, GTK_SELECTION_BROWSE); gtk_tree_selection_set_select_function diff --git a/src/ssl_manager.c b/src/ssl_manager.c @@ -15,6 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ + #ifdef HAVE_CONFIG_H # include "config.h" #include "claws-features.h" @@ -149,9 +150,7 @@ static GtkWidget *ssl_manager_list_view_create (void) gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(model), 0, GTK_SORT_ASCENDING); - g_object_unref(model); - gtk_tree_view_set_rules_hint(list_view, prefs_common.use_stripes_everywhere); - + g_object_unref(model); selector = gtk_tree_view_get_selection(list_view); gtk_tree_selection_set_mode(selector, GTK_SELECTION_BROWSE); diff --git a/src/uri_opener.c b/src/uri_opener.c @@ -15,6 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ + #ifdef HAVE_CONFIG_H # include "config.h" #include "claws-features.h" @@ -141,9 +142,7 @@ static GtkWidget *uri_opener_list_view_create(void) model = GTK_TREE_MODEL(uri_opener_create_data_store()); list_view = GTK_TREE_VIEW(gtk_tree_view_new_with_model(model)); g_object_unref(model); - - gtk_tree_view_set_rules_hint(list_view, prefs_common.use_stripes_everywhere); - + selector = gtk_tree_view_get_selection(list_view); gtk_tree_selection_set_mode(selector, GTK_SELECTION_MULTIPLE);