[Xfce4-commits] [apps/ristretto] 01/01: Resolve couple "cast between incompatible function types" warnings
noreply at xfce.org
noreply at xfce.org
Tue Oct 29 18:45:51 CET 2019
This is an automated email from the git hooks/post-receive script.
f 2 4 0 4 p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/ristretto.
commit 1a6a0ac0ebec625629aeaca7469db337220dd5ff
Author: Igor <f2404 at yandex.ru>
Date: Tue Oct 29 13:44:56 2019 -0400
Resolve couple "cast between incompatible function types" warnings
---
src/icon_bar.c | 5 ++++-
src/privacy_dialog.c | 4 +++-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/icon_bar.c b/src/icon_bar.c
index 7cdd676..32f9644 100644
--- a/src/icon_bar.c
+++ b/src/icon_bar.c
@@ -1101,7 +1101,10 @@ rstto_icon_bar_button_release (
static void
rstto_icon_bar_invalidate (RsttoIconBar *icon_bar)
{
- g_list_foreach (icon_bar->priv->items, (GFunc) rstto_icon_bar_item_invalidate, NULL);
+ GList *lp;
+
+ for (lp = icon_bar->priv->items; lp != NULL; lp = lp->next)
+ rstto_icon_bar_item_invalidate (lp->data);
gtk_widget_queue_resize (GTK_WIDGET (icon_bar));
}
diff --git a/src/privacy_dialog.c b/src/privacy_dialog.c
index 2aa9daa..152fa3b 100644
--- a/src/privacy_dialog.c
+++ b/src/privacy_dialog.c
@@ -368,12 +368,14 @@ rstto_recent_chooser_get_items (
GList *all_items = gtk_recent_manager_get_items (dialog->priv->recent_manager);
GList *all_items_iter = all_items;
GList *items = g_list_copy (all_items);
+ GList *lp;
GSList *filters = dialog->priv->filters;
GtkRecentInfo *info;
GtkRecentFilterInfo filter_info;
gsize n_applications;
- g_list_foreach (items, (GFunc) gtk_recent_info_ref, NULL);
+ for (lp = items; lp != NULL; lp = lp->next)
+ gtk_recent_info_ref (lp->data);
while (NULL != all_items_iter)
{
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list