[Commits] [SCM] claws branch, gtk3tree, updated. 3.99.0-81-gb722a827d
thorsten at claws-mail.org
thorsten at claws-mail.org
Fri Apr 2 13:19:56 CEST 2021
The branch, gtk3tree has been updated
via b722a827da13d2cd1756951c4d7eab0d8bce59c1 (commit)
via 1e444275515114d9e82d16a18cd20df647c14a31 (commit)
via 94fe34e7d85c15c4f5aeda8a2339a5b0ef8bc641 (commit)
from 75c02db8e56e9d90d91719a5731581a95c3d989b (commit)
Summary of changes:
src/folderview.c | 32 +++++++++++++++++++++++++++-----
1 file changed, 27 insertions(+), 5 deletions(-)
- Log -----------------------------------------------------------------
commit b722a827da13d2cd1756951c4d7eab0d8bce59c1
Author: Thorsten Maerz <info at netztorte.de>
Date: Fri Apr 2 13:19:17 2021 +0200
Reimplement folderview_update_search_icon()
diff --git a/src/folderview.c b/src/folderview.c
index 2405aec4f..3053a735a 100644
--- a/src/folderview.c
+++ b/src/folderview.c
@@ -2583,7 +2583,33 @@ static void folderview_drag_end_cb(GtkWidget *widget,
void folderview_update_search_icon(FolderItem *item, gboolean matches)
{
- debug_print("========STUB======== folderview_update_search_icon\n");
+ GList *list;
+ FolderView *folderview;
+ GtkTreeView *treeview;
+ GtkTreeModel *model;
+ GtkTreeIter iter;
+
+ struct finditer_ctx *ctx = g_new0(struct finditer_ctx, 1);
+ ctx->item = item;
+ ctx->iter = NULL;
+
+ g_return_if_fail(item != NULL);
+
+ for (list = folderview_list; list != NULL; list = list->next) {
+ folderview = (FolderView *)list->data;
+ treeview = GTK_TREE_VIEW(folderview->treeview);
+ model = gtk_tree_view_get_model(treeview);
+ if (!model)
+ continue;
+
+ gtk_tree_model_foreach(model, folderview_find_iter_foreach_func, ctx);
+ if (ctx->item) {
+ ctx->item->search_match = matches;
+ folderview_update_row(folderview, ctx->item);
+ gtk_tree_iter_free(ctx->iter);
+ }
+ }
+ g_free(ctx);
}
void folderview_set_column_order(FolderView *folderview)
commit 1e444275515114d9e82d16a18cd20df647c14a31
Author: Thorsten Maerz <info at netztorte.de>
Date: Fri Apr 2 13:15:07 2021 +0200
Free folderitems from file dnd; remove STUB message
diff --git a/src/folderview.c b/src/folderview.c
index 6ab97396b..2405aec4f 100644
--- a/src/folderview.c
+++ b/src/folderview.c
@@ -2402,10 +2402,7 @@ static void folderview_drag_leave_cb(GtkWidget *widget,
static void free_info (gpointer stuff, gpointer data)
{
- debug_print("========STUB======== free_info\n");
-#if 0
g_free(stuff);
-#endif
}
/* only for TARGET_MAIL_URI_LIST */
commit 94fe34e7d85c15c4f5aeda8a2339a5b0ef8bc641
Author: Thorsten Maerz <info at netztorte.de>
Date: Fri Apr 2 13:11:02 2021 +0200
Remove STUB message for folderview_is_drag_source()
diff --git a/src/folderview.c b/src/folderview.c
index 1598b026f..6ab97396b 100644
--- a/src/folderview.c
+++ b/src/folderview.c
@@ -2653,7 +2653,6 @@ void folderview_grab_focus(FolderView *folderview)
gboolean folderview_is_drag_source(FolderView *folderview,
GdkDragContext *context)
{
- debug_print("========STUB======== folderview_is_drag_source\n");
g_return_val_if_fail(context != NULL, FALSE);
if (gtk_drag_get_source_widget(context) == folderview->treeview)
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list