[Xfce4-commits] <ristretto:ristretto-0.0> Emit Iterator-changed signal on all iterators when the sort function changes
Stephan Arts
noreply at xfce.org
Sun Oct 23 19:17:30 CEST 2011
Updating branch refs/heads/ristretto-0.0
to e3d9c8c54eafc7110139d1bd4d4b1bc04a1110d4 (commit)
from 73ca8a7455f1c571a1ab14e7e7915350fc0c595b (commit)
commit e3d9c8c54eafc7110139d1bd4d4b1bc04a1110d4
Author: Stephan Arts <stephan at xfce.org>
Date: Fri Sep 4 18:02:11 2009 +0200
Emit Iterator-changed signal on all iterators when the sort function changes
ChangeLog | 5 +++++
src/image_list.c | 5 +++++
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4ed9f63..c47ee18 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-09-04 Stephan Arts <stephan at xfce.org>
+
+ * src/image_list.c: Emit 'iterator-changed' signal
+ on all iterators when the sort-function changes
+
2009-09-03 Stephan Arts <stephan at xfce.org>
* src/main_window.c: Start on a code cleanup
diff --git a/src/image_list.c b/src/image_list.c
index cee785a..7642280 100644
--- a/src/image_list.c
+++ b/src/image_list.c
@@ -473,8 +473,13 @@ rstto_image_list_get_compare_func (RsttoImageList *image_list)
void
rstto_image_list_set_compare_func (RsttoImageList *image_list, GCompareFunc func)
{
+ GSList *iter = NULL;
image_list->priv->cb_rstto_image_list_compare_func = func;
image_list->priv->images = g_list_sort (image_list->priv->images, func);
+ for (iter = image_list->priv->iterators; iter != NULL; iter = g_slist_next (iter))
+ {
+ g_signal_emit (G_OBJECT (iter->data), rstto_image_list_iter_signals[RSTTO_IMAGE_LIST_ITER_SIGNAL_CHANGED], 0, NULL);
+ }
}
/***********************/
More information about the Xfce4-commits
mailing list